Hmmm, that's radically weird.
Make sure you have the following jars in your classpath. It may be possible you have too many. These are the jars that should work: jaxen-core.jar jaxen-jdom.jar saxpath.jar jaxen-core.jar is the core Jaxen engine, without any adaptors. jaxen-jdom.jar is the adaptors for JDOM, and saxpath.jar is used by jaxen-core.jar Plus, whatever other XML jars you need for creating your Document, probably: xerces.jar jdom.jar xerces.jar provides your parser (used by the SAXBuilder from JDOM), and jdom.jar, of course, contains your JDOM classes. Give that a whirl, and hopefully it'll work. If not, try the demo.jdom ant target: ./build.pl demo.jdom See if that works. If so, then it's definitely some flavor of classpath issues. Lemme know, -bob On Fri, 9 Nov 2001, George Pieri wrote: > I've tried running both JDOMDemo.java and XPathTest.java and get the same > error > message when selecting nodes > > Code > ====== > > XPath xpath = new XPath( "/foo/bar/baz" ); > SAXBuilder builder = new SAXBuilder(); > Document doc = builder.build( BASIC_XML ); > System.out.print("Document built, selecting nodes...") ; > List results = xpath.selectNodes( doc ); > > Error Message: > ================ > C:\dev>java XPathTest > > Document built, selecting nodes...Exception in thread "main" > java.lang.NoSuchMet > hodError > at > org.jaxen.jdom.DocumentNavigator.getChildAxisIterator(DocumentNavigat > or.java:123) > at > org.jaxen.expr.iter.IterableChildAxis.iterator(IterableChildAxis.java > :21) > at org.jaxen.expr.DefaultStep.axisIterator(DefaultStep.java:78) > at > org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java: > 127) > at > org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(DefaultAbsoluteLo > cationPath.java:65) > at org.jaxen.expr.DefaultXPath.asList(DefaultXPath.java:46) > at org.jaxen.JaXPath.jaSelectNodes(JaXPath.java:35) > at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:22) > at XPathTest.testSelection(XPathTest.java:59) > at XPathTest.main(XPathTest.java:92) > > It is reading the basic.xml file supplied as a sample. > > At first I thought it might be that I didn't have the correct jar files in > the path. > I originally had jaxen-full.jar,jaxen-core.jar,saxpath.jar, jaxen-jdom.jar > and also > xerces.jar,xalan.jar,crimson.jar along with others. > > I then switched and added "ALL" the jar files that came with the product but > I STILL > get the same error. > > Any help would be greatly apprecated! > Thanks in advance! > > > _______________________________________________ > Jaxen-interest mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jaxen-interest > _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest