You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Andrés Glez." <an...@publicinet.net> on 2005/11/18 11:04:35 UTC

Shared/WebApp ClassLoaders

Something strange happened to my tomcat yesterday:

I have two webApps which use some shared jars that i put in 
$TOMCAT_HOME/shared/lib

Yesterday i decided to remove the log4j.jar from shared/lib and put it on 
each webApp WEB-INF/lib dir.

Log4j works great now, and one of the WebApps also runs fine. But the other 
can not find any of the classes of the jars that remain in 
$TOMCAT_HOME/shared/lib

I had to put ALL the jars of shared/lib in this WebApp WEB-INF/lib/ dir to 
make it work.

Any suggestions to try to find why this is happening?

OS: Debian 3.0
Tomcat: 5.0.28
JDK: 1.4.2_09

Thanks

--
Andrés González Rodríguez
andres.gonzalez@publicinet.net 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Shared/WebApp ClassLoaders

Posted by "Andrés Glez." <an...@publicinet.net>.
OK, the problem was exatly the reverse, the classes (jars) of shared/lib 
didn't find log4j and the ClassNotFoundExcepcion was caused by that.


----- Original Message ----- 
From: "Andrés Glez." <an...@publicinet.net>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, November 18, 2005 11:04 AM
Subject: Shared/WebApp ClassLoaders


> Something strange happened to my tomcat yesterday:
>
> I have two webApps which use some shared jars that i put in 
> $TOMCAT_HOME/shared/lib
>
> Yesterday i decided to remove the log4j.jar from shared/lib and put it on 
> each webApp WEB-INF/lib dir.
>
> Log4j works great now, and one of the WebApps also runs fine. But the 
> other can not find any of the classes of the jars that remain in 
> $TOMCAT_HOME/shared/lib
>
> I had to put ALL the jars of shared/lib in this WebApp WEB-INF/lib/ dir to 
> make it work.
>
> Any suggestions to try to find why this is happening?
>
> OS: Debian 3.0
> Tomcat: 5.0.28
> JDK: 1.4.2_09
>
> Thanks
>
> --
> Andrés González Rodríguez
> andres.gonzalez@publicinet.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org