Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-2245

CXF Simple Frontend Proxy Client doesn't work anymore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Critical
    • None
    • jboss-fuse-6.2
    • CXF
    • 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?

      Attachments

        Activity

          People

            willem.jiang Willem Jiang (Inactive)
            rjakubco Roman Jakubco (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: