Ok I've already posted something similar, but am now able to detail my steps quite clearly.
I have JBoss 4.2.1GA running JBossWS 2.0.1 on JDK 6.
The JARs below are then included in jboss-4.2.1.GA\lib\endorsed:
jaxb-api.jar
jboss-jaxrpc.jar
jboss-jaxws.jar
jboss-saaj.jar
Here's my code:
ServiceFactory factory = ServiceFactory.newInstance(); Service remote = factory.createService(url, qname); NewRegistrationsSession proxy = (NewRegistrationsSession) remote.getPort(NewRegistrationsSession.class); System.out.println("Receiving: " + proxy.uploadNewRegistrations("hello"));
Exception in thread "main" 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
Exception in thread "main" javax.xml.rpc.ServiceException: Provider com.sun.xml.rpc.client.ServiceFactoryImpl not found
Hi,
I also have faced the same problem but now i can able to run rpc client using wsrunclient which was found under jboss_installation_dir/bin.
EG, wsrunclient myclientprogram
Regards,