[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    RE: Sharing an object between two webapps
From:       "Caldarale, Charles R" <Chuck.Caldarale () unisys ! com>
Date:       2007-11-23 16:43:57
Message-ID: 2828B04F0113CD468E6D1D51DF4362A40408AD41 () USEA-EXCH2 ! na ! uis ! unisys ! com
[Download RAW message or body]

> 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


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
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