How do I deploy my web application to Tomcat?

From InstallJammer Wiki

Jump to: navigation, search

In order to deploy your web application on Tomcat you need to know where Tomcat is installed. Use the How do I find where Tomcat is installed? Quickie to accomplish this.

Once you have the directory in a Virtual Text variable, say <%TomcatDir%>, you simply need to use the Unpack Stored File to unpack your war file into the Tomcat webapps directory. Assuming you have bundled your war file and given it the alias of mywebapp.war, use the Unpack Stored File action with the following properties:

Add to Uninstall: Yes
File ID: mywebapp.war
Target Directory: <%TomcatDir%>/webapps
Target Filename: mywebapp.war

This will unpack your war file into Tomcat's webapps directory. If Tomcat is running, it should automatically extract the war file and deploy it. While we have said to add this file to the uninstaller, InstallJammer will only remove the unpacked war file. The files Tomcat extracts into it's webapps folder will need to be removed manually.

Personal tools