By default, JBoss uses a unified class loader model where the
JARs from all archives are shared. This is contrary to the
Servlet specification which says that each application should be
isolated from the others. Fortunately, this behaviour can be
turned off by changing an entry in
server\default\deploy\jbossweb-tomcat50.sar\META-INF\jboss-service.xml
:
<attribute name="UseJBossWebLoader">false</attribute>
As of JBoss 4.0.2, this is the default setting. See also:
http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration
and