How to disable JBossWS in JBoss EAP 7 / 6

Solution Verified - Updated -

Issue

  • What would we need to do to disable JBossWS to just use the Metro jars in JBoss EAP 6?
  • I want to slim my JBoss installation to the minimum. How do I remove the web services subsystem?
  • We added exclusion of webservices to jboss-deployment-structure.xml. Additionally, we commented <extension module="org.jboss.as.webservices"/> and <subsystem xmlns="urn:jboss:domain:webservices:1.2"> in standalone-full.xml
  • We get the below exception when trying to invoke the serivce:
Caused by: java.lang.ClassCastException: class org.apache.cxf.jaxb.JAXBDataBinding
    at java.lang.Class.asSubclass(Class.java:3126)
    at org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:269)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.getJAXBClass(ReflectionServiceFactoryBean.java:243)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactoryBean.java:223)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.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.