Problem faced with jDom XPath ;)

Add a comment February 20th, 2008

Today I had faced an issue related with jDom Xpath. In my project I am using Xpath to get Nodes from a web service request. But during thisĀ  parsing a ‘Class not found exception‘ was throwing continuously and the funny thing is, the class which was not finding was already existing in that jar file. It was a crutial moment for me becouse a demo was going to be happen the day after next day and I have to deploy and give that web service to my friends working in the .net side to continue their work.

The exception was just like the following…
org.jdom.JDOMException: java.lang.NoClassDefFoundError: org/jdom/Text:
org/jdom/Text

The stack trace was like follows

Caused by: java.lang.NoClassDefFoundError: org/jdom/Text
at org.jaxen.jdom.JDOMXPath.<init>(JDOMXPath.java:100)
at org.jdom.xpath.JaxenXPath.setXPath(JaxenXPath.java:281)
at org.jdom.xpath.JaxenXPath.<init>(JaxenXPath.java:99)

I searched in net and got the following link. Here the author specified the non availability of the jaxen.jar file in the lib folder. This helped me a lot… thanks Connor.. But when I checked in my project lib [ I am also using jBoss for this project] , I found this ‘jaxen.jar’ is already there in my jBoss lib as well as in webapps lib.

I tried by downloading the following jaxen jar, “jaxen-1.1-beta-9.jar” and put in the lib folder. And Its Worked !!! Hope this post will helpful in future, for me or to any of my friends :)

Book Mark it-> del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList

Popularity: 1% [?]

Bookmark this on BuzzURLBookmark this on BuzzURL Post to TwitterTweets for this web page Bookmark this on FC2 Bookmark newsing it! Choix it! Add to Google Bookmark Bookmark this on Delicious Digg This

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

  1. No comments yet.Be the first ?
  1. No trackbacks yet.
Comments feed