[jboss-user] [JBossWS] - cannot be cast to java.lang.RuntimeException

QkI do-not-reply at jboss.com
Sun Mar 9 09:34:47 EDT 2008


When I try to run my ws client, I get error

  | Exception in thread "main" java.lang.ClassCastException: java.lang.ExceptionInInitializerError cannot be cast to java.lang.RuntimeException
  | 	at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:268)
  | 	at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:139)
  | 	at com.sun.xml.internal.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:86)
  | 	at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:174)
  | 	at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:108)
  | 	at $Proxy16.sayHello(Unknown Source)
  | 	at biz.safo.ws.client.Client.main(Client.java:12)
  | 

this's my ws

  | @Stateless
  | @WebService(name="Hello",
  | 			targetNamespace="http://ws.safo.biz",
  | 			serviceName="HelloService")
  | public class Hello implements HelloRemote {
  | 
  | 	@WebMethod
  | 	public String sayHello(String name) {
  | 		System.out.println("<< sayHello");
  | 		return "Hello, " + name;
  | 	}
  | 
  | }
  | 

and client

  | public class Client {	   
  | 	public static void main(String[] args) {	
  | 		HelloService service = new HelloService();
  | 		Hello hello = service.getHelloPort();
  | 		hello.sayHello("heh");
  | 	}
  | }
  | 

classes Hello and HelloService i generate by wsconsume.
My configuration JBoss 4.2.1, jbossws 2.0.3, jdk6.

Any idea what I'm doing wrong?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135144#4135144

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135144



More information about the jboss-user mailing list