jdbc - Strange error when installing sonarqube 4.3 -
im trying install sonarqube , steps have taken:
- downloaded sonarqube version 4.3
- unpacked sonarqube-4.3.zip c:\sonarqube
- start sonarqube running: c:\sonarqube\bin\windows-x86-64\startsonar.bat
- server running
- testet access server on
http://localhost:9000
- comment out following line in c:\sonarqube\conf\sonar.properties
sonar.jdbc.url=jdbc:h2:tcp://localhost:9092/sonar
- edit following lines in c:\sonarqube\conf\sonar.properties
- sonar.jdbc.username=sonar sonar.jdbc.username=username
- sonar.jdbc.password=sonar sonar.jdbc.password=password
- #sonar.jdbc.url=jdbc:oracle:thin:@host/xe sonar.jdbc.url=jdbc:oracle:thin:@host:port/db
- download ojdbc6.jar
- copy ojdbc6.jar c:\sonarqube\extensions\jdbc-driver\oracle\
- stop server
- start server
- starting server fails
i in log:
any or pointers appreciated
2014.06.03 11:13:55 info [o.s.a.connectors] http connector enabled on port 9000 2014.06.03 11:13:56 info [o.a.c.h.http11protocol] initializing protocolhandler ["http-bio-0.0.0.0-9000"] 2014.06.03 11:13:56 info [o.a.c.c.standardservice] starting service tomcat 2014.06.03 11:13:56 info [o.a.c.c.standardengine] starting servlet engine: apache tomcat/7.0.42 2014.06.03 11:13:57 info [o.a.c.s.contextconfig] no global web.xml found 2014.06.03 11:13:59 info [o.s.s.p.serverimpl] sonarqube server / 4.3 / 05cc0b97a0e8064857d02c03a8086695e154e2ba 2014.06.03 11:13:59 error [o.s.s.p.platformservletcontextlistener] fail start server java.lang.nullpointerexception: null @ org.sonar.server.db.embeddeddatabasefactory.start(embeddeddatabasefactory.java:39) ~[embeddeddatabasefactory.class:na] @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[na:1.7.0] @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source) ~[na:1.7.0] @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) ~[na:1.7.0] @ java.lang.reflect.method.invoke(unknown source) ~[na:1.7.0] @ org.picocontainer.lifecycle.reflectionlifecyclestrategy.invokemethod(reflectionlifecyclestrategy.java:110) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.lifecycle.reflectionlifecyclestrategy.start(reflectionlifecyclestrategy.java:89) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.injectors.abstractinjectionfactory$lifecycleadapter.start(abstractinjectionfactory.java:84) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.behaviors.abstractbehavior.start(abstractbehavior.java:169) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.behaviors.stored$realcomponentlifecycle.start(stored.java:132) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.behaviors.stored.start(stored.java:110) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.defaultpicocontainer.potentiallystartadapter(defaultpicocontainer.java:1015) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.defaultpicocontainer.startadapters(defaultpicocontainer.java:1008) ~[picocontainer-2.14.3.jar:na] @ org.picocontainer.defaultpicocontainer.start(defaultpicocontainer.java:766) ~[picocontainer-2.14.3.jar:na] @ org.sonar.api.platform.componentcontainer.startcomponents(componentcontainer.java:91) ~[sonar-plugin-api-4.3.jar:na] @ org.sonar.server.platform.platform.startlevel1container(platform.java:91) ~[platform.class:na] @ org.sonar.server.platform.platform.init(platform.java:71) ~[platform.class:na] @ org.sonar.server.platform.platformservletcontextlistener.contextinitialized(platformservletcontextlistener.java:53) ~[platformservletcontextlistener.class:na] @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4939) [tomcat-embed-core-7.0.42.jar:7.0.42] @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5434) [tomcat-embed-core-7.0.42.jar:7.0.42] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) [tomcat-embed-core-7.0.42.jar:7.0.42] @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) [tomcat-embed-core-7.0.42.jar:7.0.42] @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) [tomcat-embed-core-7.0.42.jar:7.0.42] @ java.util.concurrent.futuretask$sync.innerrun(unknown source) [na:1.7.0] @ java.util.concurrent.futuretask.run(unknown source) [na:1.7.0] @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) [na:1.7.0] @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) [na:1.7.0] @ java.lang.thread.run(unknown source) [na:1.7.0] <-- wrapper stopped
you're getting error because property "sonar.jdbc.url" not defined or commented-out in sonar.properties file.
Comments
Post a Comment