Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Jetty/Howto/Deploy 3rd Party Products/JIRA"

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>&lt;resource-ref&gt;</tt> element for the datasource:  
 
** add a <tt>&lt;resource-ref&gt;</tt> element for the datasource:  
<resource-ref>
+
**; <pre>&lt;resource-ref&gt;
  <description>Database for JIRA</description>
+
**;  &lt;res-ref-name&gt;jdbc/JiraDS&lt;/res-ref-name&gt;
  <res-ref-name>jdbc/JiraDS</res-ref-name>
+
**;  &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
  <res-type>javax.sql.DataSource</res-type>
+
**;  &lt;res-auth&gt;SERVLET&lt;/res-auth&gt;
  <res-auth>SERVLET</res-auth>
+
**; &lt;/resource-ref&gt;</pre>
</resource-ref>
+
** if you want to use JavaMail Session, add a <tt>&lt;resource-ref&gt;</tt> for it too:
** add
+
**; <pre>&lt;resource-ref&gt;
 +
**;  &lt;res-ref-name&gt;mail/Session&lt;/res-ref-name&gt;
 +
**;  &lt;res-type&gt;javax.mail.Session&lt;/res-type&gt;
 +
**;  &lt;res-auth&gt;SERVLET&lt;/res-auth&gt;
 +
**; &lt;/resource-ref&gt;</pre>

Revision as of 11:38, 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>

Back to the top