Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-4354

Fail to create ManagedExecutorService in TomEE 10.0.0-M1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 10.0.0-M1
    • None
    • TomEE Core Server
    • Ubuntu 24.04, OpenJDK 17
    • Important

    Description

      In a fresh install of TomEE 10.0.0-M1-plume, I have in tomee.xml this resource:

      {{<Resource id="Foo" type="ManagedExecutorService">
      Core = 5
      Max = 25
      KeepAlive = 5 s
      Queue = 15
      ThreadFactory = org.apache.openejb.threads.impl.ManagedThreadFactoryImpl
      Lazy = true
      </Resource>}}

      TomEE failed to create the resource with error in catalina{date}.log:

      {{25-Jun-2024 21:07:30.229 SEVERE [main] jdk.internal.reflect.NativeMethodAccessorImpl.invoke Exception processing global JNDI Resources
      org.apache.openejb.core.ivm.naming.LazyObjectReference$LazyNamingException:
      Error calling instance factory method: public org.apache.openejb.threads.impl.ManagedExecutorServiceImpl
      org.apache.openejb.resource.thread.ManagedExecutorServiceImplFactory.create()
      at org.apache.openejb.core.ivm.naming.LazyObjectReference.getObject(LazyObjectReference.java:39) ...}}

      {{}}

      {{}}

      Attachments

        Issue Links

          Activity

            People

              jungm Markus Jung
              cpliu338 cpliu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h
                  3h