How to remove JBossWS from JBoss EAP 4.x
Environment
- JBoss Enterprise Application Platform (EAP)
- 4.3.x
Issue
- We are getting a StackOverflowError when we converted some of our web services to use the CXF framework. It looks like the error comes from a conflict with the saaj library bundled with the JBoss EAP 4.3. As a workaround we put some updated xml jars & saaj jars in the endorsed directory, is this workaround acceptable? Or is there a better way?
We are setting these to use our new implementations:
-Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.MessageFactoryImpl -Djavax.xml.soap.MetaFactory=com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl -Djavax.xml.soap.SOAPFactory=com.sun.xml.messaging.saaj.soap.SOAPFactoryImpl
And putting these jars in the $JBSOS_HOME/lib/endorsed/ directory:
* opensaml-2.5.1-1.jar
* xmlsec-1.5.1.jar
* xmltooling-1.3.2-1.jar
* saaj-api-1.3.4.jar
* saaj-impl-1.3.18.jar
* wss4j-1.6.5.jar
- How can we disable JBoss Web Services in JBoss EAP 4.3?
Resolution
Remove the following files from JBoss EAP 4.x to disable JBoss Web Services:
$JBOSS_HOME/bin/wsconsume.sh
$JBOSS_HOME/bin/wsprovide.sh
$JBOSS_HOME/client/jaxb-api.jar
$JBOSS_HOME/client/jaxb-impl.jar
$JBOSS_HOME/client/jaxb-xjc.jar
$JBOSS_HOME/client/jaxws-rt.jar
$JBOSS_HOME/client/jaxws-tools.jar
$JBOSS_HOME/client/jboss-jaxrpc.jar
$JBOSS_HOME/client/jboss-jaxws.jar
$JBOSS_HOME/client/jboss-saaj.jar
$JBOSS_HOME/client/jbossws-client.jar
$JBOSS_HOME/client/jbossws-common.jar
$JBOSS_HOME/client/jbossws-framework.jar
$JBOSS_HOME/client/jbossws-spi.jar
$JBOSS_HOME/client/policy.jar
$JBOSS_HOME/client/stax-ex.jar
$JBOSS_HOME/client/streambuffer.jar
$JBOSS_HOME/client/wsdl4j.jar
$JBOSS_HOME/lib/endorsed/jaxb-api.jar
$JBOSS_HOMElib/endorsed/jboss-jaxrpc.jar
$JBOSS_HOME/lib/endorsed/jboss-jaxws.jar
$JBOSS_HOME/lib/endorsed/jboss-saaj.jar
$JBOSS_HOME/server/$PROFILE/deploy/jbossws.sar/
$JBOSS_HOME/server/$PROFILE/lib/jboss-jaxrpc.jar
$JBOSS_HOME/server/$PROFILE/lib/jboss-jaxws.jar
$JBOSS_HOME/server/$PROFILE/lib/jboss-saaj.jar
$JBOSS_HOME/server/$PROFILE/deploy/juddi-service.sar/
An ant script is attached, run it for instructions. Make sure to backup your directory in case there are issues.
ant -f remove-jbossws-build.xml
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
