You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2004/07/12 16:01:14 UTC
DO NOT REPLY [Bug 30051] New: -
Explicit dependency to Xerces breaks JSTL xml tags with J2SE 1.5
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30051>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30051
Explicit dependency to Xerces breaks JSTL xml tags with J2SE 1.5
Summary: Explicit dependency to Xerces breaks JSTL xml tags with
J2SE 1.5
Product: Taglibs
Version: 1.1.0
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: Other
Component: Standard Taglib
AssignedTo: taglibs-dev@jakarta.apache.org
ReportedBy: henrik119@hotmail.com
SYMPTOM:
Exception when using JSTL XML transform tags on Tomcat 5.0.25 and J2SE 1.5
Beta 2 without Tomcat-bundled XML parser
exception
javax.servlet.ServletException: javax.servlet.jsp.JspException: Can't create
default XMLReader; is system property org.xml.sax.driver set?
org.apache.jasper.runtime.PageContextImpl.doHandlePageException
(PageContextImpl.java:821)
org.apache.jasper.runtime.PageContextImpl.handlePageException
(PageContextImpl.java:758)
org.apache.jsp.xml.Transform_jsp._jspService(Transform_jsp.java:135)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:298)
org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
root cause
org.xml.sax.SAXException: Can't create default XMLReader; is system property
org.xml.sax.driver set?
org.xml.sax.helpers.XMLReaderFactory.createXMLReader
(XMLReaderFactory.java:155)
org.apache.taglibs.standard.tag.common.xml.TransformSupport.getSource
(Unknown Source)
org.apache.taglibs.standard.tag.common.xml.TransformSupport.getSource
(Unknown Source)
org.apache.taglibs.standard.tag.common.xml.TransformSupport.doStartTag
(Unknown Source)
org.apache.jsp.xml.Transform_jsp._jspx_meth_x_transform_0
(Transform_jsp.java:224)
org.apache.jsp.xml.Transform_jsp._jspService(Transform_jsp.java:89)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:298)
org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
STEPS TO REPRODUCE:
1) Install J2SE 1.5 Beta 2 as only JVM (just to make sure)
2) Intall Tomcat 5.0.x (I used 5.0.25)
3) Remove Tomcat's bundled Xerces XML parser and API definitions from
$CATALINA_HOME$/common/endorsed
4) Start Tomcat
5) Deploy JSTL examples (standard-examples.war) to Tomcat
6) Visit http://localhost:8080/standard-examples/xml/Transform.jsp
CAUSE:
JSTL tries to use hard-wired Xerces parser which is distributed under new
package name in J2SE 1.5. See
http://java.sun.com/j2se/1.5.0/docs/guide/xml/jaxp/JAXP-Compatibility_150.html
REMEDY:
Remove explict dependency to Xerces from JSTL
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org