Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-29714

"Failed to find UserTransaction" errors in catalina.out

    XMLWordPrintable

Details

    • Support Request
    • Resolution: Resolved Locally
    • Low
    • None
    • 5.1.4
    • Installation
    • None
    • Tomcat 7.0.29 / Mysql 5.5.27 on Solaris 10

    Description

      I am seeing a ton of the following errors

      2012-09-13 14:10:00,103 localhost-startStop-1 WARN [core.entity.transaction.JNDIFactory] NamingException while finding UserTransaction name
      d java:comp/env/UserTransaction in JNDI.
      javax.naming.NameNotFoundException: Name [UserTransaction] is not bound in this Context. Unable to find [UserTransaction].
      at org.apache.naming.NamingContext.lookup(NamingContext.java:820)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:154)

      ------------------

      1. less /opt/tomcat/jira/conf/Catalina/localhost/jira.xml
        <!--
        A sample configuration file for Tomcat 4.1.x and 5.0
        Customize the docBase attribute, drop in your $CATALINA_HOME/webapps/ (4.1.x) or
        $CATALINA_HOME/conf/Catalina/localhost/ (5.0) directory and restart Tomcat.
        Note the JOTM dependencies; you'll need to copy various jars to Tomcat's common/lib/ directory.
        See http://www.atlassian.com/software/jira/docs/latest/servers/tomcat41.html for details.
        -->

      <Context path="/jira" docBase="webapps/atlassian-jira-5.1.4.war" debug="0" useHttpOnly="true">

      <Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction"/>
      <ResourceParams name="UserTransaction">
      <parameter>
      <name>factory</name>
      <value>org.objectweb.jotm.UserTransactionFactory</value>
      </parameter>
      <parameter>
      <name>jotm.timeout</name>
      <value>60</value>
      </parameter>
      </ResourceParams>
      </Context>
      -------------------

      snippet for entityengine.xml

      <!-- TRANSACTION FACTORY - This configures how JIRA finds the application server's transaction management.
      The default ('java:comp/env/UserTransaction') is correct for Tomcat 5.5. For details on configuring for other
      application servers - see:
      http://www.atlassian.com/software/jira/docs/latest/entityengine.html#transactionfactory
      -->
      <transaction-factory class="org.ofbiz.core.entity.transaction.JNDIFactory">
      <user-transaction-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/>
      <transaction-manager-jndi jndi-server-name="default" jndi-name="java:comp/env/UserTransaction"/>
      </transaction-factory>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              d2aadcd59f90 JB
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: