You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Douglas (JIRA)" <ji...@apache.org> on 2009/05/22 16:54:45 UTC

[jira] Created: (CXF-2237) com.sun.xml.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy

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

                 Key: CXF-2237
                 URL: https://issues.apache.org/jira/browse/CXF-2237
             Project: CXF
          Issue Type: Bug
         Environment: Glassfish
            Reporter: Douglas



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


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-2237) com.sun.xml.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-2237.
------------------------------

       Resolution: Invalid
    Fix Version/s: Invalid


Classpath issue picking up wrong JAX-WS implementation.

> com.sun.xml.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy
> ---------------------------------------------------------------------------------------
>
>                 Key: CXF-2237
>                 URL: https://issues.apache.org/jira/browse/CXF-2237
>             Project: CXF
>          Issue Type: Bug
>         Environment: Glassfish
>            Reporter: Douglas
>             Fix For: Invalid
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-2237) com.sun.xml.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712133#action_12712133 ] 

Daniel Kulp commented on CXF-2237:
----------------------------------


You would need to double check classpaths and such.   That error would mean that the Sun JAX-WS implementation is being picked up instead of the CXF version.    Make sure the META-INF/services/javax.xml.ws.spi.Provider file from the cxf jars is available in the classloader.



> com.sun.xml.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy
> ---------------------------------------------------------------------------------------
>
>                 Key: CXF-2237
>                 URL: https://issues.apache.org/jira/browse/CXF-2237
>             Project: CXF
>          Issue Type: Bug
>         Environment: Glassfish
>            Reporter: Douglas
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-2237) com.sun.xml.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy

Posted by "Ivan Senji (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-2237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838856#action_12838856 ] 

Ivan Senji commented on CXF-2237:
---------------------------------

Hi Daniel. 

I know this issue is closed and don't wan't to bother but i just got this same exception. Code works great standalone but when included in a web app that is deployed to tomcat I get this exception.

Do you have any advice on which jar-s to look for? Which jar-s should and which shouldn't be in classpath for this to work.

Thanks very much in advance :)

> com.sun.xml.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy
> ---------------------------------------------------------------------------------------
>
>                 Key: CXF-2237
>                 URL: https://issues.apache.org/jira/browse/CXF-2237
>             Project: CXF
>          Issue Type: Bug
>         Environment: Glassfish
>            Reporter: Douglas
>             Fix For: Invalid
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.