启动 Apache James 2.3.2.1 时出现 LifecycleException
LifecycleException when starting Apache James 2.3.2.1
当我尝试在 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)
我检查了所有配置并搜索了任何引用任何此类 属性 的属性文件,但没有成功。
问题是 James 版本 used.I 切换到版本 2.3.2,该版本在 James 2.3.2
上没有任何 hassles.This 版本可用
this post Jira.Here 上提到了这个问题,由于其中一个来源 类 发生了变化,报告已经解决了这个问题,参考 URL 来自 config.xml
file.Quoting 来自错误报告者:
I discovered that by changing the default provided configuration file
(apps\james\SAR-INF\config.xml) and adapting
And putting a
real name there, the original error goes away. Note that it did not
happen in James 2.3.2 I had a look in the source code and it's due to
this new code in UsersFileRepository
当我尝试在 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)
我检查了所有配置并搜索了任何引用任何此类 属性 的属性文件,但没有成功。
问题是 James 版本 used.I 切换到版本 2.3.2,该版本在 James 2.3.2
上没有任何 hassles.This 版本可用this post Jira.Here 上提到了这个问题,由于其中一个来源 类 发生了变化,报告已经解决了这个问题,参考 URL 来自 config.xml
file.Quoting 来自错误报告者:
I discovered that by changing the default provided configuration file (apps\james\SAR-INF\config.xml) and adapting And putting a real name there, the original error goes away. Note that it did not happen in James 2.3.2 I had a look in the source code and it's due to this new code in UsersFileRepository