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

Sarah McNamara commented on XALANJ-2185:
----------------------------------------

If you follow the link to http://xml.apache.org/xalan-j/faq.html#faq-N100D6
the doc there says:

"JDK/JRE 1.4, and JDK/JRE 5.0 is packaged with an old version of Xalan-Java. 
The JDK/JRE will attempt to use this version instead of any on the classpath. 
Unfortunately, this causes problems when attempting to use a newer version of 
Xalan-Java.

You can always determine which version of Xalan-Java you are running by using 
the EnvironmentCheck class or by using the xalan:checkEnvironment extension 
function. It is highly recommended that you use this method to verify the 
version of Xalan-Java you are running, especially before opening a bug report.

To use a newer version of Xalan-Java and override the one packaged with the JDK:

 - use the Endorsed Standards Override Mechanism. Place the xalan.jar, 
serializer.jar, xercesImpl.jar and xml-apis.jar in the <java-home>\lib\endorsed 
directory, where <java-home> is where the runtime software is installed. 

The following methods do not work: 

  -  Using the CLASSPATH environment variable or using -classpath to place the 
new classes in the classpath. 
  -  Using the -jar option to explicitly execute the classes inside the new jar 
files. 
"

> NoClassDefFoundError: org/w3c/dom/xpath/XPathEvaluator
> ------------------------------------------------------
>
>          Key: XALANJ-2185
>          URL: http://issues.apache.org/jira/browse/XALANJ-2185
>      Project: XalanJ2
>         Type: Bug
>   Components: Documentation
>     Versions: 2.7
>  Environment: WIndows 2000 SP4, JDK 1.5.0_04
>     Reporter: Martin Hilpert
>     Priority: Blocker
>      Fix For: 2.7

>
> I just wanted to upgrade from Xalan 2.6.0 (Xerces 2.7.0) to Xalan 2.7.0 (and 
> Xerces 2.7.1).  After adding the new serializer.jar to the endorsed 
> directory, it almost worked, except:
> NoClassDefFoundError: org/w3c/dom/xpath/XPathEvaluator
> But this class is in the Xerces xml-apis.jar and it is in my classpath as I 
> also checked by printing out the System.properties and found the correct 
> xml-apis.jar there. I also found this class in this xml-apis.jar file.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to