You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Cole, Russ E" <Ru...@unisys.com> on 2002/02/25 20:26:29 UTC

NoClassDefFoundError with tomcat 4.0.2

My webapp works fine with tomcat 4.0.1.  When using 4.0.2, I get an
exception when invoking my webapp:
java.lang.NoClassDefFoundError: javax/xml/transform/TransformerException

If I copy xalan.jar from %catalina_home%\webapps\myapp\web-inf\lib to
%catalina_home%\lib, the problem no longer exists.

Why does tomcat 4.0.2 not use the classes in my webapp lib directory?

The tomcat log for deploying my webapp for 4.0.2 is identical to 4.0.1 and
it appears that xalan.jar is getting deployed:
2002-02-25 11:06:28 WebappLoader[/myapp]: Deploy JAR /WEB-INF/lib/xalan.jar
to C:\jakarta-tomcat-4.0.2\webapps\myapp\WEB-INF\lib\xalan.jar

BTW, I am using jdk1.3.1_02.

Russ Cole

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: NoClassDefFoundError with tomcat 4.0.2

Posted by Remy Maucherat <re...@apache.org>.
> My webapp works fine with tomcat 4.0.1.  When using 4.0.2, I get an
> exception when invoking my webapp:
> java.lang.NoClassDefFoundError: javax/xml/transform/TransformerException
>
> If I copy xalan.jar from %catalina_home%\webapps\myapp\web-inf\lib to
> %catalina_home%\lib, the problem no longer exists.
>
> Why does tomcat 4.0.2 not use the classes in my webapp lib directory?
>
> The tomcat log for deploying my webapp for 4.0.2 is identical to 4.0.1 and
> it appears that xalan.jar is getting deployed:
> 2002-02-25 11:06:28 WebappLoader[/myapp]: Deploy JAR
/WEB-INF/lib/xalan.jar
> to C:\jakarta-tomcat-4.0.2\webapps\myapp\WEB-INF\lib\xalan.jar
>
> BTW, I am using jdk1.3.1_02.

It's a bug in 4.0.2.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6374

Remy


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>