Hi Dinesh, You will see a similar error if you try to run Camel JUnit tests and are using OSGi for your properties file. To make this slightly less painful, you can put your PropertyPlaceHolder in its own file. For example, this file can be called properties-context.xml
<beans xmlns="http://www.springframework.org/schema/beans" ...> <osgix:cm-properties id="cfg-properties" persistent-id="cfg.id"/> <ctx:property-placeholder properties-ref="cfg-properties"/> </beans> Then import this file in your camel-context.xml: <import resource="properties-context.xml"/> Then under src/test/resources/META-INF/spring add a different properties-context.xml: <beans xmlns="http://www.springframework.org/schema/beans" ...> <ctx:property-placeholder location="file:///${conf.home}/my.cfg"/> </beans> This way you can set this up once and then write J-Unit tests without having to change anything. This doesn't help for camel:run. For this you can either set up ServiceMix debugging: http://www.ithoughts.de/servicemix-4-2-debugging-and-more-gotchas Or you can just comment out the OSGi properties and replace it with the spring file placeholder :-) -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-Camel-osgi-compendium-and-mvn-camel-run-tp4598536p5681080.html Sent from the Camel - Users mailing list archive at Nabble.com.