Hi,
I am currently trying to develop an application that allows access to a webservice from inside a web application to do a simple thing like ping the webservice to see if it is available. However, the problem I am having with JBoss is I am currently receiving the following error:
java.lang.ClassCastException: org.apache.cxf.jaxws.ServiceImpl at javax.xml.ws.Service.<init>(Service.java:81) at org.myservice.ws.MyWebService.<init>(MyWebService.java:52) at org.myapp.mybean.getMyWebService(MyBean.java:103)
I have a stand alone client and I am able to test the webservice from the client just fine, without errors.
When I try to test the webservice from my web application it throws the above error.
This is the call where it dies. (on new instantiation)
MyWebService service =
new MyWebService();
I have been able to determine that perhaps jboss's jar library is overwritting my application's jar library, but I have not been able to determine which jar is being over written. Any help would be appreciated.