声纳应用程序初始化失败
我已经解压了声纳(代码审查工具)并开始在 win 7 64 位上执行批处理文件 当我在 mozilla 中点击 url 时:http://localhost:9000 m 收到以下错误
应用程序初始化失败:规范中没有!/ 来自文件:/D:/#Software/sonar-2.9/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack.rb:7:in (根)' 来自 org/jruby/RubyKernel.java:1038:in
require' 来自文件:/D:/#Software/sonar-2.9/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack.rb:28:in boot !' 来自文件:/D:/#Software/sonar-2.9/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/boot/rack.rb:10:in机架' 来自文件:/D:/#Software/sonar-2.9/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/boot/rack.rb:8:in <代码>(根)' 来自 org/jruby/RubyKernel.java:1063:in
load' 来自文件:/D:/#Software/sonar-2.9/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/boot/rack.rb:1:in `(root)'
这是安装声纳的正确程序还是我需要做其他事情?
I have unzipped the sonar(code review tool) and started by executing batch file on win 7 64 bit
when m hitting the url in mozilla :http://localhost:9000 m getting following error
Application initialization failed: no !/ in spec
from file:/D:/#Software/sonar-2.9/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack.rb:7:in (root)'
require'
from org/jruby/RubyKernel.java:1038:in
from file:/D:/#Software/sonar-2.9/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack.rb:28:in boot!'
Rack'
from file:/D:/#Software/sonar-2.9/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/boot/rack.rb:10:in
from file:/D:/#Software/sonar-2.9/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/boot/rack.rb:8:in (root)'
load'
from org/jruby/RubyKernel.java:1063:in
from file:/D:/#Software/sonar-2.9/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/boot/rack.rb:1:in `(root)'
is it the right procedure to install the sonar or do i need anything else to do.?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
用于评估目的的 Sonar 安装(无需企业数据库)非常简单。正如 2 分钟教程中所述,它对我有用。查看要求 - 当然,您需要 Java。
这是说明:
下载并解压缩发行版。
(请勿将应用程序安装在以数字开头的目录中。
在 Windows 上执行:
bin\windows-x86-32\StartSonar.bat
或在其他平台上:
bin/[OS]/sonar.sh console
在 Maven 项目上执行以下命令:
mvn 全新安装
mvn sonar:sonar
浏览到
http://localhost:9000
对于管理功能,默认登录名/密码是 admin/admin。
A Sonar installation for evaluation purposes (without enterprise database) is very easy. It worked for me as described in the 2 minutes tutorial. Have a look at the requirements - you need Java of course.
This is the instruction:
Download and unzip the distribution.
(Do not install the application in a directory starting with a digit.
Execute on Windows:
bin\windows-x86-32\StartSonar.bat
or on other platforms:
bin/[OS]/sonar.sh console
Execute the following commands on your Maven projects:
mvn clean install
mvn sonar:sonar
Browse to
http://localhost:9000
For administration features, default login/password is admin/admin.
我遇到了问题,这是因为我在基本目录名称中使用了“#”,这就是为什么在执行时没有获取某些依赖项的路径。
如果没有明确要求,我建议所有人不要在安装目录名称中使用任何特殊字符。
谢谢。
I got the problem ,it is because I used "#" in my base directory name thats why while executing it was not getting the path to some dependencies.
I will suggest all not to use any special characters in installation directory name if it is not explicitly required.
Thank you.
FWIW,我刚刚在 Windows 7 上的 Sonar 2.13.1 上遇到了类似的问题
,不用介意特殊字符,我的问题是将其安装在 C:\Program Files\ 中,将其安装在 C:\Dev\ 中修复了它。
另外,作为 Windows 7,我必须开放日志目录的权限。
FWIW, I've just had something similar on Sonar 2.13.1 on Windows 7
Never mind special characters, my problem was installing it in C:\Program Files\, installing it in C:\Dev\ fixed it.
Also, being Windows 7 I had to open up the permissions on the logs directory.
在某些情况下,声纳日志消息过于通用。您可能需要将日志级别更改为 DEBUG 并再次检查。根据我的经验,需要检查一些事情
{sonar.jdbc.username:}
是架构所有者Sonar log messages are too generic in some cases. You might need to change the log levels to DEBUG and check again. Few things to check from my experience
{sonar.jdbc.username:}
is the schema owner