2013-04-22 13 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

私はJamesとこの問題は経験しませんでしたが(私はJBossのパースペクティブを形成しています)、それを修正するために、あなたのクラスパスにJARファイルを明示的に記述しなければなりません。多分それが助けになるでしょう –

+0

次のベータ5のバージョンは固定されているようです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

関連する問題