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

Lookup to UserTransaction from Servlet not working in Tomcat 7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0-beta-1
    • 4.0-beta-1
    • tomee
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: