1 2 3 Previous Next 33 Replies Latest reply on Mar 2, 2010 10:34 PM by Alexandre Lourenço

    WS-RM Exception: cannot be cast to org.jboss.ws.core.StubExt

    Marwan Oweis Newbie


      I'm running the example found at:

      I'm able to deploy the WS, but when I try to run the sample client:

      I get the following exception:

      Exception in thread "main" java.lang.ClassCastException: $Proxy25 cannot be cast to org.jboss.ws.core.StubExt

      at the line:

      ((StubExt)proxy).setConfigName("Standard Anonymous WSRM Client", "META-INF/wsrm-jaxws-client-config.xml");

      FYI, when I run the client with this line commented out, I get a fault from the service that I'm not using WS-RM:
      Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: java.lang.IllegalStateException: RM handler was not able to find WS-RM message in the payload

      So the service seems to be configured fine, but I am unable to get the client to add WS-RM appropriately.

      Any ideas?

      I'm using:

      Thanks in advance!

        1 2 3 Previous Next