2

メールサーバーの目的で Apache James 3.0-beta4 を使用することを考えました。Apache Webサイトからダウンロードしました。指示に従って実行しました。「run.bat」を実行しましたが、エラーが発生しました。

Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStore
Exception: 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.ResequenceDefini
tion.getOutputs()
                at org.apache.camel.model.ResequenceDefinition
        this problem is related to the following location:
                at private java.util.List org.apache.camel.model.ResequenceDefin
ition.outputs
                at org.apache.camel.model.ResequenceDefinition

どこでも見ましたが、解決策は見つかりませんでした。現在Apacheが持っている最新のファイルです。これについて私を案内してください。

4

3 に答える 3

1

以下のライブラリが必要です。リソースに追加します。

  • jaxb-api.jar
  • jaxb-impl.jar
于 2016-11-25T04:46:49.460 に答える
0

Apache James 3.0-beta4 は Java 7 では起動しませんが、Java 6 では起動します。答えは次のとおりです。JDK 1.7 で Apache James を起動します。

UPADTE: 私は間違っていました。実は、Java 7 で beta4 を起動できます。ソースをダウンロードし、pom を編集して camel-core-2.10.3 を使用し、maven を使用してプロジェクトをビルドする必要があります。

于 2014-08-22T09:15:20.473 に答える