[jboss-user] [Beginner's Corner] - Webservice ClassCastException in JBoss 4.2.3

Seamus Loftus do-not-reply at jboss.com
Wed Mar 24 13:34:02 EDT 2010


Seamus Loftus [http://community.jboss.org/people/Jadin] created the discussion

"Webservice ClassCastException in JBoss 4.2.3"

To view the discussion, visit: http://community.jboss.org/message/533795#533795

--------------------------------------------------------------
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.




--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/533795#533795]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100324/64348884/attachment.html 


More information about the jboss-user mailing list