Tomcat not stopped due to Alfesco webapp 201911 GA (6.2)

cancel
Showing results for 
Search instead for 
Did you mean: 
Delhibabu
Member II

Tomcat not stopped due to Alfesco webapp 201911 GA (6.2)

Hi Team, 

I am not able to stop the tomcat instance using shutdown.sh. The process is still running and getting the following  like warning and errors in log,

06-Jan-2020 04:28:27.812 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [alfresco] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@11.0.5/java.lang.Object.wait(Native Method)
java.base@11.0.5/java.util.TimerThread.mainLoop(Timer.java:553)
java.base@11.0.5/java.util.TimerThread.run(Timer.java:506)



------------------------------

06-Jan-2020 04:28:27.848 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@29e135d7]) and a value of type [org.alfresco.repo.web.scripts.RepositoryImageResolver$1] (value [org.alfresco.repo.web.scripts.RepositoryImageResolver$1@44a6ac4]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak

------------------------------


06-Jan-2020 04:30:00.001 INFO [QuartzScheduler_Worker-1] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [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 [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:1378)
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1366)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1218)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
at org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:165)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:856)
at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:581)
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.error(SLF4JLocationAwareLog.java:216)
at org.alfresco.util.ConfigScheduler.readConfigAndReplace(ConfigScheduler.java:216)
at org.alfresco.util.ConfigScheduler$ConfigSchedulerJob.execute(ConfigScheduler.java:64)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Exception in thread "QuartzScheduler_Worker-1" java.lang.NoClassDefFoundError: org/apache/log4j/spi/ThrowableInformation
at org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:165)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:856)
at org.slf4j.impl.Log4jLoggerAdapter.error(Log4jLoggerAdapter.java:576)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:585)
06-Jan-2020 04:30:02.007 INFO [QuartzScheduler_Worker-2] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [alfresco/renditions/0100-baseRenditions.json]. 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 [alfresco/renditions/0100-baseRenditions.json]. 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:1378)
at org.apache.catalina.loader.WebappClassLoaderBase.getResourceAsStream(WebappClassLoaderBase.java:1107)
at org.alfresco.util.ConfigFileFinder.getResourceAsStream(ConfigFileFinder.java:181)
at org.alfresco.util.ConfigFileFinder.readFromJar(ConfigFileFinder.java:139)
at org.alfresco.util.ConfigFileFinder.readFiles(ConfigFileFinder.java:87)
at org.alfresco.repo.rendition2.RenditionDefinitionRegistry2Impl.readConfig(RenditionDefinitionRegistry2Impl.java:290)
at org.alfresco.repo.rendition2.RenditionDefinitionRegistry2Impl$1.readConfig(RenditionDefinitionRegistry2Impl.java:164)
at org.alfresco.util.ConfigScheduler.readConfigAndReplace(ConfigScheduler.java:208)
at org.alfresco.util.ConfigScheduler$ConfigSchedulerJob.execute(ConfigScheduler.java:64)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Exception in thread "QuartzScheduler_Worker-2" java.lang.NoClassDefFoundError: org/apache/log4j/spi/ThrowableInformation
at org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:165)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:856)
at org.slf4j.impl.Log4jLoggerAdapter.error(Log4jLoggerAdapter.java:576)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:585)

--------------------------

Anybody facing this kind of issue ?

Regards
R.Delhibabu

3 Replies
jljwoznica
Senior Member

Re: Tomcat not stopped due to Alfesco webapp 201911 GA (6.2)

Delhibabu
Member II

Re: Tomcat not stopped due to Alfesco webapp 201911 GA (6.2)

Thanks for the response, I have reviewed the mentioned post but haven't found the solution. 

My issue is tomcat is stopped (while checking the ports), but the process is not killed, 

The web app threads do not stop properly. 

Thanks
R.Delhibabu

jljwoznica
Senior Member

Re: Tomcat not stopped due to Alfesco webapp 201911 GA (6.2)

I do not see any open bugs on this with this version of community. I have been researching. I did find something that someone wrote to assist with Tomcat shutdown. I don't know if it may help: https://github.com/wabson/build-tomcat-bundles/blob/master/bundle-files/linux/alfresco.sh