[jboss-dev-forums] [JBoss Web Services Development] - java.lang.ClassCastException: $Proxy60 while connecting to JAX-WS from Jboss
Gopi G
do-not-reply at jboss.com
Tue Jan 10 02:47:49 EST 2012
Gopi G [http://community.jboss.org/people/gopi_jboss] created the discussion
"java.lang.ClassCastException: $Proxy60 while connecting to JAX-WS from Jboss"
To view the discussion, visit: http://community.jboss.org/message/645590#645590
--------------------------------------------------------------
Hi,
We are getting the below exception while connecting to a JAX-WS webservice from Jboss application server.
JAX-WS Service has been hosted in Websphere (JDK 1.6) by the third party interface.
We are trying to consume the Webservice as client from our application in Business layer.
Our configuration:
Jboss: 4.0.5
JDK : 1.5
Client jar of the service was built in Maven at our end from the wsdl using Jdk 1.5 and JAX-WS (2.2) Jars.
java.lang.ClassCastException: $Proxy60
at sun.reflect.annotation.AnnotationParser.annotationForMap(AnnotationParser.java:239)
at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:229)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
at java.lang.Class.initAnnotationsIfNecessary(Class.java:3031)
at java.lang.Class.getAnnotation(Class.java:2989)
at com.sun.xml.ws.model.RuntimeModeler$1.run(RuntimeModeler.java:179)
at com.sun.xml.ws.model.RuntimeModeler$1.run(RuntimeModeler.java:178)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.ws.model.RuntimeModeler.getPrivClassAnnotation(RuntimeModeler.java:177)
at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:213)
at com.sun.xml.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:661)
at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:649)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:343)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:308)
at javax.xml.ws.Service.getPort(Service.java:99)
at jaxws.yantra.com.MyAccount_Service.get_0020MyAccount(MyAccount_Service.java:72)
Can anyone provide your inputs to fix this?
Thanks,
Gopi.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/645590#645590]
Start a new discussion in JBoss Web Services Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2047]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120110/d41ad834/attachment.html
More information about the jboss-dev-forums
mailing list