Friday, August 27, 2010

Sneaky Tomcat

Ubuntu's Update Manager insisted for days and days that I needed to upgrade Tomcat's manager due to security patches. I should have just ignored it (just kidding).  After I went ahead with the update, I've spent hours and hours trying to resurrect the webapps installed in Tomcat before realizing what was actually going on. Reminder for next time: check which config settings did the upgrade changed, paying particular attention to how JAVA_HOME is being set and what are the new memory usage limits (for Tomcat6/Ubuntu this settings can be found in /etc/init.d/tomcat). More info can be found at Installing Tomcat 6 in Ubuntu. One more tip: after the settings have being fixed, Tomcat might still have trouble bringing back "online" all the webapps at once, so the option here is to let Tomcat bring them back one by one by moving the apps folders out of /tomcat/webapps.

No comments:

Post a Comment