Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2237

com.sun.xml.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • Invalid
    • None
    • None
    • Glassfish

    Description

      In my solution I have 2 endpoints and 1 Client.
      My client invokes the first endpoint which is responsilbe for authenticating the request and then forwards the request to second and final endpoint.

      Client client = ClientProxy.getClient(this.port);
      HTTPConduit http = (HTTPConduit) client.getConduit();
      AuthorizationPolicy authPolicy = new AuthorizationPolicy();
      authPolicy.setPassword("XXXX");
      authPolicy.setUserName("YYYYY");
      http.setAuthorization(authPolicy);

      The problem is that as a result I am getting a ClassCastException as follow:

      javax.xml.ws.soap.SOAPFaultException: com.sun.xml.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy

      My first endpoint has been deployed to Glassfish AS

      If I invoke the second endpoint directly from my client it works.

      Does anyone of you have any clue about this?

      Thanks in advance

      Attachments

        Activity

          People

            Unassigned Unassigned
            doviche Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: