Skip to content

Instantly share code, notes, and snippets.

@slevine
Created April 11, 2011 18:40
Show Gist options
  • Save slevine/914029 to your computer and use it in GitHub Desktop.
Save slevine/914029 to your computer and use it in GitHub Desktop.
Tomcat Related Files
export CATALINA_HOME=/Developer/Java/Servers/apache-tomcat-7.0.2
export APP_NAME=pizzashop
export WAR_NAME=pizzashop-0.1.0.BUILD-SNAPSHOT.war
$CATALINA_HOME/bin/catalina.sh stop
rm -rf $APP_NAME
unzip $WAR_NAME -d $APP_NAME
$CATALINA_HOME/bin/catalina.sh start
<!--
Sample Tomcat Context Config File
FilePath:$CATALINA_HOME/conf/Catalina/localhost
Name of file represents context path
path var must match xml filename structure
myApp.xml -> /myApp
home#myApp.xml -> /home/myApp.xml
-->
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="/some-war-1.1-SNAPSHOT.war" path="/some-war" reloadable="true"/>
@slevine
Copy link
Author

slevine commented Jun 5, 2012

To start Tomcat with remote debugging enabled: ./catalina.sh jpda run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment