How to run a standalone JAX-WS thin client in JBoss EAP 6
Issue
- I am using following four jar files to run the JAX-WS thin client:
jboss-modules.jar,jaxb-impl-2.2.5-redhat-1.jar,jboss-jaxb-api_2.2_spec-1.0.4.Final-redhat-1.jar,istack-commons-runtime-2.6.1-redhat-1.jar - Those four jars were enough to run a regular client. However I am getting the following exception when the code is involved to build a soap fault on the client side:
Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to com.sun.xml.internal.bind.api.JAXBRIContext
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.<clinit>(SOAPFaultBuilder.java:550)
... 5 more
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
