Java Mailing List Archive

http://www.junlu.com/

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

Re: Using Digester in a Tomcat project causes server not to start
?

Remy Maucherat

2003-09-22

Replies:

Kruse, Matt wrote:

>>What tomcat version?
>
> I've tried 4.1.27 and 5.0.9 with the same results.
>
>>Where's the digester jar that ships with tomcat?
>
> c:\tomcat\server\lib\commons-digester.jar
>
>>You can't have more than one digest jar in the classloader hierarchy.
>>So keep yours in WEB-INF/lib and make sure tomcat's is in
>>$CATALINA_HOME/server/lib (not commons/lib or shared/lib).
>
> I do have a copy of the jar file in my project's WEB-INF\lib directory. That
> is what is causing the problem.
>
> If I take the jar file out of that directory, the server starts up fine, but
> my project won't run because it can't find the Digester class. If I directly
> reference the commons-digester.jar in the path above, my project will
> compile just fine, but Tomcat once again files to startup.

This works fine for me. It is very obvious: just try one example Struts
WAR (which has commons-digester.jar), and it will work fine.

--
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
R�my Maucherat
Senior Developer & Consultant
JBoss Group (Europe) S�RL
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


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