This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes BUILD FAILED  java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "BUILD FAILED  java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI" Watch "BUILD FAILED  java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI" New topic
Author

BUILD FAILED java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI

Rohit Alwar
Greenhorn

Joined: Oct 03, 2010
Posts: 3
Hi All,

I am getting this error while deploying my application


BUILD FAILED

java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI


I recently update my java version from 1.5 to 1.6.0_24. Application working fine if i change java 1.5.

the environment information is below


OS : LINUX
Java version: 1.6.0_24

JBoss version is: jboss-4.0.3SP1


Thanks in advance

Rohit

Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
You should adapt your code to use javax.xml.xpath.XPath instead of the Xerces-specific classes.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: BUILD FAILED java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI