Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Classloading scenario

Angel Todorov

2007-02-20

Replies:

Hi All,

I have the following scenario: one webapp, which has some jars in its
private WEB-INF\lib dir, and one common jar which I would like to
share among several webapps. Hence, I am putting this jar into the
shared\lib directory of Tomcat. The problem is that this common lib
references classes which are in jars in the first webapp's WEB\lib
directory. Therefore, I get NoClassDefFoundErrors when this common jar
loads and tries to refer classes from the webapp's private lib.

Is it possible to achieve a workaround with tomcat's classloading for
that custom scenario?

Thank you very much in advance.

Regards,
Angel

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.