2 Replies Latest reply on Sep 28, 2011 3:23 AM by Miłosz Mazur

    JBoss 6 CXF PicketLink Proxy cannot be cast to org.jboss.ws.core.StubExt

    Miłosz Mazur Newbie

      Hi,

       

      I am trying to run sample PicketLink STS service from article http://community.jboss.org/wiki/SAMLWSIntegrationWithPicketLinkSTS on JBoss 6. I have deployed STS service successfuly but I have problem with client appliaction (code the same as in article). When I try to assign config name defined in standard-jaxws-client-config.xml to port object I get:

       

      java.lang.ClassCastException: $Proxy173 cannot be cast to org.jboss.ws.core.StubExt

       

      Code:

       

      ...

      WSTest port = service.getPort(new QName("http://test.webservice/", "WSTestBeanPort"), WSTest.class);

      ((StubExt) port).setConfigName("SAML WSSecurity Client"); //exception

      ...

       

      I have checked in debug that port is  org.apache.cxf.jaxws.JaxWsClientProxy.

       

      Any ideas ? Thanks in advance.

       

       

      Regards,

       

      Miłosz