Apache James Spring distribution not starting

假如想象 提交于 2020-04-13 15:41:14

问题


Trying out the Apache James mail server at the moment. After I downloaded the current binary distribution 3.4.0 ("for Spring wiring"), I got the following behaviour when I ran:

bin\james.bat

Log (formatted for readability):

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)
(...)

What's up?


回答1:


Nevermind, I found the answer - try this:

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

Looks like this in 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>
(...)


来源:https://stackoverflow.com/questions/58493087/apache-james-spring-distribution-not-starting

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!