You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Cagatay Kavukcuoglu (JIRA)" <xa...@xml.apache.org> on 2006/01/29 21:30:39 UTC

[jira] Commented: (XALANJ-2263) Xerces XPath factory can not be found through META-INF/services/javax.xml.xpath.XPathFactory file

    [ http://issues.apache.org/jira/browse/XALANJ-2263?page=comments#action_12364395 ] 

Cagatay Kavukcuoglu commented on XALANJ-2263:
---------------------------------------------

Here's better output from JAXP debug, the previous log included a lookup from a broken copy of the META-INF/services/javax.xml.xpath.XPathFactory file in my development workspace:

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 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


> Xerces XPath factory can not be found through META-INF/services/javax.xml.xpath.XPathFactory file
> -------------------------------------------------------------------------------------------------
>
>          Key: XALANJ-2263
>          URL: http://issues.apache.org/jira/browse/XALANJ-2263
>      Project: XalanJ2
>         Type: Bug
>   Components: JAXP
>     Versions: 2.7
>  Environment: JDK 1.5.0_06
>     Reporter: Cagatay Kavukcuoglu
>     Priority: Minor
>  Attachments: XalanXPathTest.java
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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