apache camel - spring context error with processing xml -
i have problem processing root-context
simple content. want configure camel-client
, camel proxy
beans get:
error occured processing xml 'provider com.sun.xml.internal.bind.v2.contextfactory not instantiated: com.sun.xml.internal.bind.v2.runtime.illegalannotationsexception: 1 counts of illegalannotationexceptions class has 2 properties of same name "outputs" problem related following location: @ public java.util.list
org.apache.camel.model.resequencedefinition.getoutputs() @ org.apache.camel.model.resequencedefinition problem related following location: @ private java.util.list
org.apache.camel.model.resequencedefinition.outputs @ org.apache.camel.model.resequencedefinition '. see error log more details
this root-context.xml
:
<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:context="http://www.springframework.org/schema/context" xmlns:camel="http://camel.apache.org/schema/spring" xsi:schemalocation="http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.1.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> <!-- root context: defines shared resources visible other web components --> <camel:camelcontext id="camel-client"> </camel:camelcontext> <!-- camel proxy given service, in case jms queue --> <camel:proxy id="serviceproxy" camelcontextid="camel-client" serviceinterface="pl.test.service" serviceurl="jms:queue:test?transferexception=true"/> <bean id="jboss" class="org.apache.camel.component.jms.jmscomponent"> <property name="connectionfactory" ref="connectionfactory"/> </bean> <jee:jndi-lookup id="connectionfactory" jndi-name="queueconnectionfactory"> </jee:jndi-lookup> </beans>
i have camel
dependancies in pom.xml
. give me hint doing mistake?
according camel proxy documentation <camel:proxy>
must within <camel:camelcontext>
:
<camel:camelcontext id="camel-client"> <camel:proxy id="serviceproxy" camelcontextid="camel-client" serviceinterface="pl.test.service" serviceurl="jms:queue:test?transferexception=true"/> </camel:camelcontext>
Comments
Post a Comment