posted 19 years ago
I have a problem with my project. I have an EAR file with a few jars in it.
a.jar, b.jar, c.jar.
a.jar has the logging classes and uses log4j. Therefore a.jar has a manifest file with log4j in its class path.
The final EAR file has in its root:
a.jar
b.jar
c.jar
log4j
b.jar references a.jar. I get NoClassDefFound log4j errors due to the Category class. Basically, it can't find the log4j jar even though its specified in the manifest. Strangest thing is it works in all of my servers but not on one of them. Is there some configuration problem I have that is problematic in that one server? I tried adding log4j explicitly to the server startup classpath, and it works. However, that's not a long term solution.
Its as though the manifest file of a.jar is not being read in correctly. I think I have the projects organized correctly... Any help or suggestions would really help.