[ 
https://issues.apache.org/jira/browse/TOMEE-1896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Romain Manni-Bucau updated TOMEE-1896:
--------------------------------------
    Summary: TomcatWebAppBuilder overwrites the last added event listener when 
the application doesn't use CDI  (was: TomcatWebAppBuilder overwrites the last 
added event listener)

> TomcatWebAppBuilder overwrites the last added event listener when the 
> application doesn't use CDI
> -------------------------------------------------------------------------------------------------
>
>                 Key: TOMEE-1896
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1896
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 7.0.1, 7.0.2
>            Reporter: Svetlin Zarev
>            Assignee: Romain Manni-Bucau
>             Fix For: 7.0.2
>
>         Attachments: com.github.svetlinzarev.sessionlistenertest.zip
>
>
> 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;



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to