dev@jax-ws.java.net

Re: java.lang.ClassCastException: ... cannot be cast to ...

From: Lukas Jungmann <lukas.jungmann_at_oracle.com>
Date: Tue, 13 Nov 2012 21:10:58 +0100

Hi,

On 13.11.2012 20:29, fabricio.fachini_at_hotmail.com wrote:
> Hello, i´m still trying to consume ws with pljava.
>
> Can you help me with this error?
>
> java.lang.ClassCastException:
> com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl cannot
> be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
>
> Informations about enviroment
> Java 1.6

-this has JAX-WS RI 2.1.n

> JAX-WS 2.2.7

-you're using newer version

=> move/copy jaxb-api.jar, jaxws-api.jar and saa-api.jar from your
JAX-WS 2.2.7 instalation to $JAVA_HOME/jre/lib/endorsed[1]

or switch to Java 7

regards,
--lukas

[1]: see
http://jax-ws.java.net/2.2.7/docs/release-documentation.html#running-on-top-of-jdk-6

> Pgsql 9
>
> Thanks a lot!
>
> Fabrício Fachini
> From Brasil
>