I've got a daemon thread that seems to run after the tomcat has received the shutdown signal. It's a TimerTask and it appears to fire again after the webapp itself has been shutdown. This then seems to cause the whole jvm to live on, sometimes for a couple of minutes, sometimes much longer.
The timertask blows up with classnotfounds because the webapp classloader is gone. Shouldn't it be killed when the webapp is killed? How do I troubleshoot this?