Hello there,
when I run a JAX-WS client (not SCA component) that accesses a remote SCA
service (in a different JVM)
which offers a binding.ws, I get a ClassCastExceptions in the innards of JAXB:
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:533)
... 5 more
The ClassCastException occurs only when the service throws an application
specific exception which
must be mapped to a web fault.
I am using JDK 1.6.0_18 and Tuscany 1.7 snapshot. The client side artefacts get
generated with JDK's
built-in wsimport tool.
The exception goes away when I remove jaxb-impl-2.1.7.jar from
%TUSCANY_HOME%\lib.
So I suppose the jaxb library included in Tuscany is incompatible with what is
included in the rt.jar of JDK 1.6.0_18.
-- Sebastian