Jahia in English > Issues in calling...

0 (0 Good)
0 (0 Bad)

Issues in calling SOAP web services by using apache cxf over jax-ws

by  prashant.gangwar@soprasteria.com »  2017/02/16 07:35

Hello,

We are using soap web services in our application.
For consuming soap web services we are using "org.apache.cxf" package over java default jax-ws classes. We are getting exceptions from consuming the web services .

Exceptions are as follows-

Error: com.sun.xml.internal.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy

                java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy

                at org.apache.cxf.frontend.ClientProxy.getClient(ClientProxy.java:128)

When we have copied apache cxf jar to apache tomcat lib directory then we are able to resolve that exception but then we are getting new exception as follows-

Error: java.lang.IllegalArgumentException: interface org.apache.cxf.endpoint.Client is not visible from class loader

                at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:581)

                at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:557)

We need to use apache cxf over default jax-ws. 

Please suggest how to resolve those issues so that we can use apache cxf over jax-ws.

Thanks

  (prashant.gangwar@soprasteria.com)

Number of messages  5
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page