javax.naming.NameNotFoundException: Name [UserTransaction] is not bound in this Context. Unable to find [UserTransaction].

Atlassian JIRA | Michael | 3 years ago
  1. 0

    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) ------------------ # 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>

    Atlassian JIRA | 4 years ago | JB
    javax.naming.NameNotFoundException: Name [UserTransaction] is not bound in this Context. Unable to find [UserTransaction].
  2. 0

    the context path is actual set to /jira - I wolould like to set it to /jira-test but the system does not get up. the context path is only set in the server.xml: <Context path="/jira-test" docBase="/var/apphome/jira/catalina_base/webapps/jira/"> <Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction" factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/> <Manager pathname=""/> </Context> When I set the context path back to /jira it will work again. Tomcat 7.0.41 Java 1.7.0_25 Linux 2.6.32-358.11.1.el6.x86_64 Oracle JDBC driver 11.2.0.3.0 Jira Version 6.0.5 Jira Build Number 6102 ERROR [NoModule] Error getting datasource via DBCP: JdbcDatasourceInfo{uri='jdbc:oracle:thin:@XXXXXXX/aenjira6_e.XXXXXXXXX', driverClassName='oracle.jdbc.OracleDriver', username='AENJIRA6', password='********', isolationLevel='null', connectionProperties=null, connectionPoolInfo=ConnectionPoolInfo{maxSize=20, minSize=20, initialSize=null, maxIdle=20, maxWait=30000, sleepTime=300000, lifeTime=600000, deadLockMaxWait=600000, deadLockRetryWait=10000, validationQuery=null, minEvictableTimeMillis=null, timeBetweenEvictionRunsMillis=null, poolPreparedStatements=null, testOnBorrow=null, testOnReturn=null, testWhileIdle=null, maxOpenPreparedStatements=null, numTestsPerEvictionRun=null, removeAbandonedTimeout=300, validationQueryTimeout=null, defaultCatalog=null}} java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: com.atlassian.jira:name=BasicDataSource .... 2013-11-04 13:42:49,301 localhost-startStop-1 WARN [core.entity.transaction.JNDIFactory] NamingException while finding UserTransaction named 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) at org.apache.naming.NamingContext.lookup ...

    Atlassian JIRA | 3 years ago | Michael
    javax.naming.NameNotFoundException: Name [UserTransaction] is not bound in this Context. Unable to find [UserTransaction].
  3. 0

    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) ------------------ # 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>

    Atlassian JIRA | 4 years ago | JB
    javax.naming.NameNotFoundException: Name [UserTransaction] is not bound in this Context. Unable to find [UserTransaction].
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    the context path is actual set to /jira - I wolould like to set it to /jira-test but the system does not get up. the context path is only set in the server.xml: <Context path="/jira-test" docBase="/var/apphome/jira/catalina_base/webapps/jira/"> <Resource name="UserTransaction" auth="Container" type="javax.transaction.UserTransaction" factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/> <Manager pathname=""/> </Context> When I set the context path back to /jira it will work again. Tomcat 7.0.41 Java 1.7.0_25 Linux 2.6.32-358.11.1.el6.x86_64 Oracle JDBC driver 11.2.0.3.0 Jira Version 6.0.5 Jira Build Number 6102 ERROR [NoModule] Error getting datasource via DBCP: JdbcDatasourceInfo{uri='jdbc:oracle:thin:@XXXXXXX/aenjira6_e.XXXXXXXXX', driverClassName='oracle.jdbc.OracleDriver', username='AENJIRA6', password='********', isolationLevel='null', connectionProperties=null, connectionPoolInfo=ConnectionPoolInfo{maxSize=20, minSize=20, initialSize=null, maxIdle=20, maxWait=30000, sleepTime=300000, lifeTime=600000, deadLockMaxWait=600000, deadLockRetryWait=10000, validationQuery=null, minEvictableTimeMillis=null, timeBetweenEvictionRunsMillis=null, poolPreparedStatements=null, testOnBorrow=null, testOnReturn=null, testWhileIdle=null, maxOpenPreparedStatements=null, numTestsPerEvictionRun=null, removeAbandonedTimeout=300, validationQueryTimeout=null, defaultCatalog=null}} java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: com.atlassian.jira:name=BasicDataSource .... 2013-11-04 13:42:49,301 localhost-startStop-1 WARN [core.entity.transaction.JNDIFactory] NamingException while finding UserTransaction named 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) at org.apache.naming.NamingContext.lookup ...

    Atlassian JIRA | 3 years ago | Michael
    javax.naming.NameNotFoundException: Name [UserTransaction] is not bound in this Context. Unable to find [UserTransaction].
  6. 0

    Hibernate 4.3 + Tomcat 7 Unable to lookup JNDI name

    Stack Overflow | 3 years ago | vernjan
    javax.naming.NameNotFoundException: Name [java:comp/env/jdbc/data] is not bound in this Context. Unable to find [java:comp].

  1. treefolk 1 times, last 2 weeks ago
  2. davidvanlaatum 1 times, last 5 months ago
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.naming.NameNotFoundException

    Name [UserTransaction] is not bound in this Context. Unable to find [UserTransaction].

    at org.apache.naming.NamingContext.lookup()
  2. Web Container Naming Utilities
    NamingContext.lookup
    1. org.apache.naming.NamingContext.lookup(NamingContext.java:820)
    2. org.apache.naming.NamingContext.lookup(NamingContext.java:154)
    2 frames