• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Jboss Servlet Container Problem (Solved)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: WebObjects Containers (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: EOModeling qualified one to many
  • Next by Date: EOModeling of Lists...
  • Previous by thread: Re: WebObjects Containers
  • Next by thread: Re: WebObjects Containers
  • Index(es):
    • Date
    • Thread