Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout not assignable #26

Closed
cdgraff opened this issue Oct 31, 2013 · 2 comments
Closed

Layout not assignable #26

cdgraff opened this issue Oct 31, 2013 · 2 comments

Comments

@cdgraff
Copy link

cdgraff commented Oct 31, 2013

Hi Guys,

I'm trying to use this jar, and when start the instance get this error:

log4j:ERROR A "net.logstash.log4j.JSONEventLayout" 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
context:
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@2107ebe1
] whereas object of type
log4j:ERROR "net.logstash.log4j.JSONEventLayout" was loaded by [org.apache.catalina.loader.StandardClassLoader@2107ebe1].

I'm using the latest Git version, some advice?

Thanks

@cdgraff
Copy link
Author

cdgraff commented Nov 7, 2013

Fixed, the same log4j library into the webapp and the tomcat lib, removed from webapp the error was fixed

@cdgraff cdgraff closed this as completed Nov 7, 2013
@veetow
Copy link

veetow commented Dec 12, 2014

I think this is an actual issue. I can't get the logger to function unless all log4j jar files are removed from the class path entirely. Only the jsonevent layout jar must exist on the class path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants