Reputation: 4024
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.?
Upvotes: 0
Views: 2849
Reputation: 49351
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.
Upvotes: 1
Reputation: 91
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 ownerUpvotes: 0
Reputation: 154
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.
Upvotes: 0
Reputation: 4024
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.
Upvotes: 0