users@jax-rpc.java.net

JAX-RPC on JDK 6

From: Lukas Jungmann <Lukas.Jungmann_at_Sun.COM>
Date: Mon, 11 Dec 2006 02:28:14 +0100

Hi all,

  I have a Java SE project with JAX-RPC client which runs well on JDK 5,
but when I run it on JDK 6 I always get:

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
         at
com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:231)
         at
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324)
         at
test.IQuizService_Stub.getRandomQuestion(IQuizService_Stub.java:121)
         at wsclient.Main.main(Main.java:31)

  My environment:
JDK 6 - build 103
OS: Win XP, reproducible also on Linux
JAX-RPC version: 1.6 (from JWSDP 1.6 FCS)

  From our observations there seems to be a clash between classes from
JDK 6 (rt.jar) and from saaj-impl.jar which is part of JAX-RPC distro.
Is there a bug somewhere or are am I just doing something wrong?

See also: http://www.netbeans.org/issues/show_bug.cgi?id=87181

Thanks,

--lj