Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-beta-2
    • Fix Version/s: 1.0.0-beta-2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux, JDK 6

      Description

      With previous versions of Tomcat 5 + OpenEJB I was able to lookup the TransactionManager as follows:

      Context context = new InitialContext();
      tm = context.lookup("java:comp/TransactionManager");

      A sample stack trace looks as follows:

      BasicException[1]
      Class = org.apache.naming.NamingContext
      Method = lookup
      Line = 803
      ExceptionClass = javax.naming.NameNotFoundException
      ExceptionDomain = DefaultDomain
      ExceptionCode = GENERIC
      Description = Name TransactionManager is not bound in this Context
      Timestamp = 2011-10-19T09:26:35.197Z
      Paramaters:
      0: explanation = Name TransactionManager is not bound in this Context
      StackTrace:
      at org.apache.naming.NamingContext.lookup(NamingContext.java:803)
      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)
      at org.openmdx.kernel.naming.ComponentEnvironment.lookup(ComponentEnvironment.java:100)
      at org.openmdx.base.rest.spi.ConnectionAdapter.getTransactionManager(ConnectionAdapter.java:179)
      ...
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at com.planetj.servlet.filter.compression.CompressingFilter.doFilter(CompressingFilter.java:217)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
      at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:269)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      This does not seem to work any more with TomEE. Is there another way to do the lookup?

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Romain Manni-Bucau
            Reporter:
            Werner Froidevaux
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development