Real life problems solved

Advert

Install Jira on Fedora 14 with Tomcat

To install do the following:

Install Java and Tomcat 6

yum install java-1.6.0-openjdk-devel tomcat6 tomcat6-admin-webapps tomcat6-webapps

Open Firewall

/sbin/iptables -I INPUT 1 -p tcp --dport 8080 -j ACCEPT
/sbin/service iptables save
service iptables restart

Set Java Path

vi /etc/profile.d/java.sh
export JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre"
export JAVA_PATH="$JAVA_HOME"
export PATH="$PATH:$JAVA_HOME/bin"
chmod +x /etc/profile.d/java.sh

Start Tomcat 6

service tomcat6 start
chkconfig --add tomcat6

You should now be able to see the Tomcat welcome page at http://xxx.xxx.xxx.xxx:8080 where xxx.xxx.xxx.xxx is your server IP

Set up Jira

mkdir /var/jira
mkdir /var/jirahome
chmod 777 /var/jirahome
cd /var/jira
wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-4.2.tar.gz
tar zxvf atlassian-jira-enterprise-4.2.tar.gz
vi /var/jira/atlassian-jira-enterprise-4.2/webapp/WEB-INF/classes/jira-application.properties

Set Set jira.home = /var/jirahome

Install Jira

cd /var/jira/atlassian-jira-enterprise-4.2/
./build.sh
cp /var/jira/atlassian-jira-enterprise-4.2/dist-tomcat/tomcat-6/jira.xml /etc/tomcat6/Catalina/localhost/
vi /etc/tomcat6/Catalina/localhost/jira.xml

Change file to read:

<Context path="/jira" docBase="path/to/atlassian-jira-4.1.war">
 <Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
 username="sa"
 password=""
 driverClassName="org.hsqldb.jdbcDriver"
 url="jdbc:hsqldb:path/to/database/jiradb/"
 minEvictableIdleTimeMillis="4000"
 timeBetweenEvictionRunsMillis="5000"/>
 <Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"
 factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>
 <Manager pathname=""/>
</Context>

Add jars to Tomcat

cd /var/tmp
wget http://confluence.atlassian.com/download/attachments/200709089/jira-jars-tomcat6.zip?version=1&modificationDate=1252474277487
unzip -q jira-jars-tomcat6.zip?version=1
cd jira-jars-tomcat6
cp *.jar /var/lib/tomcat6/webapps/jira/WEB-INF/lib
service tomcat6 restart

Edit Tomcat to use UTF8

vi /etc/tomcat6/server.xml

Find the Connector port line and change to:

Connector port="8080" protocol="HTTP/1.1"
        connectionTimeout="20000"
        redirectPort="8443" URIEncoding="UTF-8"
  • Christopher Bolduc

    After following the instructions to the letter, I get the following message:

    No jira.home is configured.
    See Setting
    your JIRA Home Directory for instructions on setting jira.home.

    I tried editing jira-application.properties again and making sure there was no whitespace, everything was spelled correctly, etc.

  • K Irfaan

    didn’t work got error as “jira.home not configured

Adsense