[jboss-jira] [JBoss JIRA] (WFLY-9443) Random deploy error with @Startup @Singleton EJB

Juan Martin Runge (JIRA) issues at jboss.org
Tue Oct 17 08:56:01 EDT 2017


     [ https://issues.jboss.org/browse/WFLY-9443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juan Martin Runge closed WFLY-9443.
-----------------------------------
    Release Notes Text: Packaging error.
            Resolution: Rejected


> Random deploy error with @Startup @Singleton EJB
> ------------------------------------------------
>
>                 Key: WFLY-9443
>                 URL: https://issues.jboss.org/browse/WFLY-9443
>             Project: WildFly
>          Issue Type: Bug
>          Components: CDI / Weld, Class Loading, EJB
>    Affects Versions: 11.0.0.CR1
>         Environment: Wildfly 11.0CR1 + Vaadin 8.1.4 
> Tested on Debian 9.1 and Windows 10
>            Reporter: Juan Martin Runge
>            Assignee: Martin Kouba
>              Labels: regression
>         Attachments: error.log, success.log, wftest-ear-0.1.0.ear.tar.gz, wftest.tar.gz
>
>
> Simple EAR project with an EJB Module and a WAR Module.  War uses Vaadin (think is not relevant but mention it anyway). On the EJB Module I have a @Singleton @Startup bean which has injected a at LocalBean @Stateless bean via @Inject annotation (tested with @EJB annotation with same results).  The UI on the WAR side also calls this @LocalBean @Stateless bean.  Randomly, when I deploy, redeploy or restart the server, the EAR refuses to deploy do java.lang.IllegalStateException because it cannot inject the @Stateless bean inside the @Startup bean. 
> Attached sample app, project, log with error and log with success.
> If you check the success log, you will see the @Startup @Singleton bean gets instanciated twice.. Quite strange.
> Also, this didnt happened with Wildfly 9 (same app deployed perfectly)



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list