50) Server installation

Toub edited this page Oct 30, 2011 · 5 revisions

Table of Contents


ice-scrum configuraton file

Create a config file (e.g. /opt/icescrum/conf/icescrum-config.properties) and add the following environment variable (e.g. in /etc/profiles): export icescrum_config_location=/opt/icescrum/conf/icescrum-config.properties

@source: http://forum.icescrum.org/viewtopic.php?f=16&t=354&start=10

configuration of postgreSQL 9.1

From root user, connect as postgres:

 su postgres

Create the icescrum user

 createuser -P icescrum

Answer the questions:

  • super admin=no
  • create database=yes
  • create roles=no
Create the database:
 createdb -O icescrum -E UTF8 icescrum

Now, configure the database settings in the configuration file (/opt/icescrum/conf/icescrum-config.properties):

  • driver:
  • hibernate dialect:
  • datasource url
  • username:
  • password:

Icescrum will now use PostgreSQL.

Last ice-scrum build deployment on Tomcat 7

Download the last development version of icescrum application, currently (30/10/2011) future R4:

 wget -P /var/lib/tomcat7/webapps http://outils.icescrum.org/jenkins/job/icescrum/lastSuccessfulBuild/artifact/target/icescrum.war

Start (or restart) tomcat:

 /etc/init.d/tomcat7 restart

Stop the server again:


The first deployment will crash due to the presence of servlet-api-2.3.jar, already provided by tomcat. Simply remove it:

 rm /var/lib/tomcat7/webapps/icescrum/WEB-INF/lib/servlet-api-2.3.jar

Also remove the unused HSQLDB drivers:

 rm /var/lib/tomcat7/webapps/icescrum/WEB-INF/lib/hsqldb-

Note that there are 2 mysql connectors in the current version: 5.1.5 and 5.1.17. This is probably a bug. Just remove the 5.1.5 version cause this driver is still required (crash on deployment else) :

 rm /var/lib/tomcat7/webapps/icescrum/WEB-INF/lib/mysql-connector-java-5.1.5.jar

Then, download the postgreSQL driver jar in WEB-INF/lib:

 wget -P /var/lib/tomcat7/webapps/icescrum/WEB-INF/lib http://jdbc.postgresql.org/download/postgresql-9.1-901.jdbc4.jar

Give the rights to tomcat7 user to /usr/share/tomcat7 directory in order to avoid an error while trying to create a file (named .lbdsl) there:

 chown tomcat7:tomcat7 /usr/share/tomcat7

Increase the size of heap memory in /etc/init.d/tomcat7 (default: 128M):

 JAVA_OPTS="-Djava.awt.headless=true -Xmx1024M"

Finally, restart Tomcat:

 /etc/init.d/tomcat7 restart

Check the logs files in case of error:

  • /var/log/tomcat7/catalina.out
  • /var/log/tomcat7/icescrum.log