Hi,

First of all, ClientProxy is super class of JaxWsClientProxy.
And the exception you saw is
java.lang.ClassCastException: org.apache.cxf.jaxws.JaxWsClientProxy cannot
be cast to org.apache.cxf.frontend.ClientProxy
When you saw the Exception that a subclass can't cast to a super class, the problem generally come from that you load subclass and superclass from different classloader, could you provide more how you encounter this problem?

Freeman
On 2010-12-21, at 下午9:37, sandev wrote:


I'm getting class cast exception when try to get the client object from
proxy.

java.lang.ClassCastException: org.apache.cxf.jaxws.JaxWsClientProxy cannot
be cast to org.apache.cxf.frontend.ClientProxy

Since JaxWsClientProxy is the super class of ClientProxy, I'm not quite sure
what is the reason for this.
--
View this message in context: 
http://cxf.547215.n5.nabble.com/java-lang-ClassCastException-org-apache-cxf-jaxws-JaxWsClientProxy-cannot-be-cast-to-org-apache-cxf-y-tp3313516p3313516.html
Sent from the cxf-issues mailing list archive at Nabble.com.


--
Freeman Fang

------------------------

FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org

Reply via email to