JBoss 4.0 Classloader Problems with Commons-Logging
Java - No Comments » - Posted on March, 9 at 4:11 pm
“Log4JLogger does not implement Log” .. this happens because commons logging is bound to the JBoss system classloader, however the application classloader is trying to associate it to itself. The best way to resolve this error is to remove all references to commons-logging and utilize the one that is packaged with JBoss. For more information refer Commons Logging FAQ.
To configure JBoss with a simpler flat classloader make the following changes.
Changes to be made in {JBoss-Home}/server/{server-name}/deploy/ear-deployer.xml
set attribute with name="Isolated" to false set attribute with name "CallByValue" to false
Changes to be made in {JBoss-Home}/server/ {server-name}/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml
set attribute with name "UseJBossWebLoader" true
Refer the JBoss Wiki for more information.
Posted in Java | No Comments »