Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rohit Alwar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should adapt your code to use javax.xml.xpath.XPath instead of the Xerces-specific classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic