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

TomcatWebAppBuilder overwrites the last added event listener when the application doesn't use CDI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.0.1, 7.0.2
    • 7.0.2
    • TomEE Core Server
    • None

    Description

      The TomcatWebAppBuilder overwrites the last added event listener.
      Line 1764 (on branch/tag 7.0.1):

      System.arraycopy(appEventListeners, 0, newEventListeners, 1,
      appEventListeners.length);
      newEventListeners[newEventListeners.length - 1] = endWebBeansListener;

      It should be:
      System.arraycopy(appEventListeners, 0, newEventListeners, 0,
      appEventListeners.length);
      newEventListeners[newEventListeners.length - 1] = endWebBeansListener;

      Attachments

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            SvetlinZarev Svetlin Zarev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: