You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by skadirov <su...@hbo.com> on 2009/08/06 22:08:40 UTC
CamelNamespaceHandler Exception
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-tp24853504p24853504.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CamelNamespaceHandler Exception
Posted by skadirov <su...@hbo.com>.
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<su...@hbo.com> 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.
Re: CamelNamespaceHandler Exception
Posted by Claus Ibsen <cl...@gmail.com>.
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<su...@hbo.com> 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
Re: CamelNamespaceHandler Exception
Posted by skadirov <su...@hbo.com>.
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.
Re: CamelNamespaceHandler Exception
Posted by Willem Jiang <wi...@gmail.com>.
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
>>
>>
>
Re: CamelNamespaceHandler Exception
Posted by Willem Jiang <wi...@gmail.com>.
Hi,
Can you check if Savvion has spring jar in it's lib or system director?
Willem
skadirov wrote:
> The environment is Savvion BPMS. Camel is used as integration tier between
> savvion and thrid party tools (such as Aspera for file movement etc).
>
> Both CamelNamespaceHandler and NamespaceHandler it seems should be loaded by
> the same class loader. Here are savvion classpath declarations.
>
> sbmcp=$sbmcp:$SBM_HOME/ebmsapps/common/lib/camel-spring-2.0-M1.jar
> sbmcp=$sbmcp:$SBM_HOME/ebmsapps/common/lib/spring-2.5.6.jar
> sbmcp=$sbmcp:$SBM_HOME/ebmsapps/common/lib/camel-core-2.0-M1.jar
> sbmcp=$sbmcp:$SBM_HOME/ebmsapps/common/lib/camel-jms-2.0-M1.jar
>
> Thanks.
>
>
>
>
> mproch wrote:
>> Can you describe environment you're using (osgi, smx, ...) ?
>> I experienced similar problems and they were usually related to
>> classloader issues (i.e.
>> org.apache.camel.spring.handler.CamelNamespaceHandler was loaded by
>> deifferent classloader than
>> org.springframework.beans.factory.xml.NamespaceHandler)
>>
>> br,
>> maciek prochniak
>>
>> On Fri, 2009-08-07 at 05:44 -0700, 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
>>>>
>>>>
>>
>>
>
Re: CamelNamespaceHandler Exception
Posted by skadirov <su...@hbo.com>.
The environment is Savvion BPMS. Camel is used as integration tier between
savvion and thrid party tools (such as Aspera for file movement etc).
Both CamelNamespaceHandler and NamespaceHandler it seems should be loaded by
the same class loader. Here are savvion classpath declarations.
sbmcp=$sbmcp:$SBM_HOME/ebmsapps/common/lib/camel-spring-2.0-M1.jar
sbmcp=$sbmcp:$SBM_HOME/ebmsapps/common/lib/spring-2.5.6.jar
sbmcp=$sbmcp:$SBM_HOME/ebmsapps/common/lib/camel-core-2.0-M1.jar
sbmcp=$sbmcp:$SBM_HOME/ebmsapps/common/lib/camel-jms-2.0-M1.jar
Thanks.
mproch wrote:
>
> Can you describe environment you're using (osgi, smx, ...) ?
> I experienced similar problems and they were usually related to
> classloader issues (i.e.
> org.apache.camel.spring.handler.CamelNamespaceHandler was loaded by
> deifferent classloader than
> org.springframework.beans.factory.xml.NamespaceHandler)
>
> br,
> maciek prochniak
>
> On Fri, 2009-08-07 at 05:44 -0700, 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-tp24853504p24865111.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CamelNamespaceHandler Exception
Posted by Maciej Prochniak <mp...@touk.pl>.
Can you describe environment you're using (osgi, smx, ...) ?
I experienced similar problems and they were usually related to
classloader issues (i.e.
org.apache.camel.spring.handler.CamelNamespaceHandler was loaded by
deifferent classloader than
org.springframework.beans.factory.xml.NamespaceHandler)
br,
maciek prochniak
On Fri, 2009-08-07 at 05:44 -0700, 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
> >
> >
> >
>
Re: CamelNamespaceHandler Exception
Posted by skadirov <su...@hbo.com>.
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-tp24853504p24864174.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CamelNamespaceHandler Exception
Posted by Willem Jiang <wi...@gmail.com>.
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