aspose file tools*
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
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
Marshal

Joined: Mar 22, 2005
Posts: 41880
    
  63
You should adapt your code to use javax.xml.xpath.XPath instead of the Xerces-specific classes.


Ping & DNS - my free Android networking tools app
 
Consider Paul's rocket mass heater.
 
subject: BUILD FAILED java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI