You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2010/09/09 17:09:34 UTC
[jira] Issue Comment Edited: (XERCESJ-1466) ElementTraversal
interface not found
[ https://issues.apache.org/jira/browse/XERCESJ-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907644#action_12907644 ]
Michael Glavassevich edited comment on XERCESJ-1466 at 9/9/10 11:08 AM:
------------------------------------------------------------------------
Working as designed. You *must* include xml-apis.jar on your classpath. This has always been required and should also work with Java 6 without using the endorsed standards override mechanism.
was (Author: mrglavas@ca.ibm.com):
Working as designed. You *must* include xml-apis.jar on your classpath. This has always been required.
> ElementTraversal interface not found
> ------------------------------------
>
> Key: XERCESJ-1466
> URL: https://issues.apache.org/jira/browse/XERCESJ-1466
> Project: Xerces2-J
> Issue Type: Bug
> Affects Versions: 2.10.0
> Environment: java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
> Reporter: Thomas Krammer
>
> When I replace the JDK's default parser with Xerces 2.10.0 by adding the xercesImpl.jar to a directory in the java.endorsed.dirs loading the parser fails with
> java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
> at org.apache.xerces.dom.CoreDocumentImpl.createElementNS(Unknown Source)
> at org.apache.xerces.dom.CoreDOMImplementationImpl.createDocument(Unknown Source)
> ...
> I can fix this by also adding the xml-apis.jar into a endorsed directory. But this in turn breaks XPath with the exception mentioned in http://www.mail-archive.com/j-users@xerces.apache.org/msg01327.html
> That happens because the XPathFactoryFinder included in Xerces uses a different default XPathFactory ("org.apache.xpath.jaxp.XPathFactoryImpl") than the one included in the JDK ("com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl").
> I recommend adding the ElementTraversal interface to xercesImpl. Then the jar would be a drop-in replacement for the existing JDK parser.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org