2 Replies Latest reply on Oct 4, 2007 5:06 AM by Dean Pullen

    ver1_1.Message1_1Impl cannot be cast to MessageImpl AND Cann

    Dean Pullen Novice

      On trying to run a SOAP client I get:

      Exception in thread "main" java.lang.ClassCastException: com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
       at com.sun.xml.rpc.client.dii.CallInvokerImpl._postSendingHook(CallInvokerImpl.java:305)
       at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324)
       at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:103)
       at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:486)
       at com.sun.xml.rpc.client.dii.CallInvocationHandler.doCall(CallInvocationHandler.java:121)
       at com.sun.xml.rpc.client.dii.CallInvocationHandler.invoke(CallInvocationHandler.java:85)
       at $Proxy0.uploadNewRegistrations(Unknown Source)
      



      On JBoss I receive:

      [03 Oct 2007 17:30:25] ERROR org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS - SOA
      P request exception
      org.jboss.ws.WSException: Cannot find child element: arg0
       at org.jboss.ws.core.CommonSOAPBinding.getParameterFromMessage(CommonSOA
      PBinding.java:891)
       at org.jboss.ws.core.CommonSOAPBinding.unbindRequestMessage(CommonSOAPBi
      nding.java:343)
      


      I'm using JBoss4.2.1GA with JBossWS-2.0.1

      The first exception seems related to the fact I'm using JDK 6...but jboss-saaj.jar is indeed in libs/endorsed which I believe should resolve that problem.

      Any ideas on how to fix this?