Getting java.lang.NoClassDefFoundError: com/sun/org/apache/xerces/internal/dom/DocumentImpl in JBoss

Solution Verified - Updated -

Issue

  • The Webservice application deployed on JBoss is not working, it is throwing errors on server.log file. The same webservice is working properly on Tomcat 6.0.3.
  • We are getting the following below exception in the server.log file,
Caused by: java.lang.NoClassDefFoundError: com/sun/org/apache/xerces/internal/dom/DocumentImpl
    at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_21]
...
...
Caused by: java.lang.ClassNotFoundException: com.sun.org.apache.xerces.internal.dom.DocumentImpl from [Module "deployment.xxx.war:main" from Service Module Loader]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content