[jdom-interest] XPath problem using org.jdom.xpath

Laurent Bihanic laurent.bihanic at atosorigin.com
Thu Mar 11 03:11:01 PST 2004

Jaxen 1.0 FCS has been compiled against JDOM beta9. With the introduction of 
the Parent class in JDOM beta10, the signature of some methods has changed.

Thus, you need to recompile Jaxen against JDOM beta10 to fix this problem.

Jason, would it be possible for you to recompile Jaxen and update the 
jaxen-jdom.jar in both CVS and the JDOM beta10 distribution ?


Damien Conlon wrote:

> Hi,
> Hopefully someone can point me in the right direction here - I'm trying to
> use org.jdom.xpath.XPath to parse an XML file, and seem to have run into a
> problem caused when trying to get an ancestor using an XPath expression:
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.jdom.Element.getParent()Lorg/jdom/Element;
> at
> org.jaxen.jdom.DocumentNavigator.getParentAxisIterator(DocumentNavigator.jav
> a:252)
> at
> org.jaxen.expr.iter.IterableParentAxis.iterator(IterableParentAxis.java:82)
> at org.jaxen.expr.DefaultStep.axisIterator(DefaultStep.java:139)
> at
> org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:188)
> at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:107)
> at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:716)
> at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:239)
> at org.jdom.xpath.JaxenXPath.selectNodes(JaxenXPath.java:123)
> at org.jdom.xpath.XPath.selectNodes(XPath.java:337)
> at XPathReader.main(XPathReader.java:34)

More information about the jdom-interest mailing list