Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9443

Random deploy error with @Startup @Singleton EJB

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 11.0.0.CR1
    • Fix Version/s: None
    • Component/s: CDI / Weld, Class Loading, EJB
    • Labels:
    • Environment:

      Wildfly 11.0CR1 + Vaadin 8.1.4
      Tested on Debian 9.1 and Windows 10

    • Steps to Reproduce:
      • Use provided app
      • Deploy to Wildfly 11 CR1
      • If success, deploy again and so on until it fails (should not be more than 5 or 6 times)
    • Release Notes Text:
      Packaging error.

      Description

      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@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)

        Gliffy Diagrams

          Attachments

          1. wftest-ear-0.1.0.ear.tar.gz
            12.08 MB
          2. wftest.tar.gz
            287 kB
          3. success.log
            178 kB
          4. error.log
            95 kB

            Activity

              People

              • Assignee:
                mkouba Martin Kouba
                Reporter:
                jmrunge Juan Martin Runge
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: