Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1535

Lookup to UserTransaction from Servlet not working in Tomcat 7

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-beta-1
    • Fix Version/s: 4.0-beta-1
    • Component/s: tomee
    • Labels:
      None

      Description

      Looking up java:comp/UserTransaction from a servlet in TomEE (Tomcat 7) fails with the following exception:

      javax.naming.NamingException: Cannot create resource instance
      at org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:116)
      at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:826)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:145)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:814)
      at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
      at org.apache.naming.SelectorContext.lookup(SelectorContext.java:158)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)

        Attachments

          Activity

            People

            • Assignee:
              jgallimore Jonathan Gallimore
              Reporter:
              jgallimore Jonathan Gallimore
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: