下载&安装声纳(v3.6.2)通过maven(声纳:声纳)运行分析时出现以下错误
[错误]无法执行目标org.codehaus.sonar:sonar-maven-plugin:2.3.1:项目bf-CompositeStub上的sonar(default- cli):目标org.codehaus.sonar的执行default-cli: sonar-maven-plugin:2.3.1:声纳失败:PicoLifecycleException:方法'public void org.sonar.jpa.session.AbstractDatabaseConnector.start()',instance'org.sonar.jpa.session.DriverDatabaseConnector@134c5ff,java。 lang.RuntimeException:wrapper:无法打开与数据库的连接:找不到SQL驱动程序org.h2.Driver - > [帮助1]
访问日志显示问题是在请求jdbc驱动程序时抛出了404。 直接尝试通过远程浏览器获取驱动程序时出现相同的错误(10.30.32.136:9000/deploy/jdbc-driver.jar) 或与Web服务器在同一个盒子上(curl localhost:9000 / deploy / jdbc-driver.jar)
但是我可以从远程浏览器浏览声纳站点。
以下是码头访问日志。
10.30.32.29 - - [30/Jul/2013:08:44:16 +0000] "GET / HTTP/1.1" 200 3323 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36"
10.30.32.29 - - [30/Jul/2013:08:44:21 +0000] "GET /dependencies/index HTTP/1.1" 200 2159 "http://10.30.32.136:9000/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36"
10.30.32.29 - - [30/Jul/2013:08:44:23 +0000] "GET /comparison/index HTTP/1.1" 200 4356 "http://10.30.32.136:9000/dependencies/index" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36"
10.30.32.29 - - [30/Jul/2013:08:44:24 +0000] "GET /dashboard/?did=5 HTTP/1.1" 200 3336 "http://10.30.32.136:9000/comparison/index" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36"
10.30.32.29 - - [30/Jul/2013:08:45:12 +0000] "GET /deploy/jdbc-driver.jar HTTP/1.1" 404 1034 "-" "Java/1.6.0_29"
10.30.32.29 - - [30/Jul/2013:09:30:07 +0000] "GET / HTTP/1.1" 200 3323 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36"
10.30.32.29 - - [30/Jul/2013:09:30:11 +0000] "GET /deploy/jdbc-driver.jar HTTP/1.1" 404 1034 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36"
10.30.32.29 - - [30/Jul/2013:09:30:11 +0000] "GET /favicon.ico HTTP/1.1" 404 1034 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36"
127.0.0.1 - - [30/Jul/2013:09:31:25 +0000] "GET /deploy/jdbc-driver.jar HTTP/1.1" 404 1034 "-" "curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5"
我尝试过更改上下文根&通过更改sonar.properties文件中的属性并完全重新安装声纳来使用mysql实例,但每次都会遇到相同的问题。