2013-04-22 103 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文件。也許這會有所幫助 – 2013-04-22 18:38:00

+0

看來,下一個beta5版本將被修復https://issues.apache.org/jira/browse/JAMES-1450 – Sasa 2013-04-22 19:00:50

+0

不,beta5-854也不起作用。不同的堆棧跟蹤。 – Sasa 2013-04-22 20:30:25

回答

6

我已經下載的文件是不是最新的。當我已經下載newer version of beta5它工作正常。

+3

鏈接被破壞..你可以在這裏找到beta5 https://repository.apache.org/content/repositories /snapshots/org/apache/james/apache-james/3.0-beta5-SNAPSHOT/ – 2013-12-04 15:14:51

+0

雅,當新版本可用時,每個直接鏈接都會從time2time制動。他們只保留最後2次修訂。你可以看到當前哪個版本可用,並選擇你喜歡的版本。 – Sasa 2013-12-11 17:27:56