声纳应用程序初始化失败

发布于 2024-11-26 23:22:25 字数 903 浏览 0 评论 0原文

我已经解压了声纳(代码审查工具)并开始在 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:inrequire' 来自文件:/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:inload' 来自文件:/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)'
from org/jruby/RubyKernel.java:1038:in
require'
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!'
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
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:8:in (root)'
from org/jruby/RubyKernel.java:1063:in
load'
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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

坠似风落 2024-12-03 23:22:25

用于评估目的的 Sonar 安装(无需企业数据库)非常简单。正如 2 分钟教程中所述,它对我有用。查看要求 - 当然,您需要 Java。

这是说明:

  1. 下载并解压缩发行版。
    (请勿将应用程序安装在以数字开头的目录中。

  2. 在 Windows 上执行:
    bin\windows-x86-32\StartSonar.bat
    或在其他平台上:
    bin/[OS]/sonar.sh console

  3. 在 Maven 项目上执行以下命令:
    mvn 全新安装
    mvn sonar:sonar

  4. 浏览到http://localhost:9000

  5. 对于管理功能,默认登录名/密码是 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:

  1. Download and unzip the distribution.
    (Do not install the application in a directory starting with a digit.

  2. Execute on Windows:
    bin\windows-x86-32\StartSonar.bat
    or on other platforms:
    bin/[OS]/sonar.sh console

  3. Execute the following commands on your Maven projects:
    mvn clean install
    mvn sonar:sonar

  4. Browse to http://localhost:9000

  5. For administration features, default login/password is admin/admin.

这样的小城市 2024-12-03 23:22:25

我遇到了问题,这是因为我在基本目录名称中使用了“#”,这就是为什么在执行时没有获取某些依赖项的路径。

如果没有明确要求,我建议所有人不要在安装目录名称中使用任何特殊字符。

谢谢。

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.

温柔戏命师 2024-12-03 23:22:25

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.

后来的我们 2024-12-03 23:22:25

在某些情况下,声纳日志消息过于通用。您可能需要将日志级别更改为 DEBUG 并再次检查。根据我的经验,需要检查一些事情

  1. 正确的 JDBC 驱动程序(对于 DBMS,对于 JDK 版本)
  2. 如果您使用 JDK,请确保将wrapper.xml参数wrapper.java.additional.3设置为服务器
  3. 在wrapper.xml(独立设置)中检查 java 命令是否设置为预期的 jdk
  4. 如果您已准备好从旧版本设置模式(升级时),请在重新安装之前删除模式
  5. 确保用户{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

  1. Correct JDBC Driver (For the DBMS,For JDK version)
  2. If you are using a JDK make sure to set wrapper.xml param wrapper.java.additional.3 to server
  3. In wrapper.xml (Standalone setup) check the java commnand is set to the intended jdk
  4. If you all ready have a schema set up from a older version (When upgrading) drop the schema before reinstalling
  5. Make sure the user {sonar.jdbc.username:} is the schema owner
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文