You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Néstor Boscán <ne...@gmail.com> on 2014/08/24 19:01:55 UTC

Spring JAXWS client ClassCastException: $Proxy14$ cannot be cast to Service Interface

Hi

I'm creating a service client using CXF 2.7.9. When I try to get the bean
from spring I get:

ClassCastException: $Proxy14$ cannot be cast to Service Interface

If I don't cast it, it will return an object of type $Proxy14$.

Any ideas?

Regards,

Néstor

RE: Spring JAXWS client ClassCastException: $Proxy14$ cannot be cast to Service Interface

Posted by Andrei Shakirin <as...@talend.com>.
Hi,

Could you please post your spring configuration and code to get client bean?

Regards,
Andrei.

> -----Original Message-----
> From: Néstor Boscán [mailto:nestorjb@gmail.com]
> Sent: Sonntag, 24. August 2014 19:02
> To: users@cxf.apache.org
> Subject: Spring JAXWS client ClassCastException: $Proxy14$ cannot be cast to
> Service Interface
> 
> Hi
> 
> I'm creating a service client using CXF 2.7.9. When I try to get the bean from
> spring I get:
> 
> ClassCastException: $Proxy14$ cannot be cast to Service Interface
> 
> If I don't cast it, it will return an object of type $Proxy14$.
> 
> Any ideas?
> 
> Regards,
> 
> Néstor