3 Replies Latest reply on Jun 23, 2011 2:37 AM by Freeman(Yue) Fang

    Trying the Apache CXF Proxy sample on ServiceMix 4.4 - bad luck

    Michael Grom Newbie

      Dear Forum,

       

      I'm trying to adapt the CXF Proxy example found on the camel.apache.org page to build as an osgi bundle and deploy to servicemix 4.4. After plenty of Import-Packages amendments I got as far as

       

      ---

              ... 13 more

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.transport.http_jetty.J

      ettyHTTPTransportFactory' defined in OSGi resource[classpath:META-INF/cxf/cxf-extension-http-jetty.xml|bnd.id=237|bnd.sym=camel-bundle]:

      Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)

              at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:250)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanF

      actory.java:1003)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFa

      ctory.java:907)

      ---

      Basically, I want to set up a facade representing a web service which proxies to one to many "real" web services, transforming payloads as needed and assembling a response for the original caller. I thought the CXF proxy example would be the closest to get there in the servicemix/camel world.

       

      Any help greatly appreciated.

       

      Kind regards

      Michael