2014-03-24 10 views
0

매우 간단한 내용으로 root-context을 처리하는 데 문제가 있습니다. 난 그냥 camel-clientcamel proxy 콩을 구성 할 수 있지만 얻을 :xml 처리시 스프링 컨텍스트 오류

오류 '공급자 처리 XML을 발생 com.sun.xml.internal.bind.v2.ContextFactory 인스턴스화 할 수 없습니다 com.sun.xml를 .internal.bind.v2.runtime.IllegalAnnotationsException : 공중 java.util.List에
org.apache에서 : IllegalAnnotationExceptions 클래스 1 카운트 두 속성과 동일한 이름 "출력"이 문제는 다음 위치 관련을 갖는다 .camel.model.ResequenceDefinition.getOutputs() org.apache.camel.model.ResequenceDefinition이 문제는 다음과 같습니다. 관련 항목 : private java.util.List
org.apache.camel.model.ResequenceDefinition.outputs org.apache.camel.model.ResequenceDefinition '관련 항목 더 사항

에 대한 로그인 오류를 참조하십시오이 내 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 to all other web components --> 

    <camel:camelContext id="camel-client"> 

    </camel:camelContext> 


    <!-- Camel proxy for a given service, in this case the 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> 

pom.xml에서 camel 의존성을 가지고있다. 누군가 내가 실수를하고있는 힌트를 줄 수 있니?

답변

1

낙타 프록시에 따르면 documentation<camel:proxy><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> 
관련 문제