Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other Application Frameworks and the fly likes CXF webservice ClassCastException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "CXF webservice ClassCastException" Watch "CXF webservice ClassCastException" New topic
Author

CXF webservice ClassCastException

Raghu Nandakumar
Greenhorn

Joined: Mar 25, 2011
Posts: 1
Hi guys,
Has anyone of you stumbled upon this issue with a CXF webservice? I am attempting to test my webservice deployed on a Weblogic 10.3 server. The service does appear to be up and the wsdl is accessible via the url. But, when I attempt to access it using a test client class, I keep getting this error... Any help would be greatly appreciated!!

Thanks,
Raghu

Mar 25, 2011 2:54:10 PM org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
INFO: No cxf.xml configuration file detected, relying on defaults.
Mar 25, 2011 2:54:13 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service {http://webservice.abc.com/}RestrictAccount from class com.abc.webservice.RestrictAccountService
WSDL_FILE_URL: null
ENDPOINT_ADDRESS: http://localhost:7002/abcSvc-web/services/RestrictAccountService
******************* RESTRICT - Invoking Service *************
Mar 25, 2011 2:54:16 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:566)
at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121)
at $Proxy55.restrictAccount(Unknown Source)
at com.abc.webservice.TestWSClient.main(TestWSClient.java:114)
javax.xml.ws.soap.SOAPFaultException: java.lang.String cannot be cast to java.lang.Boolean
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:141)
at $Proxy55.restrictAccount(Unknown Source)
at com.abc.webservice.TestWSClient.main(TestWSClient.java:114)
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
at org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:566)
at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121)
... 2 more


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CXF webservice ClassCastException
 
Similar Threads
Exception: java.net.ProtocolException: Server redirected too many times?? Please help!
SOAP compatibility
Issue faced while calling Web service from standalone client using certificate.
Probleme de lancement de test avec StrutsTestCase
Problem in running apache CXF webservice in weblogic 10 server