Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Jetty/Howto/Deploy 3rd Party Products/JIRA"
< Jetty | Howto | Deploy 3rd Party Products
Line 20: | Line 20: | ||
* Modify <tt>$JETTY/contexts-available/atlassian-jira/WEB-INF/web.xml</tt>: | * Modify <tt>$JETTY/contexts-available/atlassian-jira/WEB-INF/web.xml</tt>: | ||
** add a <tt><resource-ref></tt> element for the datasource: | ** add a <tt><resource-ref></tt> element for the datasource: | ||
− | **; <pre><resource-ref> | + | **; <pre> <resource-ref> |
**; <res-ref-name>jdbc/JiraDS</res-ref-name> | **; <res-ref-name>jdbc/JiraDS</res-ref-name> | ||
**; <res-type>javax.sql.DataSource</res-type> | **; <res-type>javax.sql.DataSource</res-type> | ||
Line 26: | Line 26: | ||
**; </resource-ref></pre> | **; </resource-ref></pre> | ||
** if you want to use JavaMail Session, add a <tt><resource-ref></tt> for it too: | ** if you want to use JavaMail Session, add a <tt><resource-ref></tt> for it too: | ||
− | **; <pre><resource-ref> | + | **; <pre> <resource-ref> |
**; <res-ref-name>mail/Session</res-ref-name> | **; <res-ref-name>mail/Session</res-ref-name> | ||
**; <res-type>javax.mail.Session</res-type> | **; <res-type>javax.mail.Session</res-type> | ||
**; <res-auth>SERVLET</res-auth> | **; <res-auth>SERVLET</res-auth> | ||
**; </resource-ref></pre> | **; </resource-ref></pre> | ||
+ | * Modify <tt>$JETTY/contexts-available/atlassian-jira/WEB-INF/classes/entityengine.xml</tt>: | ||
+ | ** modify the JNDI name for the user transaction from <tt>java:comp/env/UserTransaction</tt> to <tt>java:comp/UserTransaction</tt> | ||
+ | ** make sure the JNDI name for the data source is <tt>java:comp/env/jdbc/JiraDS</tt> |
Revision as of 11:45, 21 July 2009
How to Deploy JIRA
These instructions have been tested against:
Jetty | JIRA | Servlet / JSP | JVM | Transaction Manager / DataSource |
---|---|---|---|---|
7.0.0.RC1 | 3.13.4 | 2.5 / 2.1 | 1.5 | Atomikos 3.5.5 / HSQLDB 1.8.0.5 |
Steps
Prepare the JIRA Web Application
Start from the JIRA Standalone Distribution, and:
- Copy $JIRA/common/lib/hsqldb-1.8.0.5.jar to $JETTY/lib/ext/hsqldb/hsqldb-1.8.0.5.jar (create the directories as needed)
- Copy $JIRA/atlassian-jira to $JETTY/contexts-available/atlassian-jira
- Modify $JETTY/contexts-available/atlassian-jira/WEB-INF/web.xml:
- add a <resource-ref> element for the datasource:
-
<resource-ref>
- <res-ref-name>jdbc/JiraDS</res-ref-name>
- <res-type>javax.sql.DataSource</res-type>
- <res-auth>SERVLET</res-auth>
- </resource-ref>
-
- if you want to use JavaMail Session, add a <resource-ref> for it too:
-
<resource-ref>
- <res-ref-name>mail/Session</res-ref-name>
- <res-type>javax.mail.Session</res-type>
- <res-auth>SERVLET</res-auth>
- </resource-ref>
-
- add a <resource-ref> element for the datasource:
- Modify $JETTY/contexts-available/atlassian-jira/WEB-INF/classes/entityengine.xml:
- modify the JNDI name for the user transaction from java:comp/env/UserTransaction to java:comp/UserTransaction
- make sure the JNDI name for the data source is java:comp/env/jdbc/JiraDS