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.