我想过将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迄今为止的最新文件。 请指导我。
答案 0 :(得分:2)
此问题有解决方法。运行java 7时会发生此问题,作为解决方法还原为java 6。它对我有用。
利
答案 1 :(得分:1)
您需要到下面的图书馆。添加到资源。
答案 2 :(得分: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构建项目。