You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Remy Maucherat <re...@jboss.org> on 2003/09/22 18:46:24 UTC

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

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