AnsweredAssumed Answered

Tomcat close problem

Question asked by cfleu on Sep 20, 2010
Latest reply on Sep 20, 2010 by mrogers
Hi all:

I am new to alfresco.
I had configured Alfresco develop environment via http://wiki.alfresco.com/wiki/Alfresco_on_Eclipse
When I close the tomcat server, I got so many errors.
Here is the catalina.out log


INFO/: Stopping service Catalina
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/alfresco] registered the JBDC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-8] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [DefaultScheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker1] .
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker2] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker3] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker4] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker5] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker6] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker7] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker8] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker9] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker10] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker11] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker12] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker13] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker14] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker15] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker16] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker17] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker18] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker19] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker20] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker21] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker22] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker23] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker24] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [AlfJLANWorker25] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [TimedRequestProcessor] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [Deployment Receiver Engine Keep Alive] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [indexThread1] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [indexThread2] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [indexThread3] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [indexThread4] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [indexThread5] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [indexThread6] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [indexThread7] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [indexThread8] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [indexThread9] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alfresco] appears to have started a thread named [indexThread10] but has failed to stop it. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [org.alfresco.repo.security.authentication.AuthenticationUtil.ThreadLocalStack] (value [org.alfresco.repo.security.authentication.AuthenticationUtil$ThreadLocalStack@fe56a7]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@1538f91]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@f692ea]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@275ac9]) and a value of type [com.ibatis.sqlmap.engine.mapping.result.ResultObjectFactoryUtil.FactorySettings] (value [com.ibatis.sqlmap.engine.mapping.result.ResultObjectFactoryUtil$FactorySettings@1b9705c]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [org.alfresco.repo.security.authentication.AuthenticationUtil.ThreadLocalStack] (value [org.alfresco.repo.security.authentication.AuthenticationUtil$ThreadLocalStack@17fcfe1]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@28e279]) and a value of type [org.alfresco.util.CachingDateFormat] (value [yyyy-MM-dd]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@2caa55]) and a value of type [org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory.ReferenceCountingReadOnlyIndexReader] (value [org.alfresco.repo.search.impl.lucene.index.ReferenceCountingReadOnlyIndexReaderFactory$ReferenceCountingReadOnlyIndexReader@1bad9fe]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [null] (value [com.sun.xml.bind.v2.ClassFactory$1@3de6df]) and a value of type [java.util.WeakHashMap] (value [{class org.alfresco.repo.audit.model._3.AuditPath=java.lang.ref.WeakReference@880c2b, class org.alfresco.repo.audit.model._3.DataExtractor=java.lang.ref.WeakReference@1d6ecc3, class java.util.ArrayList=java.lang.ref.WeakReference@151ff5b, class javax.xml.bind.annotation.W3CDomHandler=java.lang.ref.WeakReference@53cab6, class org.alfresco.repo.audit.model._3.Application=java.lang.ref.WeakReference@121803a, class org.alfresco.repo.audit.model._3.Audit=java.lang.ref.WeakReference@699ae3, class org.alfresco.repo.audit.model._3.PathMap=java.lang.ref.WeakReference@137bba7, class org.alfresco.repo.audit.model._3.RecordValue=java.lang.ref.WeakReference@feb3, class org.alfresco.repo.audit.model._3.PathMappings=java.lang.ref.WeakReference@151c7ee, class org.alfresco.repo.audit.model._3.DataExtractors=java.lang.ref.WeakReference@1d1775}]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [null] (value [com.sun.xml.bind.v2.runtime.Coordinator$1@1ef0fb7]) and a value of type [com.sun.xml.bind.v2.runtime.Coordinator[]] (value [[Lcom.sun.xml.bind.v2.runtime.Coordinator;@1f0eebd]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@c9c89f]) and a value of type [com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl] (value [com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl@1927371]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2010/9/20 AM 10:51:03 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@275ac9]) and a value of type [com.ibatis.sqlmap.engine.mapping.result.ResultObjectFactoryUtil.FactorySettings] (value [com.ibatis.sqlmap.engine.mapping.result.ResultObjectFactoryUtil$FactorySettings@1d92573]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2010/9/20 AM 10:51:05 org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080

ps.
1. Source code is build successful from ant compiler
2. The Alfresco web service is working via $ sudo ./catalina.sh run
3. I have configured alfresco-global.properties as follow:

dir.root=/usr/local/tomcat/bin/alf_data
db.name=alfresco
db.username=root
db.password=*****
db.host=localhost
db.port=3306

ooo.exe=/usr/bin/openoffice.org
ooo.user=///usr/local/tomcat/bin/alf_data/oouser
img.root=/usr
swf.exe=/usr/bin/pdf2swf

db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://${db.host}:${db.port}/${db.name}
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect

4. I have changed the value of catalina.properties to the following:

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jarr


Anyone can help me to solve those errors.
Thanks.

Outcomes