cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <>
Subject [jira] Commented: (CXF-2237) cannot be cast to org.apache.cxf.frontend.ClientProxy
Date Fri, 22 May 2009 15:16:45 GMT


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/
file from the cxf jars is available in the classloader.

> cannot be cast to org.apache.cxf.frontend.ClientProxy
> ---------------------------------------------------------------------------------------
>                 Key: CXF-2237
>                 URL:
>             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:
> 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.

View raw message