https://issues.apache.org/bugzilla/show_bug.cgi?id=56387

--- Comment #4 from qiubo...@qq.com ---
Thanks your advice, Konstantin.

Some libraries not only run in tomcat,it can be used in standalone application,
shutdown hook is a ideal place to close external resources.I think tomcat must
be throw a reasonable exception such as IllegalStateException("tomcat has been
stopped.") to hint users to handle their misusage.

Add volatile keyword to org.apache.catalina.loader.WebappClassLoader#started
can help us to find problem quickly.

(In reply to Konstantin Kolinko from comment #3)
> It is your responsibility to stop any threads that a web application may
> have started.  Especially, an application (and libraries that it uses) must
> not register any shutdown hooks.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to