Hi,
I am trying to configure Gerrit 2.9.1 mirror (container.slave=true) on top of Tomcat 8 but there are error when I tried doing ./bin/daemon.sh start. I am using PostgreSQL. I have the connector in the <tomcat>/lib directory and I also have the Resource tag in the conf/context.xml (and I also commented out the database config in gerrit.config).
<Resource name="jdbc/ReviewDb" auth="Container"
type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
username="readonlyaccount" password="****" maxTotal="100" maxIdle="30"
maxWaitMillis="10000"/>
I got this error in localhost.2014-11-20.log
20-Nov-2014 03:16:23.319 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.filterStart Exception starting filter guiceFilter
java.lang.NullPointerException
at com.google.gerrit.httpd.WebAppInitializer.createDbInjector(WebAppInitializer.java:222)
at com.google.gerrit.httpd.WebAppInitializer.init(WebAppInitializer.java:139)
at com.google.gerrit.httpd.WebAppInitializer.getInjector(WebAppInitializer.java:349)
at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:47)
at com.google.gerrit.httpd.WebAppInitializer.init(WebAppInitializer.java:356)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4594)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5201)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
And these severe in catalina-daemon.out
20-Nov-2014 03:16:23.320 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Error filterStart
20-Nov-2014 03:16:23.320 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
20-Nov-2014 03:16:23.328 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@62b143b0]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@63d30a6e]) 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.
20-Nov-2014 03:16:23.328 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@3451eef5]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@6f1f31a8]) 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.
Am I missing some config?