Community Edition - fails to shutdown

94 views
Skip to first unread message

Rodger Spring

unread,
Jun 28, 2015, 2:42:16 PM6/28/15
to dot...@googlegroups.com

startup

sudo /opt/local/dotcms_32/dotserver/tomcat-8.0.18/bin/startup.sh

This appears to be fine.
Takes about 3 minutes.

sudo /opt/local/dotcms_32/dotserver/tomcat-8.0.18/bin/shutdown.sh

It does not seem that it can shut down.

from catalina.out

28-Jun-2015 14:27:30.530 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 140428 ms
...
28-Jun-2015 14:28:00.369 INFO [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance.
...
28-Jun-2015 14:28:02.479 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
...
28-Jun-2015 14:28:02.482 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Log4J Active Asynchronous Appender] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
...
28-Jun-2015 14:28:02.484 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [H2 Log Writer H2_DOTCMS_DATA] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
...
28-Jun-2015 14:31:00.001 INFO [DotMarketingQuartzLocalScheduler_Worker-4] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [com.dotcms.repackage.org.apache.log4j.spi.ThrowableInformation]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
 java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com.dotcms.repackage.org.apache.log4j.spi.ThrowableInformation]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
...
28-Jun-2015 14:39:00.002 INFO [DotMarketingQuartzLocalScheduler_Worker-12] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [com.dotcms.repackage.org.apache.log4j.spi.ThrowableInformation]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
 java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com.dotcms.repackage.org.apache.log4j.spi.ThrowableInformation]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1327)
        at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1313)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1196)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
        at com.dotcms.repackage.org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:154)
        at com.dotcms.repackage.org.apache.log4j.Category.forcedLog(Category.java:388)
        at com.dotcms.repackage.org.apache.log4j.Category.log(Category.java:853)
        at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:257)
        at com.dotcms.repackage.org.slf4j.impl.JCLLoggerAdapter.error(JCLLoggerAdapter.java:534)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:560)



Rodger Spring

unread,
Jun 28, 2015, 3:29:17 PM6/28/15
to dot...@googlegroups.com
Correction
 
startup should be

sudo /opt/local/dotcms_32/bin/startup.sh

and the corresponding shutdown is

sudo /opt/local/dotcms_32/bin/shutdown.sh

now the script invokes a kill of the tomcat in order to terminte
(Not pretty - but effective)
Reply all
Reply to author
Forward
0 new messages