我試着用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
]
...
我還沒有遇到過這個問題(但我已經形成了一個JBoss透視圖),爲了解決這個問題,你必須在任何通配符之前在你的類路徑中明確指出JAR文件。也許這會有所幫助 – 2013-04-22 18:38:00
看來,下一個beta5版本將被修復https://issues.apache.org/jira/browse/JAMES-1450 – Sasa 2013-04-22 19:00:50
不,beta5-854也不起作用。不同的堆棧跟蹤。 – Sasa 2013-04-22 20:30:25