jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Sonar
  • SONAR-50

Ability to deploy Sonar as a web application on Tomcat 5.5

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.3
  • Component/s: Infrastructure
  • Labels:
    None

Description

I've installed Sonar on Tomcat. I've created sonar-web.war and I created a the file $CATALINA_HOME/conf/Catalina/localhost/sonar-web.xml The server starts and Sonar seems to work well. Nevertheless, the URL of 'Configure rules' menu isn't correct (the other URLs are correct). The URL is 'http://foo.com/rules_config' instead of 'http://foo.com/sonar-web/rules_config'

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Simon Brandhof added a comment - 21/May/08 9:01 AM

Successfully tested on Tomcat 5.5.
WAR is built with the script war/build-war.sh.

Show
Simon Brandhof added a comment - 21/May/08 9:01 AM Successfully tested on Tomcat 5.5. WAR is built with the script war/build-war.sh.
Hide
Permalink
Laszlo Hornyak Kocka added a comment - 09/Jun/08 6:27 AM

Hi!

Could you extend the documentation with some info about how to setup the database connection if the application is not standalone?

Thank you!

Show
Laszlo Hornyak Kocka added a comment - 09/Jun/08 6:27 AM Hi! Could you extend the documentation with some info about how to setup the database connection if the application is not standalone? Thank you!
Hide
Permalink
Simon Brandhof added a comment - 09/Jun/08 6:32 AM

Hi, did you have a look at this page ?

Show
Simon Brandhof added a comment - 09/Jun/08 6:32 AM Hi, did you have a look at this page ?
Hide
Permalink
Laszlo Hornyak Kocka added a comment - 09/Jun/08 6:43 AM

Hi Simon!

Yes, and I still did not find it

—

Configure the database

If you do not use the default embedded database, edit _conf/sonar.properties_ to configure the database access. Templates are available for MySQL and Oracle. Just uncomment them and comment the first three lines dedicated to derby.

  • sonar.jdbc.url : the URL of the database
  • sonar.jdbc.driver : the class of the driver
  • sonar.jdbc.user : the username (default is 'sonar')
  • sonar.jdbc.password : the password (default is 'sonar')

—

Looks like this is for standalone installation, when installed as WAR into tomcat, the sonar.properties is not deployed.

Show
Laszlo Hornyak Kocka added a comment - 09/Jun/08 6:43 AM Hi Simon! Yes, and I still did not find it — Configure the database If you do not use the default embedded database, edit _conf/sonar.properties_ to configure the database access. Templates are available for MySQL and Oracle. Just uncomment them and comment the first three lines dedicated to derby.
  • sonar.jdbc.url : the URL of the database
  • sonar.jdbc.driver : the class of the driver
  • sonar.jdbc.user : the username (default is 'sonar')
  • sonar.jdbc.password : the password (default is 'sonar')
— Looks like this is for standalone installation, when installed as WAR into tomcat, the sonar.properties is not deployed.
Hide
Permalink
Simon Brandhof added a comment - 09/Jun/08 6:48 AM

You're wrong, edit this file then execute the script build_war.bat to create the WAR file. Sonar.properties is embedded into the WAR.

Show
Simon Brandhof added a comment - 09/Jun/08 6:48 AM You're wrong, edit this file then execute the script build_war.bat to create the WAR file. Sonar.properties is embedded into the WAR.
Hide
Permalink
Laszlo Hornyak Kocka added a comment - 09/Jun/08 6:54 AM

ah, tricky.... thanks!

Show
Laszlo Hornyak Kocka added a comment - 09/Jun/08 6:54 AM ah, tricky.... thanks!
Hide
Permalink
Simon Brandhof added a comment - 09/Jun/08 7:01 AM

You're welcome. The step 3 is now updated to clarify the WAR deployment.

Show
Simon Brandhof added a comment - 09/Jun/08 7:01 AM You're welcome. The step 3 is now updated to clarify the WAR deployment.

People

  • Assignee:
    Cédric Munger
    Reporter:
    Freddy Mallet
Vote (5)
Watch (3)

Dates

  • Created:
    19/Dec/07 2:54 AM
    Updated:
    13/Jun/08 7:47 AM
    Resolved:
    21/May/08 9:01 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.