https://issues.apache.org/bugzilla/show_bug.cgi?id=48116

           Summary: Cannot use JAXP 1.4 XML APIs from JDK 1.6 without use
                    of 'endorsed'
           Product: Tomcat 6
           Version: 6.0.20
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: bimargul...@gmail.com


Created an attachment (id=24469)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24469)
maven project to build the testcase.

In the about-to-be-attached test case, the code uses the new JAXP 1.4 APIs that
are intended to avoid the need for the 'endorsed' mechanism. One can call
(e.g.)
XPathFactory.newInstance("the name of a class", aClassloader) to as for a
specific implementation.

All this works fine standalone, and (as it happens) in Jety.

In tomcat 6.0.20, this leads to the following stacktrace. Note in the
stacktrace that one piece of Apache Xpath code is looking for a nonexistent
function of another piece and not finding it. 

root cause

java.lang.NoSuchMethodError: org.apache.xpath.XPathContext.<init>(Z)V
    org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:207)
    org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:281)
    org.apache.mtomcatbug.Serviette.doGet(Serviette.java:58)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to