2013-04-22 3 views
5

Java JDK 1.7u17과 함께 Linux Mint 64bit (Debian)에서 apache-james-3.0-beta4 서버를 실행하려했지만 JAXB 라이브러리 버그로 인해 작동하지 않았습니다. 설명서에 따라 다른 jar 파일을 다운로드 (http://jaxb.java.net/2.1.13/JAXB2_20100510.jar)하고 conf/lib 디렉토리에 넣어야합니다. 나는 그랬지만 문제는 여전히 남아있다. JDK 1.6으로 전환했을 때, 모든 것이 잘 작동하기 시작했습니다.jdk 1.7에서 Apache James 시작하기

누구든지이 문제를 해결 했습니까?

INFO 19:45:24,669 | org.apache.james.container.spring.context.JamesServerApplicationContext | Refreshing org.apac[email protected]11641923: startup date [Mon Apr 22 19:45:24 CEST 2013]; root of context hierarchy 
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Failed to create the JAXB binder; nested exception is javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions 
Class has two properties of the same name "outputs" 
     this problem is related to the following location: 
       at public java.util.List org.apache.camel.model.ResequenceDefinition.getOutputs() 
       at org.apache.camel.model.ResequenceDefinition 
     this problem is related to the following location: 
       at private java.util.List org.apache.camel.model.ResequenceDefinition.outputs 
       at org.apache.camel.model.ResequenceDefinition 

- with linked exception: 
[com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions 
Class has two properties of the same name "outputs" 
     this problem is related to the following location: 
       at public java.util.List org.apache.camel.model.ResequenceDefinition.getOutputs() 
       at org.apache.camel.model.ResequenceDefinition 
     this problem is related to the following location: 
       at private java.util.List org.apache.camel.model.ResequenceDefinition.outputs 
       at org.apache.camel.model.ResequenceDefinition 
] 
... 
+0

제임스에서는이 문제가 발생하지 않았지만 (JBoss 퍼스펙티브를 구성했습니다),이를 수정하기 위해서는 와일드 카드 앞에 클래스 경로에있는 JAR 파일을 명시해야합니다. 아마도 도움이 될 것입니다 –

+0

다음 beta5 버전이 고정 될 것으로 보입니다 https://issues.apache.org/jira/browse/JAMES-1450 – Sasa

+0

아니요, beta5-854도 작동하지 않습니다. 다른 스택 추적 비록. – Sasa

답변

6

내가 다운로드 한 파일이 최신 아니었다 : 여기

는 스택 추적의 일부입니다. newer version of beta5을 다운로드하면 정상적으로 작동합니다.

+3

링크가 깨졌습니다. 베타 5는 https://repository.apache.org/content/repositories에서 찾을 수 있습니다. /snapshots/org/apache/james/apache-james/3.0-beta5-SNAPSHOT/ –

+0

예를 들어 새로운 개정판을 사용할 수있는 모든 직접 링크는 time2time에서 중단됩니다. 그들은 오직 마지막 2 개정만을 사용할 수 있습니다. 현재 사용 가능한 버전을보고 원하는 버전을 선택할 수 있습니다. – Sasa