I'm developing a GWT web app. As well as GWT, I'm using a .jar that also uses logj4, which I will call "bob". If I don't add the log4j jar into my war/WEB-INF/lib
folder, I get the error described here: java.lang.NoClassDefFoundError: org/apache/log4j/LogManager
.
If I do put the .jar in the lib
folder, I get another java.lang.NoClassDefFoundError
, this time for org/apache/log4j/Appender
. The error comes from within "bob", my other library. Bob.jar is on the classpath of the project, as well as in war/WEB-INF/lib
.
Is there an obvious fix to this?