启动Apache James 2.3.2.1时出现LifecycleException

时间:2017-01-13 13:35:33

标签: apache mail-server james

当我尝试在Windows 64位环境中使用bin/run.bat文件启动Apache James 2.3.2.1时,它会抛出异常

ERROR   2017-01-13 14:48:18.285 [Phoenix.] (): Component named "users-store" failed to pass through the Starting stage. (Reason: org.apache.avalon.framework.configuration.ConfigurationException: destination>>URL).
ERROR   2017-01-13 14:48:18.286 [Phoenix.] (): There was an error running phase "startup" for Block named "users-store". (Reason: Component named "users-store" failed to pass through the Starting stage. (Reason:       org.apache.avalon.framework.configuration.ConfigurationException: destination>>URL).).
org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleException: Component named "users-store" failed to pass through the Starting stage. (Reason: org.apache.avalon.framework.configuration.ConfigurationException: destination>>URL).
at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.fail(LifecycleHelper.java:354)
at org.apache.avalon.phoenix.containerkit.lifecycle.LifecycleHelper.startup(LifecycleHelper.java:226)
at org.apache.avalon.phoenix.components.application.DefaultApplication.startup(DefaultApplication.java:530)
at org.apache.avalon.phoenix.components.application.DefaultApplication.doRunPhase(DefaultApplication.java:478)
at org.apache.avalon.phoenix.components.application.DefaultApplication.runPhase(DefaultApplication.java:409)
at org.apache.avalon.phoenix.components.application.DefaultApplication.start(DefaultApplication.java:180)
at org.apache.avalon.framework.container.ContainerUtil.start(ContainerUtil.java:260)
rethrown from     org.apache.avalon.framework.configuration.ConfigurationException: destination>>URL
at org.apache.james.userrepository.UsersFileRepository.configure(UsersFileRepository.java:134)

我已检入所有配置并搜索任何此类属性的任何属性文件,但没有运气。

1 个答案:

答案 0 :(得分:0)

问题在于使用了James版本。我切换到版本2.3.2,它没有任何麻烦。这个版本可以在James 2.3.2上找到

Jira上的this帖子中提到了这个问题。据报道,由于其中一个源类的更改引用了config.xml文件中的URL,报告发现了问题。来自错误报告者的引用:

  

我发现通过更改默认提供的配置文件   (apps \ james \ SAR-INF \ config.xml)并进行调整     然后放一个   那里有真名,原来的错误就消失了。请注意,它没有   发生在James 2.3.2我查看了源代码,这是由于   UsersFileRepository中的这个新代码