gpt4 book ai didi

java - 使用 jdk 1.7 启动 Apache James

转载 作者:搜寻专家 更新时间:2023-10-31 19:56:17 25 4
gpt4 key购买 nike

我曾尝试使用 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 时,一切开始正常工作。

有人解决过这个问题吗?

这是堆栈跟踪的一部分:

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

最佳答案

我下载的文件不是最新的。当我下载 newer version of beta5它工作正常。

关于java - 使用 jdk 1.7 启动 Apache James,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16154201/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com