geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cgazit <>
Subject class loading problem
Date Tue, 10 Sep 2013 17:37:04 GMT
I seem to have a problem with  the class loader due to classes' visibility.
My EAR had references to 3 external application utility jars and 1 reference
to  log4j jar.
I deployed the jars and the log4j and then attempted to deploy the EAR. The
deployment complained with NoClassDefFoundError about a class in one of app
jars. I tried to use import-package statements in the plan , but it didn't

So, I packaged all the jars (including the log4j) in the EAR, rebuilt the
EAR , and attempted another deploy.
It now finds my app jars, but still complain about a class in the log4j.
Exception: class java.lang.NoClassDefFoundError:
org.apache.log4j.BasicConfigurator: org.apache.log4j.BasicConfigurator
This statement in the plan is not helping:

I find v3.x very difficult to work with because of this (or what I believe
to be) OSGi restrictions.
Almost ready to give up and go back to 2.2!
PS I'm using log4j.1.2.14.jar

thanks for any help.

View this message in context:
Sent from the Users mailing list archive at

View raw message