Hi, I followed the first Camel OSGi tutorial @ http://camel.apache.org/tutorial-osgi-camel-part1.html.
I use a "virgo-web-server-2.1.1.RELEASE" as my OSGi framework. I successfully packaged and deployed the "demo.service-bundle". Here is the log: [2011-08-14 13:45:06.412] http-8080-6 <DE0000I> Installing bundle 'demo.service-bundle' version '0.1.0'. [2011-08-14 13:45:06.431] http-8080-6 <DE0001I> Installed bundle 'demo.service-bundle' version '0.1.0'. [2011-08-14 13:45:06.443] http-8080-6 <DE0004I> Starting bundle 'demo.service-bundle' version '0.1.0'. [2011-08-14 13:45:06.584] start-signalling-5 <DE0005I> Started bundle 'demo.service-bundle' version '0.1.0'. I successfully packaged the second bundle "demo.camel-bundle". However when I try to deploy this on the server I get the following error: [2011-08-14 13:50:22.540] http-8080-6 <DE0000I> Installing bundle 'demo.camel-bundle' version '0.1.0'. [2011-08-14 13:50:22.555] http-8080-6 <DE0001I> Installed bundle 'demo.camel-bundle' version '0.1.0'. [2011-08-14 13:50:22.565] http-8080-6 <DE0004I> Starting bundle 'demo.camel-bundle' version '0.1.0'. [2011-08-14 13:50:24.860] start-signalling-5 <DE0006E> Start failed for bundle 'demo.camel-bundle' version '0.1.0'. org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://camel.apache.org/schema/spring] Offending resource: URL [bundleentry://72.fwk126607146/META-INF/spring/CamelContext.xml] at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:284) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1332) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1325) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:136) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164) at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:458) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at org.eclipse.virgo.kernel.agent.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:95) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) I can understand that this type or error: Unable to locate Spring NamespaceHandler for XML schema namespace [http://camel.apache.org/schema/spring] happens when the container can not access or find the "camel-spring.jar". However, as the tutorial suggests in the "Spring DM server" section (Spring DM server is now Virgo) I have already installed the following bundles: org.apache.servicemix.bundles.jaxb-impl-2.1.6_1.jar org.apache.servicemix.specs.jaxb-api-2.1-1.2.0.jar org.apache.servicemix.specs.activation-api-1.1-1.2.0.jar camel-core-1.6.0.jar camel-spring-1.6.0.jar Can someone suggest any solution or should I ask the Virgo community for help? Regards, Paul -- View this message in context: http://camel.465427.n5.nabble.com/Camel-OSGi-tutorial-1-tp4697946p4697946.html Sent from the Camel - Users mailing list archive at Nabble.com.
