Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Exception for org.jaxen.XPathFunctionContext

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: foxwei AT gmail.com
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Exception for org.jaxen.XPathFunctionContext
  • Date: Fri, 16 Jun 2006 06:04:34 -0400

Wei Hu wrote:
Hello,

Downloaded xom 1.1 and try to do element.query("//test"), got following
exception:

Exception in thread "main" java.lang.NoSuchMenthodError:
org.jaxen.XPathFunctionContext.<init>(Z)V
at nu.xom.JaxenConnector.<clinit>(JaxenConnector.java:45)
at nu.xom.Node.query(Node.java:424)
at nu.xom.Node.query(Node.java:514)
at com.xxx.test.XOM.treeQuery(XOMTest.java:35)


That really sounds like a classpath problem, which is hard to diagnose remotely. Why NoSuchMenthodError instead of NoSuchMethodError? Is that the actual exception trace?


I even downloaded jaxen and put into classpath, still the same problem.


You shouldn't need to do that. Jaxen is compiled straight into XOM. Try taking it out of the classpath.


--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/




Archive powered by MHonArc 2.6.24.

Top of Page