Deploying shared .jar 's 2006-12-11 - By David Kerber
Back Caldarale, Charles R wrote:
>>From: David Kerber [mailto:dckerber@(protected)] >>Subject: Re: Deploying shared .jar's >> >>My webapps can't see classes in the .jar that is in the shared/lib >>folder; I get the ClassNotFound errors when I try. >> >> > >Check your conf/catalina.properties file and make sure this line is >present: >shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li >b/*.jar > > It's there, but it got me to looking at some other stuff, and I think I now know what's going on. Can you please tell me if this makes sense:
I have 3 different apps on one machine, each running in its own tomcat instance using the catalina_base env var. The catalina_base locations are all outside of catalina_home. What I was hoping was that I could put my shared jars in catalina_home, but after re-reading the description of cataline_base (again), it appears that I can't put shared classes in catalina_home if I'm using the apps from catalina_base.
What I have is this:
Catalina_home = e:\program files\Apacha\Tomcat5\all the sub-dirs
Catalina_base(s) = e:\tomcatclients\webapp1 \conf \webapps etc e:\tomcatclients\webapp2 \conf \webapps etc etc.
With the way I read it now, anything I try to put under catalina_home/shared/lib won't be visible to the webapps in the various catalina_base folders. Is this correct? If so, it explains my trouble.
If not, then I've got to dig even deeper.
Thanks!
>If the line is there (and not commented out), is there possibly an >access permissions problem with the jars you're putting into shared/lib, >especially if running as a service? You might also try turning on >-verbose:class and see what's being loaded from where. > > - Chuck > >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|