3 Replies Latest reply on Apr 5, 2013 3:05 PM by horyna

    camel-example-cxf-proxy  need help

    chandraprabha

      Hi All,

       

      Please help .

       

      I am using the camel-example-cxf-proxy profile with fuse camel .

       

      I deployed it as it on servicemix 4 and it works fine . Now i want to modify it to call my external webservice.

       

      Changes i did are :

      1. Modified camel-config.xml to realwebservice url with my external webservice url

      2.Modified the wsdl

      3.Modified RealWebServiceBean with my real service url

      4.Modiffied this ReportIncidentEndpointService to implement the my SEI

       

      when i run i get

      Starting real webservice

      :-1:-1: Premature end of file.

        • 1. Re: camel-example-cxf-proxy  need help
          njiang

          Maybe your wsdl file is not right.

          I cannot tell more if you don't show me the whole stack trace.

           

          BTW, it's more like a camel-cxf component issue instand of Fuse SF issue.

           

          Willem

          • 2. Re: camel-example-cxf-proxy  need help
            chandraprabha

            Please also let me know how i can avoid implementing the SEI ..As i just want to forward the request to external service ..Thanks in advance

             

            Stack trace:

             

            Exception in thread "SpringOsgiExtenderThread-18" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'realWebService' defined in URL bundle://268.22:0/META-INF/spring/camel-config.xml: Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: Cannot create Endpoint for implementor that does not have a WebService annotation and does not implement the Provider interface

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

                    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

                    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

                    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

                    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

                    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)

                    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

                    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)

                    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)

                    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

                    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)

                    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)

                    at java.lang.Thread.run(Thread.java:619)

            Caused by: javax.xml.ws.WebServiceException: Cannot create Endpoint for implementor that does not have a WebService annotation and does not implement the Provider interface

                    at org.apache.cxf.jaxws.spi.ProviderImpl.createEndpoint(ProviderImpl.java:124)

                    at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:143)

                    at javax.xml.ws.Endpoint.publish(Endpoint.java:57)

                    at org.apache.camel.example.cxf.proxy.RealWebServiceBean.start(RealWebServiceBean.java:43)

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                    at java.lang.reflect.Method.invoke(Method.java:597)

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)

                    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)

                    ... 14 more

            • 3. Re: camel-example-cxf-proxy  need help
              horyna

              Hello, i am starting with Camel and have exactly same problem. How to solve it? Thx. for helping

               

              pH.