【问题标题】:Apache Continuum—deploying on tomcatApache Continuum——部署在 tomcat 上
【发布时间】:2013-09-29 16:00:21
【问题描述】:

我已经在我的 tomcat 上部署了 Apache continuum,就像我安装 archiva (detailed description) 一样。 webapp 正在运行,但有一个问题我没有解决:

当我重新启动 tomcat 时,配置消失了。通过搜索日志文件,我可以在continuum.log 中找到该错误:

2013-09-29 17:49:57,043 [main] WARN org.apache.commons.configuration.DefaultConfigurationBuilder  - Internal error
org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source /var/lib/tomcat6/conf/shared.xml

知道如何解决这个问题吗?

编辑

深入挖掘日志文件我发现了前面的错误:

2013-09-29 18:01:58,246 [Thread-3] INFO  org.apache.maven.continuum.DefaultContinuum  - Error storing the Continuum configuration.
org.apache.continuum.configuration.ContinuumConfigurationException: /var/lib/tomcat6/conf/continuum.xml (Permission denied)

这里 continuum 正在寻找默认配置,但是这个位于 webapps/continuum/… 中的某个地方

【问题讨论】:

    标签: tomcat deployment continuum


    【解决方案1】:

    正如另一个问题所暗示的那样,appserver.base 是否设置到正确的位置?这似乎指向/var/lib/tomcat6,但运行Tomcat实例的用户不可写入该目录。

    【讨论】:

    • 更改权限起到了作用。有没有办法告诉 continuum 在哪里存储配置?
    • 您在描述中指定的appserver.base 配置是它将使用的位置 - 但如果未指定,它将默认为 Tomcat 主页。更多信息在这里:continuum.apache.org/docs/1.4.1/installation/…
    【解决方案2】:

    这是一个 [info] 消息,而不是错误。即使您忽略它,tomcat 服务仍然可以运行。但是,请检查文件/目录权限以更正该问题。如果您以普通用户权限运行 tomcat,他们将无权访问 /var/lib/tomcat6/ 目录。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-02-05
      • 1970-01-01
      • 1970-01-01
      • 2011-12-01
      • 1970-01-01
      • 2014-04-19
      • 1970-01-01
      相关资源
      最近更新 更多