Many thanks for this Mike - it is indeed a ClassLoader problem.

I'm using Tomcat 4.1 running under JBoss 3.2.3. The default out-of- the-box configuration sets Tomcat to use JBoss's web class loader, which (it seems) tries to 'share' as much stuff as possible -- i.e. contrary to Tomcat's usual behaviour when running stand-alone.

Fortunately the fix is simple: set the 'UseJBossWebLoader' attribute to false in '.../tomcat41.sar/META-INF/jboss-service.xml'

Cheers,
neale

On 30 Dec 2005, at 18:38, Mike Schrag wrote:

Each war deployed in tomcat runs with its own classloader, so as long as WOServletAdaptor is in a jar inside of your war, it will be loaded in its own classloader context and will have its own "copy" of static fields. If, however, WOServletAdaptor is loaded in the TOMCAT classloader (i.e. in tomcat's top level classpath), then you're in for a rough ride.

ms

On Dec 30, 2005, at 11:13 AM, Neale Patton wrote:

Has anyone on this list successfully managed to deploy two distinct WebObjects applications in the same container? Unsurprisingly the official documentation is scant in this regard and the only reference to this seems to imply that it can be done.

http://developer.apple.com/documentation/WebObjects/ JSP_and_Servlets/SpecialIssues/chapter_4_section_2.html

However what concerns me is not system properties but more the role of WOServletAdaptor in the request handling.

It seems from the javadoc that WOServletAdaptor is not intended to be subclassed and as such makes extensive use of static members. What troubles me the most is that the WOApplication object is accessed via a static method. If the WOApplication instance is a static member of WOServletAdaptor and WOServletAdaptor cannot be subclassed how on earth can we have multiple distinct WO applications running in the same container? I hope I'm missing something obvious.

Regards,

Neale Patton • CPS Development
BBC News Interactive • London • UK


http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects- [EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/mschrag% 40mdimension.com

This email sent to [EMAIL PROTECTED]



http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received. Further communication will signify your consent to this.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to