Here's the scenario:
I've got a logging package that is a wrapper around log4j. This package has its own configurator which talks to a centralized server to retrieve logging configuration information for the server instance.
I never ran into a problem when running in Weblogic (they don't use log4j internally), but I've had some issues while porting to JBoss 4.0.
The Wiki page on classloader configuration (http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration) seemed to offer the perfect solution, but I haven't been able to make it work completely.
My test application is an EJB with a web service endpoint. The EJB jar is packaged inside an EAR, and the log4j jar is also packaged inside that EAR. Here's my jboss-app.xml:
<jboss-app> <loader-repository> sipstorm.com:loader=webserviceTest.ear <loader-repository-config> java2ParentDelegation=false </loader-repository-config> </loader-repository> </jboss-app>