我可以在 context.xml 中使用 tomee-home 的环境变量吗
is there a environment variable for tomee-home that I can use in context.xml
我有一个正在部署到 tomee 服务器的网络应用程序。此网络应用程序有一个 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 主页.您知道是否有一种方法可以在不对实际路径名进行硬编码的情况下引用 tomcat-home?
看来我可以使用 ${catalina.home} 来引用 tomcat-home 目录。
我有一个正在部署到 tomee 服务器的网络应用程序。此网络应用程序有一个 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 主页.您知道是否有一种方法可以在不对实际路径名进行硬编码的情况下引用 tomcat-home?
看来我可以使用 ${catalina.home} 来引用 tomcat-home 目录。