我考虑使用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目前拥有的最新文件。关于这个请给我指点一下。
发布于 2014-03-14 09:42:12
有一个解决此问题的方法。这个问题发生在运行java 7时,恢复到java 6作为解决方法。这对我很管用。
李
发布于 2016-11-25 12:46:49
您需要访问下面的库。添加到参考资料。
发布于 2014-08-22 17:15:20
Apache James3.0-Beta4不是从Java7开始的,而是从Java6开始的。答案是:Start Apache James with jdk 1.7
我错了。实际上,你可以在java7上启动beta4,我就是这么做的。您必须下载源代码,编辑pom以使用camel-core-2.10.3,并使用maven构建项目。
https://stackoverflow.com/questions/20202096
复制相似问题