#921: geonetwork won't undeploy/shutdown in tomcat due to quartz scheduler
threads
---------------------+------------------------------------------------------
Reporter: simonp | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.7.0
Component: General | Version:
Keywords: |
---------------------+------------------------------------------------------
Seems that quartz scheduler threads don't get shutdown maybe because they
are called in a finalize method of the HarvestManager and these aren't
guaranteed to get called when the JVM shuts down (see for example
https://www.securecoding.cert.org/confluence/display/java/MET12-J.+Do+not+use+finalizers)
- moving the HarvestManager shutdown process to the stop() method of
web/src/main/java/org/fao/geonet/GeoNetwork.java fixes the problem and
tomcat can then undeploy/stop the webapp - small patch attached
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/921>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.