Oscar Mauricio Cadena created CAMEL-11195: ---------------------------------------------
Summary: Enrich Element uri error Key: CAMEL-11195 URL: https://issues.apache.org/jira/browse/CAMEL-11195 Project: Camel Issue Type: Bug Components: camel-core Affects Versions: 2.18.3, 2.15.6 Environment: Jboss develper studio 10.0.3 Reporter: Oscar Mauricio Cadena Hi Clauss. Please I need some help with the same topic. I have four days with this problem. I need to make a basic enrich example but when i run the basic example always i getting the same error in the log console Attribute 'uri' is not allowed to appear in element 'enrich' this is my code <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.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> <camelContext id="_camelContext1" xmlns="http://camel.apache.org/schema/spring"> <route id="_route5"> <from id="_from1" uri="file:work/cbr/input"/> <to id="_to1" uri="log:output"/> <to id="_to2" uri="direct:Process"/> </route> <route id="_route1"> <from id="_from2" uri="direct:Process"/> <enrich uri="direct:resource" strategyRef="aggregationStrategy"/> <to uri="direct:result"/> </route> <route id="_route2"> <from id="_from3" uri="direct:resource"/> <process id="reportProcess" ref="processDataProcessor"/> <to id="_to4" uri="log:output"/> </route> <route id="_route3"> <from id="_from4" uri="direct:result"/> <to id="_to5" uri="log:output"/> <to id="_to6" uri="file:work/cbr/output"/> </route> </camelContext> </beans> i have used CAMEL 2.18 and camel 2.15. with camel 2.18 this code is not working <enrich strategyRef="aggregationStrategy"> <constant>direct:resource</constant> </enrich> the Jboss developer studio tell me that constant is not a nested element. and thorws and error in the xml. and if i use 2.18 with this code <enrich uri="direct:resource" strategyRef="aggregationStrategy"/> it told me that the expression is a mandatory field. it shows a warning i tryied the same with the 2.15 but with the same results. Im using fuse server 6.3. im new with this so i appreciate any help. -- This message was sent by Atlassian JIRA (v6.3.15#6346)