ClassNotFoundException: com.sun.xml.messaging.saaj.soap.SOAPDocumentImpl

Solution Verified - Updated -

Issue

We're trying to deploy a legacy application which has several web service related libraries packaged with it. In order to minimize the effort to run this app under EAP 6 we've disabled the web-service module via jboss-deployment-structure.xml:

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
  <deployment>
    <exclude-subsystems>
      <subsystem name="webservices"/>
    </exclude-subsystems>
  </deployment>
</jboss-deployment-structure>

However, if the container loads the legacy application before other web services, we get:

java.lang.ClassNotFoundException: com.sun.xml.messaging.saaj.soap.SOAPDocumentImpl

Have we made incorrect assumptions or misconfigured the legacy project's deployment?

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.