【问题标题】:is there a environment variable for tomee-home that I can use in context.xml我可以在 context.xml 中使用 tomee-home 的环境变量吗
【发布时间】:2015-07-24 20:10:43
【问题描述】:

我有一个正在部署到 tomee 服务器的 web 应用程序。此 webapp 有一个 META-INF/context.xml 文件,其内容如下:

<Context>
  <Loader className="org.apache.catalina.loader.VirtualWebappLoader" virtualClasspath="/apache-tomee-plus-1.7.2/someProperties;" />
  <JarScanner scanAllDirectories="true" />
</Context>

请注意,Loader 元素的 virtualClasspath 属性的值为 /apache-tomee-plus-1.7.2/someProperties;,其中 /apache-tomee-plus-1.7.2 已准备好 tomcat home。你知道有没有办法在不硬编码实际路径名的情况下引用 tomcat-home?

【问题讨论】:

    标签: apache-tomee


    【解决方案1】:

    看来我可以使用 ${catalina.home} 来引用 tomcat-home 目录。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-01
      • 1970-01-01
      • 2017-11-29
      • 2021-10-30
      • 1970-01-01
      • 2017-09-29
      相关资源
      最近更新 更多