cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7175] New: - Class loading issues when using own XML parser
Date Sat, 16 Mar 2002 21:57:19 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=7175>.
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=7175

Class loading issues when using own XML parser

           Summary: Class loading issues when using own XML parser
           Product: Tomcat 4
           Version: 4.0.4 Beta 1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: vgritsenko@apache.org
                CC: cocoon-dev@xml.apache.org


Starting from Tomcat 4.0.2, it is not possible to bundle web applocation with 
the XML parser of choice. If application ships with the parser in the WEB-
INF/lib, following exception occurs:

------------------8<-----------------
java.lang.ClassCastException: 
org.apache.xerces.parsers.StandardParserConfiguration
	at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
	at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(Unknown Source)
	at org.apache.jsp.test$jsp._jspService(test$jsp.java:71)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:202)
...
------------------8<-----------------

How to reproduce:
1. Create empty webapp (or use existing, like ROOT)
2. Drop xercesImpl-2.0.0.jar and xml-apis.jar into WEB-INF/lib.
3. Create test.jsp (attached)
4. Invoke test.jsp

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message