【问题标题】:LifecycleException when starting Apache James 2.3.2.1启动 Apache James 2.3.2.1 时出现 LifecycleException
【发布时间】:2017-01-13 13:35:33
【问题描述】:

当我尝试在 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)

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

【问题讨论】:

    标签: apache mail-server james


    【解决方案1】:

    问题在于正在使用的 James 版本。我切换到 2.3.2 版本,该版本运行起来没有任何麻烦。此版本可在 James 2.3.2 获得

    Jira 上的this 帖子中提到了该问题。报告指出了该问题,由于其中一个源类发生了变化,参考来自config.xml 文件的 URL。引用错误报告者:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-15
      • 2013-12-10
      • 2020-02-17
      • 2015-12-10
      • 2011-06-14
      • 1970-01-01
      • 2015-07-17
      • 2017-10-31
      相关资源
      最近更新 更多