Forget my post. My bundle on SMX4 was not updated correctly. Everything is OK.
cmoulliard wrote: > > Hi, > > I have use in my camel route (described using spring DSL), the following > syntax to define the header of my message : > > <setHeader headerName="origin"> > <constant>file</constant> > </setHeader> > > as described on the wiki site (http://camel.apache.org/constant.html) > > But, when I start my bundle on SMX4, I receive the error : > > 16:15:27,750 | ERROR | xtenderThread-21 | ContextLoaderListener > | BundleApplicationContextListener 50 | Application context refresh > failed (OsgiBundleXmlApplicationContext(bundle=reportincident.routing, > config=osgibundle:/META-INF/spring/*.xml)) > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: > Line 53 in XML document from URL > [bundle://116.0:0/META-INF/spring/camel-context.xml] is invalid; nested > exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: > Invalid content was found starting with element 'constant'. One of > '{"http://camel.apache.org/schema/spring":description, > "http://camel.apache.org/schema/spring":expressionDefinition, > "http://camel.apache.org/schema/spring":constant, > "http://camel.apache.org/schema/spring":el, > "http://camel.apache.org/schema/spring":groovy, > "http://camel.apache.org/schema/spring":header, > "http://camel.apache.org/schema/spring":jxpath, > "http://camel.apache.org/schema/spring":javaScript, > "http://camel.apache.org/schema/spring":language, > "http://camel.apache.org/schema/spring":method, > "http://camel.apache.org/schema/spring":mvel, > "http://camel.apache.org/schema/spring":ognl, > "http://camel.apache.org/schema/spring":php, > "http://camel.apache.org/schema/spring":property, > "http://camel.apache.org/schema/spring":python, > "http://camel.apache.org/schema/spring":ruby, > "http://camel.apache.org/schema/spring":simple, > "http://camel.apache.org/schema/spring":sql, > "http://camel.apache.org/schema/spring":tokenize, > "http://camel.apache.org/schema/spring":xpath, > "http://camel.apache.org/schema/spring":xquery}' is expected. > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) > at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) > at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) > at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) > at > org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:176) > at > org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:142) > at > org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) > at > org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422) > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69) > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269) > at > org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247) > at > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222) > at > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) > at > org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) > at java.lang.Thread.run(Thread.java:619) > > Regards, > ----- Charles Moulliard SOA Architect My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/ -- View this message in context: http://www.nabble.com/Camel-2---Spring-DSL---setHeader---Constant-%28error%29-tp22682794p22683024.html Sent from the Camel - Users mailing list archive at Nabble.com.