L.S.,

The problem is in the xmlns="..." you are setting on the camelContext
element.  That namespace should match the one you defined in the
schemaLocation ("http://camel.apache.org/schema/spring";).  Something
like...

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://camel.apache.org/schema/spring
       http://camel.apache.org/schema/spring/camel-spring-2.0.0.xsd";>

  <camelContext xmlns="http://camel.apache.org/schema/spring";>
    <route>
      <from uri="timer://myTimer?fixedRate=true&amp;period=10000"/>

      <to uri="log:ExampleRouter"/>
    </route>
  </camelContext>
</beans>

FWIW, I also updated
https://cwiki.apache.org/confluence/display/CAMEL/tutorial-osgi-camel-part1
so in a few hours time, the website should be showing the correct
information as well.

Thanks for reporting this!

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



On Wed, Mar 16, 2011 at 8:33 PM, dead_devil_66 <[email protected]> wrote:
> this is demo-camel-bundle-context-osgi.xml:
>
> http://pastie.org/1679729
>
> this is demo-camel-bundle-context.xml:
>
> http://pastie.org/1679735
>
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/Exception-in-thread-SpringOsgiExtenderThread-7-java-lang-IllegalStateException-BeanFactory-not-initit-tp3791617p3795631.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>

Reply via email to