Hi guys,
I am trying to run a CXF DOSGi example in Eclipse Galileo but I am getting a
ClassCastException when instantiating the Service Client.
The relevant part of the stacktrace is:
Caused by: java.lang.LinkageError: ClassCastException: attempting to
castbundleresource://102.fwk15020296:12/javax/xml/ws/spi/Provider.classtojar:file:/C:/Programme/Java/jdk1.6.0_13/jre/lib/rt.jar!/javax/xml/ws/spi/Provider.class
at javax.xml.ws.spi.Provider.provider(Provider.java:94)
at javax.xml.ws.Service.<init>(Service.java:56)
The bundle reference shown in the stacktrace obviously points to the
org.apache.servicemix.specs.jaxws-api-2.1-1.3.0.jar in the cxf singlebundle
distribution
(/cxf-dosgi-ri-singlebundle-distribution/lib/org.apache.servicemix.specs.jaxws-api-2.1-1.3.0.jar).
The distribution is build locally based on the 1.1.0.SNAPSHOT of the DOSGi
project.
Does anyone know how to solve the problem? I only found the following topic
dealing with the same problem:
http://www.mail-archive.com/[email protected]/msg05784.html.
Unfortunately, the posted solution seems not to work.
Many thanks in advance.
--
View this message in context:
http://old.nabble.com/ClassCastException-javax.xml.ws.spi.Provider-tp27112065p27112065.html
Sent from the cxf-user mailing list archive at Nabble.com.