wood burning stoves*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: BUILD FAILED java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI