BeanDeploymentModules, if registered, returns a fallback "default" BeanDeploymentModule (whose isWebModule() returns false) for a bean archive which does not have a EEModuleDescriptor. As a result @Initialized(ApplicationScoped.class) event is fired twice for a WAR without EEModuleDescriptor. Once from HttpContextLifecycle and then also from WeldStartup. The same applies to @Destroyed(ApplicationScoped.class). |