[prev in list] [next in list] [prev in thread] [next in thread]
List: tomcat-user
Subject: Re: Sharing an object between two webapps
From: Kaspar Fischer <fischerk () inf ! ethz ! ch>
Date: 2007-11-26 11:20:28
Message-ID: C1DAC492-C9BF-47F3-A9F6-00F486C9CCED () inf ! ethz ! ch
[Download RAW message or body]
On 23.11.2007, at 17:43, Caldarale, Charles R wrote:
>> From: Kaspar Fischer [mailto:fischerk@inf.ethz.ch]
>> Subject: Re: Sharing an object between two webapps
>>
>> The class SharedObjectHolder from my previous post lies inside the
>> JAR webapps/A/WEB-INF/lib/SharedObjectHolder.jar.
>
> Move it to shared/lib; do not leave a copy in WEB-INF/lib or any other
> location, including B's WEB-INF/lib directory.
>
>> In order to make A's JARs available to webapp B, I've set
>> shared.loader=${catalina.base}/shared/classes,${catalina.base}/
>> shared/lib/*.jar,${catalina.base}/webapps/A/WEB-INF/lib/*.jar
>
> I wouldn't mess with that - pretty much guaranteed to cause confusion
> and collisions with the webapp's classsloader. Put it back the way it
> was.
>
> - Chuck
Chuck, many thanks again. Your help and another insight into
the "crossContext" attribute of Tomcat allowed me to find a
solution. Thanks for your time!
The deails for my particular application are documented here:
http://wiki.alfresco.com/wiki/
Alfresco_and_Tapestry_on_the_Same_Tomcat_Installation
I hope this helps others that need to do a similar thing.
Kaspar
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic