The tapestry jail

We've got a jail at running Tomcat 7 where we can deploy demo applications. The Hotel Booking demo is running there.

ccordenier and uli can deploy and manage webapps. ccordenier, thiagohp and uli can log in and restart Tomcat.

restarting tomcat

ONLY use

if you need to restart Tomcat. Anything else will fail.

reinstalling the jail

If the jail lost Java and Tomcat:

if it doesn't exist yet:

install java:

Some files need manual download and have to be placed into /usr/ports/distfiles. Follow the instructions on screen.

Some of these files already live on and can be downloaded from there. The time zone update utility doesn't, it has to be downloaded from Oracle directly.


Follow instructions and manually install any unresolved dependencies it might encounter.

Install Tomcat 7:

from pre-built package (preferred)

Check your env for PACKAGESITE. It should point to

Install the tomcat7 package:

from ports (discouraged)

this is really discouraged!

configure tomcat

Tomcat resides in /usr/local/apache-tomcat-7.0/. You may wish to set up some users in conf/tomcat-users.xml. Note that from Tomcat 7 onwards the manager role is split into 4 separate roles, the one for the manager GUI is manager-gui. By default, Tomcat listens on port 8080, we want it to listen on 8180 though, so edit conf/server.xml and change the port.


to /etc/rc.conf to start tomcat on system startup and tell it to use the Diablo JVM.

The sudoers file may have lost the entry allowing members of the tomcat-restart group to restart Tomcat. Add it back using visudo: