Bug 8622 - Classloader fails to load certain classes from WEB-INF/lib directory
Summary: Classloader fails to load certain classes from WEB-INF/lib directory
Status: RESOLVED DUPLICATE of bug 6374
Alias: None
Product: Tomcat 4
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 4.0.3 Final
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-29 14:45 UTC by Sascha Weinreuter
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
the webapp's index.jsp file (391 bytes, text/plain)
2002-04-29 14:46 UTC, Sascha Weinreuter
Details
error stacktrace (5.90 KB, text/plain)
2002-04-29 14:46 UTC, Sascha Weinreuter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Weinreuter 2002-04-29 14:45:16 UTC
Tomcat fails to load a JSP page or servlet which refers to classes from xml-
apis.jar located in the WEB-INF/lib directory of the webapp.

Error message:
javax.servlet.ServletException: javax/xml/transform/URIResolver
...
root cause 

java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
...

(see full stack trace in attachment)

This is the contents of a sample webapp that produces the problem:
webapps\
  test\
    index.jsp         (see attachment)
    WEB-INF\
      lib\
        xalan.jar     (version 2.2.D13)
        xerces.jar    (version 1.4.4)
        xml-apis.jar  (from xalan dist)

Running such an webapp in Tomcat 3.3 does not cause any problems.

Although putting xalan.jar and xml-apis.jar into the common/lib directory 
solves the problem, this is very inconvenient because the webapp(.war) should 
be self-contained.
Comment 1 Sascha Weinreuter 2002-04-29 14:46:20 UTC
Created attachment 1731 [details]
the webapp's index.jsp file
Comment 2 Sascha Weinreuter 2002-04-29 14:46:40 UTC
Created attachment 1732 [details]
error stacktrace
Comment 3 Remy Maucherat 2002-04-29 15:14:32 UTC

*** This bug has been marked as a duplicate of 6374 ***