Made the following change: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/spring" xmlns:broker="http://activemq.apache.org/schema/core" 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-M1.xsd http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd" >
Got the same exception: Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [MessageBrokerContext.xml]; nested exception is org.springframework.beans.FatalBeanException: Class [org.apache.camel.spring.handler.CamelNamespaceHandler] for namespace [http://camel.apache.org/schema/spring] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342 Thanks. Claus Ibsen-2 wrote: > > Hi > > Could you try using a fixed version in the namespace XML headers > > eg add 2.0-M1.xsd so you the version of Camel you are using. > > As the xsd files without a version is the latest and greatest releases. > > > On Fri, Aug 7, 2009 at 3:15 PM, skadirov<[email protected]> wrote: >> >> Spring version is 2.5.6. >> Thanks. >> >> >> willem.jiang wrote: >>> >>> Hi, >>> >>> I checked the code of >>> org.apache.camel.spring.handler.CamelNamespaceHandler >>> it implements the interface of >>> org.springframework.beans.factory.xml.NamespaceHandler. >>> >>> Can I know which version of Spring are you using ? >>> >>> Willem >>> skadirov wrote: >>>> Thanks for responding. >>>> >>>> I am using camel 2.0-M1 and the following namespaces: >>>> >>>> <beans xmlns="http://www.springframework.org/schema/beans" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xmlns:camel="http://camel.apache.org/schema/spring" >>>> xmlns:broker="http://activemq.apache.org/schema/core" >>>> 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 >>>> http://activemq.apache.org/schema/core >>>> http://activemq.apache.org/schema/core/activemq-core.xsd" > >>>> >>>> >>>> >>>> >>>> >>>> >>>> willem.jiang wrote: >>>>> Hi, >>>>> >>>>> Which version of Camel are you using ? >>>>> If you are using camel-1.x , you should try to use this namespace >>>>> http://activemq.apache.org/camel/schema/spring >>>>> >>>>> Willem >>>>> >>>>> skadirov wrote: >>>>>> Hello, >>>>>> I am getting the exception below. I was wondering if someone had run >>>>>> into >>>>>> and what was the fix. >>>>>> Many thanks. >>>>>> >>>>>> Caused by: >>>>>> org.springframework.beans.factory.BeanDefinitionStoreException: >>>>>> Unexpected exception parsing XML document from class path resource >>>>>> [MessageBrokerContext.xml]; nested exception is >>>>>> org.springframework.beans.FatalBeanException: Class >>>>>> [org.apache.camel.spring.handler.CamelNamespaceHandler] for namespace >>>>>> [http://camel.apache.org/schema/spring] does not implement the >>>>>> [org.springframework.beans.factory.xml.NamespaceHandler] interface >>>>> >>>>> >>>> >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/CamelNamespaceHandler-Exception-tp24853504p24864683.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> >> > > > > -- > Claus Ibsen > Apache Camel Committer > > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus > > -- View this message in context: http://www.nabble.com/CamelNamespaceHandler-Exception-tp24853504p24864952.html Sent from the Camel - Users mailing list archive at Nabble.com.
