首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用jdk 1.7启动Apache James

使用jdk 1.7启动Apache James
EN

Stack Overflow用户
提问于 2013-04-23 02:32:31
回答 1查看 5.2K关注 0票数 5

我曾尝试使用Java jdk 1.7u17在Linux Mint 64位(Debian)上运行apache-james-3.0-beta4服务器,但由于JAXB库错误而无法运行。根据文档,应该下载不同的jar文件(http://jaxb.java.net/2.1.13/JAXB2_20100510.jar)并将其放入conf/lib目录。我这样做了,但问题仍然存在。当我切换到jdk 1.6时,一切都开始正常工作。

有人解决过这个问题吗?

下面是堆栈跟踪的一部分:

代码语言:javascript
复制
INFO  19:45:24,669 | org.apache.james.container.spring.context.JamesServerApplicationContext | Refreshing org.apache.james.container.spring.context.JamesServerApplicationContext@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
]
...
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-04-24 05:43:12

我下载的文件不是最新的。当我下载了newer version of beta5后,它工作得很好。

票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16154201

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档