Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Later
-
2.7
-
None
-
None
-
JDK 1.5.0_06
Description
The existing META-INF/services/javax.xml.xpath.XPathFactory file does not conform to the format expected by the XPathFactory.newInstance() method. This file should have a list of key value pairs, each key being a URI of a object model supported by the implementation. Here's the JAXP debug statements after running a test program with -Djaxp.debug:
JAXP: using thread context class loader (sun.misc.Launcher$AppClassLoader@133056f) for search
JAXP: Looking up system property 'javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom'
JAXP: The property is undefined.
JAXP: found null in $java.home/jaxp.properties
JAXP: looking into file:/C:/Dev/projects/personal/pacific.common/bin/META-INF/services/javax.xml.xpath.XPathFactory
JAXP: Reading file:/C:/Dev/projects/personal/pacific.common/bin/META-INF/services/javax.xml.xpath.XPathFactory
JAXP: http://java.sun.com/jaxp/xpath/dom is not in the property file
JAXP: looking into jar:file:/C:/Dev/lib/xalan-j/xalan.jar!/META-INF/services/javax.xml.xpath.XPathFactory
JAXP: Reading jar:file:/C:/Dev/lib/xalan-j/xalan.jar!/META-INF/services/javax.xml.xpath.XPathFactory
JAXP: http://java.sun.com/jaxp/xpath/dom is not in the property file
JAXP: attempting to use the platform default W3C DOM XPath lib
JAXP: instanciating com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl
JAXP: loaded it from jar:file:/C:/Dev/java/sdk/1.5/jre/lib/rt.jar!/com/sun/org/apache/xpath/internal/jaxp/XPathFactoryImpl.class
JAXP: factory 'com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl' was found for http://java.sun.com/jaxp/xpath/dom
The contents of this file should be:
http\://java.sun.com/jaxp/xpath/dom=org.apache.xpath.jaxp.XPathFactoryImpl
instead of just the class name for XPathFactory implementation.