2

我曾想过将 Apache James 3.0-beta4 用于邮件服务器。我是从apache网站下载的。按照说明运行它。我跑了“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

2

这个问题有一个解决方法。运行 java 7 时会出现此问题,作为解决方法,请恢复为 java 6。它对我有用。

于 2014-03-14T01:42:12.377 回答
1

你需要到下面的图书馆。添加到资源。

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

Apache James 3.0-beta4 不是在 java 7 上启动,而是在 java 6 上启动。答案是:Start Apache James with jdk 1.7

UPADTE:我错了。实际上,您可以在 java 7 上启动 beta4。我刚刚做到了。您必须下载源代码,编辑 pom 以使用 camel-core-2.10.3 并使用 maven 构建项目。

于 2014-08-22T09:15:20.473 回答