0 Replies Latest reply on Aug 7, 2008 4:27 AM by Joy Faniyi

    java.lang.ClassCastException: org.jboss.ws.core.soap.SOAPMes

    Joy Faniyi Newbie

      I am using JBossWS with JBoss 4.2.3 with JDK 1.5 and getting the following Exception when executing a test Web Service. The Web Service is successfully deployed

      04:10:39,318 ERROR [[AccountService]] Servlet.service() for servlet AccountServi
      ce threw exception
      java.lang.ClassCastException: org.jboss.ws.core.soap.SOAPMessageImpl
      at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultH
      elperJAXWS.java:245)
      at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(
      SOAPFaultHelperJAXWS.java:174)
      at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessage
      FromException(SOAP11BindingJAXWS.java:104)
      at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBindin
      g.java:671)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHan
      dlerImpl.java:488)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHand
      lerImpl.java:284)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl
      .java:201)
      at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(Request
      HandlerImpl.java:134)
      at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java
      :84)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:182)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC


      Any Ideas??