Introduction

While it is often better to start with a fresh installation of Tomcat, sometimes it is useful to just clean out all traces of Sakai from Tomcat and redeploy.

Procedure for Sakai 11+

Tomcat 8

Shut Tomcat down. From the Tomcat directory:

Procedure for Sakai 10 and under

Tomcat 7/8

Shut Tomcat down. From the Tomcat directory:

Tomcat 5.5

Shut Tomcat down. From the Tomcat directory:

  • common/lib:
    • Delete sakai*.jar
  • components
    • Delete everything
  • conf/Catalina/localhost
    • Keep host-manager.xml, manager.xml
    • Delete everything else
  • server/lib
    • Delete sakai*.jar
  • shared/lib
    • Delete everything
  • temp
    • Delete everything
  • webapps
    • Keep ROOT (maybe balancer and webdav as well)
    • Delete everything else (see Linux Tip below)
  • work
    • Delete everything

 

This process could be automated with a script or Maven goal.

Linux Tip

Run the following commands to delete everything in webapps except the specified directories ROOT, balancer, and webdav. A similar command can be used to avoid deletion of database driver jars.

cd /opt/tomcat/webapps
shopt -s extglob
rm -rf !(ROOT|balancer|webdav)

References