JIRA 4.0 : Geronimo Notes
This page last changed on Jun 08, 2009 by rosie@atlassian.com.
This page has general notes on installing JIRA on Apache Geronimo.
1. Unpack JIRADownload and unzip JIRA (but not with XP's unzipper nor the default tar utility on Solaris). Ensure that you download the WAR/EAR version, not the Standalone version that is recommended on the Downloads page.
A new directory containing JIRA will be created, hereafter referred to as $JIRA_INSTALL.
2. Configure JIRACreate geronimo-web.xmlGeronimo requires a geronimo-web.xml deployment descriptor in order to deploy WAR applications. Create a new file $JIRA_INSTALL/webapp/WEB-INF/geronimo-web.xml and add the following: geronimo-web.xml <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2"> <!-- version information about the JIRA installation --> <sys:environment> <sys:moduleId> <sys:groupId>com.atlassian.jira</sys:groupId> <sys:artifactId>Jira</sys:artifactId> <sys:version>3.13.2</sys:version> <sys:type>war</sys:type> </sys:moduleId> <!-- database dependency - JIRA won't start without a database, so lets tell geronimo about this --> <sys:dependencies> <sys:dependency> <sys:groupId>console.dbpool</sys:groupId> <sys:artifactId>JiraDS</sys:artifactId> </sys:dependency> </sys:dependencies> </sys:environment> <!-- the context path to deploy the war too - in this case it will be http://localhost:8080/jira --> <context-root>/jira</context-root> <naming:resource-ref> <!-- the name of the database pool in web.xml --> <naming:ref-name>jdbc/JiraDS</naming:ref-name> <!-- the name of the database pool you created in Geronimo console --> <naming:resource-link>jdbc/JiraDS</naming:resource-link> </naming:resource-ref> </web-app> Edit entityengine.xmlIn addition to setting the appropriate field type for you database, you also need to configure the Transaction factory for Geronimo. In $JIRA_INSTALL/edit-webapp/WEB-INF/classes/entityengine.xml find the <transaction-factory> element and replace it with the following: <transaction-factory class="org.ofbiz.core.entity.transaction.JNDIFactory"> <user-transaction-jndi jndi-server-name="default" jndi-name="java:comp/UserTransaction"/> <transaction-manager-jndi jndi-server-name="default" jndi-name="java:/TransactionManager"/> </transaction-factory> Also find the <datasource> element and change the <jndi-jdbc> to have the following: <jndi-jdbc jndi-server-name="default" jndi-name="java:comp/env/jdbc/JiraDS"/> The jndi-name attibute is a "java:comp/env/" plus whatever you specified for ref-name in geronimo-web.xml. Edit web.xmlThe web.xml file needs to be edited to tell Geronimo where it can find the data source for the JIRA database. Copy $JIRA_INSTALL/webapp/WEB-INF/web.xml to $JIRA_INSTALL/edit-webapp/WEB-INF/web.xml and add the following under the <web-app> element: <resource-ref> <res-ref-name>jdbc/JiraDS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> 3. Build JIRAJIRA can now be built by typing build (Windows) or ./build.sh (Unix) on the command line in the $JIRA_HOME directory. This will produce the deployable WAR file in the $JIRA_INSTALL/dist-* directories. 4. Deploy JIRACreate Database Connection Pool in Geronimo ConsoleThe simplest way to do this is by the GUI wizard under Services -> Databases in the Geronimo console. Name the pool jdbc/JiraDS (or whatever you specified for resource-link in geronimo-web.xml). Please refer to http://cwiki.apache.org/GMOxDOC22/configuring-database-pools.html for more information on how to configure a database connection pool. Deploy WAR in Geronimo ConsoleSelect Application -> Deploy New from inside the Geronimo Console. Click the browse button next to the Archive and select the $JIRA_INSTALL/dist-generic/atlassian-jira-<version>.war. Leave the plan blank and click install. 5. Set JIRA HomeTo specify the location of your JIRA Home Directory (note that you need to do this before you build JIRA):
You can specify any location on a disk for your JIRA home directory. Please be sure to specify an absolute path. Please note that you cannot use the same JIRA home directory for multiple instances of JIRA. We recommend that you do not specify your JIRA home directory inside your installation directory, to prevent information from being accidentally lost during major operations (e.g. backing up and restoring instances). 6. Set mail.mime.decodeparametersThe following system property must be set in order for the JIRA mail handler to work correctly with emails from RFC 2231-compliant mail clients: mail.mime.decodeparameters=true System properties are set in different ways depending on your application server. 7. Access JIRAYou should now be able to visit the JIRA setup page at http://localhost:8080/jira (assuming Geronimo is running on the local machine on port 8080). 8. Known Issues
|
![]() |
Document generated by Confluence on Oct 06, 2009 00:31 |