You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by mv...@comcast.net on 2010/08/03 21:21:04 UTC

camelContext not recognized by Karaf?


Using the below camel-context.xml file, located in the META-INF/spring directory I get an karaf error that it does not recognize "camelContext".  Any ideas what could be wrong? I've got the following features installed: 

spring-dm 

spring 

camel-core 

camel-osgi 

camel-spring-integration 



<?xml version="1.0"  encoding="UTF-8"?> 

<!-- configures the Camel Context --> 

<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.xsd"> 

  

<import resource="classpath:META-INF/project/jms-context.xml" /> 

<camelContext xmlns="http://activemq.apache.org/camel/schem/spring"> 

   <package>project.jmsStuff</package> 

</camelContext> 



</beans> 

Re: camelContext not recognized by Karaf?

Posted by xa...@open-groupe.com.
Hello,

Perhaps, just replace
xmlns="http://activemq.apache.org/camel/schem/spring" by
xmlns="http://camel.apache.org/schema/spring"

Regards, Xavier
>
>
> Using the below camel-context.xml file, located in the META-INF/spring
> directory I get an karaf error that it does not recognize
> "camelContext".  Any ideas what could be wrong? I've got the following
> features installed:
>
> spring-dm
>
> spring
>
> camel-core
>
> camel-osgi
>
> camel-spring-integration
>
>
>
> <?xml version="1.0"  encoding="UTF-8"?>
>
> <!-- configures the Camel Context -->
>
> <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.xsd">
>
>  
>
> <import resource="classpath:META-INF/project/jms-context.xml" />
>
> <camelContext xmlns="http://activemq.apache.org/camel/schem/spring">
>
>    <package>project.jmsStuff</package>
>
> </camelContext>
>
>
>
> </beans>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org