camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Cannot locate BeanDefinitionParser for element [template]
Date Tue, 04 Aug 2009 19:17:48 GMT
The XSD is auto generated based and thus its not hand written and that
can leads to a few issues such as forcing stuff to be inside
<camelContext> as its what you do, configure a camel instance.



On Tue, Aug 4, 2009 at 9:16 PM, Claus Ibsen<claus.ibsen@gmail.com> wrote:
> Hi
>
> Put <camel:template/> inside the <camel:camelContext> tag, that is
> they way its supposed to be configured.
>
>
> On Tue, Aug 4, 2009 at 9:14 PM, Nick Heudecker<nheudecker@gmail.com> wrote:
>> Possibly a follow-on to
>> http://www.nabble.com/Cannot-Autowire-consumerTemplate-for-client-test-td24781739.html,
>> I'm getting the following exception when I try to start my application:
>>
>> 2009-08-04 12:06:36.728::WARN:  Nested in
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Failed to import bean definitions from URL location
>> [classpath:applicationContext-camel.xml]
>> Offending resource: class path resource [applicationContext.xml]; nested
>> exception is
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Cannot locate BeanDefinitionParser for element
>> [template]
>> Offending resource: class path resource [applicationContext-camel.xml]:
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Cannot locate BeanDefinitionParser for element
>> [template]
>> Offending resource: class path resource [applicationContext-camel.xml]
>>
>> Here's the bit of config it's complaining about:
>>
>>    <camel:camelContext id="camel"/>
>>
>>    <camel:template id="camelTemplate"/>
>>
>> I'm running off of the latest 2.0-SNAPSHOT.
>>
>> Thanks in advance for any help.
>>
>>
>> --
>> Nick Heudecker
>> Professional Wicket Training & Consulting
>> http://www.systemmobile.com
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message