[
https://issues.apache.org/jira/browse/CAMEL-9296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15981157#comment-15981157
]
Oscar Mauricio Cadena commented on CAMEL-9296:
----------------------------------------------
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.
> camel-blueprint-2.16.0.xsd is broken
> ------------------------------------
>
> Key: CAMEL-9296
> URL: https://issues.apache.org/jira/browse/CAMEL-9296
> Project: Camel
> Issue Type: Bug
> Components: camel-blueprint
> Affects Versions: 2.16.0
> Reporter: Ralf Steppacher
> Assignee: Claus Ibsen
>
> The blueprint schema camel-blueprint-2.16.0.xsd breaks elements {{<enrich>}}
> and {{<wiretap>}}:
> - {{<enrich>}}: attributes {{uri}} and {{ref}} are not available
> - {{<wiretap>}}: attribute {{ref}} is not available
> Deploying a blueprint context in Karaf (4.0.2) fails with
> {noformat}
> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute
> 'uri' is not allowed to appear in element 'enrich'.
> at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)[:]
> at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)[:]
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)[:]
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)[:]
> [..]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)