3 Replies Latest reply on Oct 11, 2012 4:22 AM by Freeman(Yue) Fang

    Using cxf consumer and provider

    javier posado Newbie

      I've a external web service that I want to call through service mix using cxf consumer and provider. I've one cxf su that contains a xbean.xml file like this:

       

      org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service CXFTestService.</loc-message>

      <stack-trace><![CDATA[javax.jbi.management.DeploymentException: org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service CXFTestService.

      at org.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:424)

      at  org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)

      at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)

      at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)

      at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)

      at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)

      at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)

      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)

      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)

      at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateExternalArchive(AutoDeploymentService.java:204)

      at org.apache.servicemix.jbi.container.JBIContainer.updateExternalArchive(JBIContainer.java:480)

      at org.apache.servicemix.jbi.container.JBIContainer.updateExternalArchive(JBIContainer.java:490)

      at org.apache.servicemix.jbi.framework.AdminCommandsService.deployServiceAssembly(AdminCommandsService.java:209)

      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:585)

      at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)

      at org.apache.servicemix.jbi.management.BaseStandardMBean.invoke(BaseStandardMBean.java:323)

      at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)

      at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)

      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)

      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)

      at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1410)

      at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)

      at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1247)

      at java.security.AccessController.doPrivileged(Native Method)

      at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1350)

      at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:784)

      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:585)

      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)

      at sun.rmi.transport.Transport$1.run(Transport.java:153)

      at java.security.AccessController.doPrivileged(Native Method)

      at sun.rmi.transport.Transport.serviceCall(Transport.java:149)

      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)

      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)

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

      Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service CXFTestService.

      at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:114)

      at org.apache.servicemix.cxfbc.CxfBcConsumer.validate(CxfBcConsumer.java:321)

      ... 39 more

       

      I'm sure the error is easy to fix, but have not been able to solve it, any

      tips out there??

       

      thx,

      javier

       

      Edited by: javier on Nov 24, 2008 3:38 PM