Hi, Try to add import package META-INF.cxf, Best regards, Lukasz
-----Original Message----- From: unmarshall [mailto:unmarsh...@gmail.com] Sent: Friday, October 29, 2010 2:35 PM To: users@camel.apache.org Subject: CXF Startup issue with Camel in OSGI runtime Hi All, I have an equinox based OSGI runtime. In that i am using Apache Camel 2.4.0 and CXF - 2.2.11 In the spring XML configuration file i have the following include statements: <import resource="classpath*:META-INF/cxf/cxf.xml" /> <import resource="classpath*:META-INF/cxf/cxf-extension-soap.xml" /> <import resource="classpath*:META-INF/cxf/cxf-extension-http.xml"/> <import resource="classpath*:META-INF/cxf/osgi/cxf-extension-osgi.xml"/> When the osgi runtime starts then it throws the following exception: Oct 29, 2010 5:20:10 PM org.apache.cxf.bus.spring.SpringBusFactory createApplicationContext WARNING: Initial attempt to create application context was unsuccessful. org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META-INF/cxf/cxf.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/cxf/cxf.xml] cannot be opened because it does not exist at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefini tions(XmlBeanDefinitionReader.java:341) at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBe anDefinitions(ControlledValidationXmlBeanDefinitionReader.java:131) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefini tions(XmlBeanDefinitionReader.java:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadB eanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDe finitions(AbstractXmlApplicationContext.java:122) at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusAppli cationContext.java:262) at org.springframework.context.support.AbstractRefreshableApplicationContext.re freshBeanFactory(AbstractRefreshableApplicationContext.java:130) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBe anFactory(AbstractApplicationContext.java:467) at org.springframework.context.support.AbstractApplicationContext.refresh(Abstr actApplicationContext.java:397) at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext .java:91) at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBu sFactory.java:102) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:9 3) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:8 6) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:6 4) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:5 3) at org.apache.cxf.transport.servlet.CXFServlet.updateContext(CXFServlet.java:13 6) at org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.java:10 4) at org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:73) at org.apache.cxf.transport.servlet.AbstractCXFServlet.init(AbstractCXFServlet. java:84) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.init(ServletRe gistration.java:49) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.registerServlet(Proxy Servlet.java:177) at org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.registerServlet(Ht tpServiceImpl.java:66) at com.sap.pi.composite.syn.internal.activator.TrackingComponent.startup(Tracki ngComponent.java:34) 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.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceCompo nent.java:210) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceC omponentProp.java:139) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComp onentProp.java:329) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProce ss.java:580) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProc ess.java:196) at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:4 31) at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:213) at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:800) at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.jav a:767) at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89) at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor. java:70) Caused by: java.io.FileNotFoundException: class path resource [META-INF/cxf/cxf.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResour ce.java:141) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefini tions(XmlBeanDefinitionReader.java:328) ... 37 more There is already an issue being logged @ http://mail-archives.apache.org/mod_mbox/camel-dev/201010.mbox/%3C6300966.62 871287668440374.javamail.j...@thor%3e CAMEL-2457 Issue The workaround due to the split-package issue (which is a no-no in OSGI) does not work for me. This is stopping me to use CXF and is a major problem. Has anyone worked on this issue yet? Best Regards, Madhav -- View this message in context: http://camel.465427.n5.nabble.com/CXF-Startup-issue-with-Camel-in-OSGI-runti me-tp3241913p3241913.html Sent from the Camel - Users mailing list archive at Nabble.com.