自动部署在appBase的子文件夹中找到的WAR文件 [英] AutoDeploy a WAR file found in a subfolder of appBase

查看:108
本文介绍了自动部署在appBase的子文件夹中找到的WAR文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个第三方Web应用程序,我想通过安装程序将其部署到Tomcat 5.0服务器. AutoDeploy设置为true.但是,该应用程序包含多个WAR文件.

I have a third party web application which I would like to deploy to a Tomcat 5.0 server via an installer. AutoDeploy is set to true. However, the application consists of more than one WAR file.

如果我直接将WAR放在/webapps下,它们的作用就像是一种魅力.但是,我想在/webapps/myapp/..和此处的扩展WAR目录下对其进行扩展...这样,它们就不会自动部署.有人可以建议我需要为此配置什么才能工作?

If I put the WARs under /webapps directly, they work like a charm. However, I would like to expand them under /webapps/myapp/..and here the expanded WAR directory... This way they do not get AutoDeployed. Can somebody suggest what I need to configure for this to work?

推荐答案

As this page suggests, you can place two XML files into $CATALINA_HOME/conf/[engine_name]/[host_name] directory (e.g. $CATALINA_HOME/conf/Catalina/localhost) each defining a Context for one of two WARs.

第一个(例如app1context.xml):

First one (e.g. app1context.xml):

<Context path="/myapp/app1" docBase="${catalina.home}/webapps/myapp/app1war">

</Context> 

第二个(例如app2context.xml):

And the second one (e.g. app2context.xml):

<Context path="/myapp/app2" docBase="${catalina.home}/webapps/myapp/app2war">

</Context> 

这篇关于自动部署在appBase的子文件夹中找到的WAR文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆