java.lang.ClassCastException when calling a WebService
by Henden Yasemin
Hi,
I'm trying to call a WebService Method but I get this exception :
javax.servlet.ServletException: java.lang.ClassCastException:
org.jboss.ws.core.jaxws.spi.ProviderImpl cannot be cast to
javax.xml.ws.spi.Provider
org.apache.struts.action.RequestProcessor.processException(RequestProces
sor.java:520)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:427)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
228)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)
Both applications are deployed on Jboss 5.0.1
I've generated the stubs using wsconsume
I use JDK 1.6
Anybody has any idea of where it's coming from ?
Thanks in advance,
Yasemin
15 years, 6 months
[JBossWS] - Re: Not able to generate the wsdl
by jena435
Peter,
I tried using the example you have mentioned but I still get the errors. The errors that is in the console log.
13:28:33,507 ERROR [[/hello]] StandardWrapper.Throwable
java.lang.ClassCastException: org.jboss.wsf.framework.DefaultSPIProviderResolver
at org.jboss.wsf.spi.SPIProviderResolver.getInstance(SPIProviderResolver.java:38)
at org.jboss.wsf.stack.jbws.EndpointServlet.init(EndpointServlet.java:68)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)
13:28:33,507 ERROR [[HelloService]] Allocate exception for servlet HelloService
java.lang.ClassCastException: org.jboss.wsf.framework.DefaultSPIProviderResolver
at org.jboss.wsf.spi.SPIProviderResolver.getInstance(SPIProviderResolver.java:38)
at org.jboss.wsf.stack.jbws.EndpointServlet.init(EndpointServlet.java:68)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)
Thanks in advance.
RJ
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239509#4239509
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239509
15 years, 6 months