Hi, I am trying to run a CXF client in WAS 7. The client runs fine but I start getting classcast excetion as soon as I try to use the ClientProxy.getClient(mycxfclient) so that I can apply some policies in regard to setting the connection and recieve timeout or setting the authentication data etc.
below is the sample code: Client cl = ClientProxy.getClient(rs); HTTPConduit http = (HTTPConduit) cl.getConduit(); HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); httpClientPolicy.setConnectionTimeout(120000); httpClientPolicy.setReceiveTimeout(120000); httpClientPolicy.setAllowChunking(false); http.setClient(httpClientPolicy); Here is the partial excetion trace: Exception data: java.lang.ClassCastException: org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler incompatible with org.apache.cxf.frontend.ClientProxy at org.apache.cxf.frontend.ClientProxy.getClient(ClientProxy.java:93) I have deployed successfully couple of CXF services on WAS 7. This is my first instance trying to consume the CXF CLIENT which is trying to hit another web service deployed somewhere else. As I mentioned even that works fine as long as I don't try to use the ClinetProxy. In the code above my Client cl is actually org.apache.cxf.frontend.Client and ClientProxy is org.apache.cxf.frontend.ClientProxy. I am gettig stuck on this one and will really appreciate if someoen can share some insight. As I indicated I have deployed some CXF servives successfully on WAS 7 after using the DisableIBMJAXWSEngine: true technique. But this problem is happening when I trying to run a CXF client in my code and when I try to get the Client thry ClientProxy.getClient call. -- View this message in context: http://cxf.547215.n5.nabble.com/CXF-client-and-WAS-7-issue-classcast-exception-tp4258948p4258948.html Sent from the cxf-issues mailing list archive at Nabble.com.