[jdom-interest] Problem Using XPath in JDOM
niroshan at markus.no
Fri Oct 3 07:53:17 PDT 2003
I thinh this is due to the Jaxen classes needed in the JDOM,Jaxen combination being not there in the class path.
put Jaxen-core.jar and jaxen-jdom.jar in to ur class path and see. I am using the Xpath, with JDOM b9 succesfully, and it works.
From: JLathren at transmontaigne.com [mailto:JLathren at transmontaigne.com]
Sent: 25 September 2003 18:38
To: jdom-interest at jdom.org
Subject: [jdom-interest] Problem Using XPath in JDOM
I am attempting to get XPath calls working through Java using JDOM 9. I am
experiencing problems at the point of making the call
I am running jdk1.4.2 and jakarta-tomcat 4.1.24 within Eclipse
2.1.1. Within my project, I have the following jars in my build path in
xerces.jar (from the jdom 9 download)
jaxen-core.jar (from the jdom 9 download)
jaxen-jdom.jar (from the jdom 9 download)
jdom.jar (from the jdom 9 download)
saxpath.jar (from the jdom 9 download)
xalan.jar (from the jdom 9 download)
xml-apis.jar (from the jdom 9 download)
The exception thrown to the browser is 'java.lang.NoClassDefFoundError:
org/saxpath/SAXPathException'. This would indicate a build path problem.
Looking into it closer, what is actually failing is the call
Class.forName(className) where className is "org.jdom.xpath.JaxenXPath".
This would also indicate a buildpath problem.
Based on the similar FAQ posting, I have put the xerces.jar as the top jar
in the build path.
Any help that could be provided would be greatly appreciated.
Thank you -
To control your jdom-interest membership:
More information about the jdom-interest