用jdk 1.7启动Apache James [英] Start Apache James with jdk 1.7

查看:173
本文介绍了用jdk 1.7启动Apache James的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在具有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时,一切都开始正常工作.

I have tried to run the apache-james-3.0-beta4 server on Linux Mint 64bit (Debian) with Java jdk 1.7u17, but it didn't work due to the JAXB library bug. According to the documentation different jar file should be downloaded (http://jaxb.java.net/2.1.13/JAXB2_20100510.jar) and put into the conf/lib directory. I did that, but the problem is still there. When I switched to jdk 1.6, everything started to work fine.

有人解决了这个问题吗?

Have anybody solved this problem?

这是堆栈跟踪的一部分:

Here is a part of the stack trace:

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
]
...

推荐答案

我下载的文件不是最新的.当我下载

The file I have downloaded was not the newest. When I have downloaded newer version of beta5 it worked fine.

这篇关于用jdk 1.7启动Apache James的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆