Skip to content

ERROR A "net.logstash.log4j.JSONEventLayoutV1" object is not assignable to a "org.apache.log4j.Layout" variable #25

@Zordrak

Description

@Zordrak

This may be my fault, as I'm trying to navigate blind - but I'm using Spredzy's master, which I'm hoping will get pulled into logstash but getting a rather bizarre result.

My logs are happily coming out in JSON format as expected, but I'm also getting this in my Catalina.out:

log4j:ERROR A "net.logstash.log4j.JSONEventLayoutV1" object is not assignable to a "org.apache.log4j.Layout" variable.
log4j:ERROR The class "org.apache.log4j.Layout" was loaded by
log4j:ERROR [WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@66650e56
] whereas object of type
log4j:ERROR "net.logstash.log4j.JSONEventLayoutV1" was loaded by [org.apache.catalina.loader.StandardClassLoader@66650e56].
log4j:ERROR No layout set for the appender named [CATALINA].

My config/versions is as per http://blog.tpa.me.uk/2013/10/17/logstash-tomcat6-log4j-on-centos-6/

Really unsure if this is me or the code..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions