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
]
...
私はJamesとこの問題は経験しませんでしたが(私はJBossのパースペクティブを形成しています)、それを修正するために、あなたのクラスパスにJARファイルを明示的に記述しなければなりません。多分それが助けになるでしょう –
次のベータ5のバージョンは固定されているようですhttps://issues.apache.org/jira/browse/JAMES-1450 – Sasa
いいえ、beta5-854も動作しません。しかし、別のスタックトレース。 – Sasa