0

下载并安装声纳(v3.6.2)后,通过 Maven(声纳:声纳)运行分析时出现以下错误

[错误] 无法在项目 bf-CompositeStub 上执行目标 org.codehaus.sonar:sonar-maven-plugin:2.3.1:sonar (default- cli):执行目标 org.codehaus.sonar:sonar- maven 的 default-cli -插件:2.3.1:声纳失败:PicoLifecycleException:方法'public void org.sonar.jpa.session.AbstractDatabaseConnector.start()',实例'org.sonar.jpa.session.DriverDatabaseConnector@134c5ff,java.lang.RuntimeException :包装器:无法打开与数据库的连接:找不到 SQL 驱动程序 org.h2.Driver -> [帮助 1]

访问日志显示问题是在请求 jdbc 驱动程序时抛出 404。当直接尝试通过远程浏览器 (10.30.32.136:9000/deploy/jdbc-driver.jar) 或在与 Web 服务器相同的盒子上 (curl localhost:9000/deploy/jdbc-) 获取驱动程序时,我得到了同样的错误驱动程序.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 实例,但每次都会遇到相同的问题。

4

0 回答 0