From tomcat-user Mon Nov 26 11:20:28 2007 From: Kaspar Fischer Date: Mon, 26 Nov 2007 11:20:28 +0000 To: tomcat-user Subject: Re: Sharing an object between two webapps Message-Id: X-MARC-Message: https://marc.info/?l=tomcat-user&m=119607606732595 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