tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8622] New: - Classloader fails to load certain classes from WEB-INF/lib directory
Date Mon, 29 Apr 2002 14:45:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8622>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8622

Classloader fails to load certain classes from WEB-INF/lib directory

           Summary: Classloader fails to load certain classes from WEB-
                    INF/lib directory
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: sascha.weinreuter@cit.de


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.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message