I stop tomcat by calling $catalina_home/bin/shutdown.sh. The result is a failure mode I see often with Tomcat when web apps don't behave properly. The process is still there, but Tomcat does not respond to web requests. Calling shutdown.sh again results in ConnectException: Connection refused. Calling startup.sh starts another instance of Tomcat, but both Tomcat instances function as described above. After doing a kill -9 on each tomcat process, I can restart Tomcat and all web apps including Subsonic function normally-- until I try to stop Tomcat again.
Here are the Tomcat log entries generated when I call shutdown.sh
- Code: Select all
Jul 17, 2011 11:39:55 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8095
Jul 17, 2011 11:39:56 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jul 17, 2011 11:39:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/subsonic] registered the JDBC driver [org.hsqldb.jdbcDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jul 17, 2011 11:39:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [HSQLDB Timer @1e4bb369] but has failed to stop it. This is very likely to create a memory leak.
Jul 17, 2011 11:39:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
Jul 17, 2011 11:39:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [pool-1-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Jul 17, 2011 11:39:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [pool-1-thread-2] but has failed to stop it. This is very likely to create a memory leak.
Jul 17, 2011 11:39:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [pool-2-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Jul 17, 2011 11:39:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [pool-3-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Jul 17, 2011 11:39:57 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8095
Exception in thread "HSQLDB Timer @1e4bb369" java.lang.NullPointerException
at org.hsqldb.lib.HsqlTimer.nextTask(Unknown Source)
at org.hsqldb.lib.HsqlTimer$TaskRunner.run(Unknown Source)
at java.lang.Thread.run(Thread.java:680)
I'm running Tomcat 6 on OSX 10.6.8 with Java 6. I had the same behavior with Tomcat 7 on the same OS/JRE. I switched to Tomcat 6 because Subsonic produces CSRF errors when used with Tomcat 7. I built the subsonic war file from source version 4.5 beta. EDIT: I built version 4.4 from source and it behaves the same.
Do I have something misconfigured? Has anyone else seen these errors?
