You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/09/24 17:10:50 UTC

DO NOT REPLY [Bug 3796] New: - XML Classloader problem has crept back in

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=3796>.
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=3796

XML Classloader problem has crept back in

           Summary: XML Classloader problem has crept back in
           Product: Tomcat 4
           Version: 4.0 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: kevinj@develop.com


I have an application that uses Xerces as its XML parser. I put Xerces in WEB-
INF/lib, but if I try and use it (via JAXP) I get a ClassCastException. It 
looks as if my 'classpath' has been corrupted by the crimson parser in 
tomcat\common\lib. I didn't have this problem in Tomcat 4.0b6 (not sure about 
the later RC relases).

To reproduce this, try ans install struts-example with xerces. jar in 
tomcat\webapps\struts-example\WEB-INF\lib, you'll see a ClassCastException 
where the digester is trying to load a parser. It seems that digester gets the 
Xerces SAX parser but Tomcat thinks it should have Crimson. I have the same 
issue (in my application) but with the DOM parser.