Hi, all
I'm trying to deploy gerrit under tomcat. But after putting the war under webapps and restart the tomcat, gerrit can no longer be accessed. The return code is 404.
I checked the log, it was saying "SEVERE: Error filterStart" and "SEVERE: Context [/gerrit] startup failed due to previous errors".
Does anyone know why this happened and any solutions?
Thank you!
log:
Nov 21, 2013 6:27:45 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Nov 21, 2013 6:27:46 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 486 ms
Nov 21, 2013 6:27:46 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Nov 21, 2013 6:27:46 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
Nov 21, 2013 6:27:46 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/tomcat7/webapps/gerrit.war
[2013-11-21 06:27:49,460] INFO com.google.gerrit.server.cache.h2.H2CacheFactory : Enabling disk cache /home/git/sas-gerrit/cache
Nov 21, 2013 6:27:50 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart
Nov 21, 2013 6:27:50 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/gerrit] startup failed due to previous errors
Nov 21, 2013 6:27:50 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gerrit] appears to have started a thread named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. This is very likely to create a memory leak.
Nov 21, 2013 6:27:50 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gerrit] appears to have started a thread named [ProjectCacheClock-0] but has failed to stop it. This is very likely to create a memory leak.
Nov 21, 2013 6:27:50 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/gerrit] appears to have started a thread named [AsyncAppender-Dispatcher-Thread-3] but has failed to stop it. This is very likely to create a memory leak.
Nov 21, 2013 6:27:50 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/gerrit] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@76c27ba]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@4da42824]) 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.
Nov 21, 2013 6:27:50 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/gerrit] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@54477b4e]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@20f0691c]) 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.
Nov 21, 2013 6:27:50 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
Nov 21, 2013 6:27:50 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Nov 21, 2013 6:27:50 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4820 ms
Thanks,
Ben