Jboss Servlet Container Problem (Solved)
Jboss Servlet Container Problem (Solved)
- Subject: Jboss Servlet Container Problem (Solved)
- From: Dov Rosenberg <email@hidden>
- Date: Thu, 15 Jan 2004 18:05:15 -0500
I just came across a couple of issues that servlet deployers ought to be
aware of - especially those using Jboss.
If you want to deploy multiple apps in a single instance of Jboss that use
servlets/jsp be aware that the default class loader (Unified Class Loader)
for Jboss does NOT follow normal J2EE conventions where each WAR gets its
own copies of the classes. In Jboss the UCL tries to share classes between
apps causing all sorts of problems - usually shows up as NoClassDefFound
errors.
The solution on Jboss 3.2.x is to modify the
default/deploy/jbossweb-tomcat41.sar/META-INF/jboss-service.xml
Change UseJBossWebLoader from TRUE to FALSE
<!-- A flag indicating if the JBoss Loader should be used. This loader
uses a unified class loader as the class loader rather than the tomcat
specific class loader.
-->
<attribute name="UseJBossWebLoader">false</attribute>
Then your WAR file will get the classes it expects. This might have some
ramifications on how Jboss runs, so use at your own risk.
HTH
--
Dov Rosenberg
President, Conviveon Corporation
http://www.conviveon.com
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.