Tuesday, December 7, 2010

How to set the ROOT web application in Tomcat 6

1. Rename the "ROOT" directory in "C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps" to something like "home".

2. Create a ROOT.xml in "C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost" that contains the following XML chunk.

<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="C:\organized\vmjeffwar\vmjeff.war" reloadable="true"/>

3. Restart Tomcat and you should be good to go.