Details
-
Bug
-
Resolution: Won't Do
-
Critical
-
None
-
jboss-fuse-6.2
-
None
-
%
Description
Usage of proxy client from simple frontend doesn't work anymore on CXF version 3.0.2. I have this code in my test class for creating proxy client:
ClientProxyFactoryBean factory = new ClientProxyFactoryBean(); factory.setServiceClass(Endpoint.class); factory.setAddress("http://10.40.3.82:8186/cxf/complex-example?wsdl"); Endpoint endpoint = (Endpoint) factory.create();
this code throws this exception:
java.lang.NoSuchFieldError: PRE_CLIENT_CREATE at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:92) at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:157) at org.jboss.fuse.qa.camel.FabricCamelTest.setUp(FabricCamelTest.java:35)
My Endpoint.class:
public interface Endpoint { public void createCustomer(String id, String firstName, String surname, String specialInfo); public String createSequence(); public String dropSequence(); public String createTable(); public String dropTable(); public String selectCustomers(String script); }
And the wsdl is generated by camel in camel-context :
<camelcxf:cxfEndpoint id="send" address="/complex-example" serviceClass="org.jboss.fuse.qa.quickstarts.complex.example.webservice.Endpoint"/>
WSDL file exists and it is accessible. This method was working on cxf 2.7.0 without a problem. Is this a bug or simple frontend shouldn't be used anymore?