Welcome to Techy Tunes !

Follow Me

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



By   Unknown      December 21, 2014       
While I was developing a Web Client module I got this error. This happens because of a dependency issue.

I had used the dependency


<dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-frontend-simple</artifactId>
            <version>3.0.2</version>
</dependency>


This got me the error continuously. The one you need is


 <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-frontend-jaxws</artifactId>
            <version>3.0.2</version><</dependency>


Instead of simple, you have to use jaxws. That's it :) this saved me. (Though it is so simple)

About Unknown

A Software Engineer who desperately loves Music. Works in WSO2 Telco . Loves cricket, hates Buriyani.

No comments :

Post a Comment