gpt4 book ai didi

java - Apache James Spring 发行版未启动

转载 作者:行者123 更新时间:2023-11-29 04:06:17 27 4
gpt4 key购买 nike

试用 Apache James目前的邮件服务器。在我下载 current binary distribution 3.4.0 (“for Spring wiring”),我在运行时得到了以下行为:

bin\james.bat

日志(为了便于阅读而格式化):

wrapper  | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
(...)
jvm 1 | ERROR 21:30:39,649 |
org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor
Unable to init mailet WithPriority
jvm 1 | org.apache.mailet.MailetException:
Could not load mailet (WithPriority) (java.lang.IllegalArgumentException:
'priority' init parameter is compulsory)
(...)

怎么了?

最佳答案

没关系,我找到了 answer - 试试这个:

I will raise the issue up to the project meanwhile a quick fix to make that mailet work:

  • in the James app folder, open the file conf/mailetcontainer.xml
  • find the mailet with class WithPriority
  • replace the xml tag <value>8</value> by <priority>8</priority>
  • try to run james server again

conf/mailetcontainer.xml 中看起来像这样:

(...)
<mailetcontainer enableJmx="true">
<processors>
<processor state="root" enableJmx="true">
<mailet match="All" class="PostmasterAlias"/>
<mailet match="RelayLimit=30" class="Null"/>
<mailet matcher="All" class="WithPriority">
<priority>8</priority>
</mailet>
(...)

关于java - Apache James Spring 发行版未启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58493087/

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