I have an portable CDI extension that seems to be broken as a result of this change. The extension creates beans dynamically during the {{ProcessInjectionPoint}} event callbacks, and then adds all of them to the bean manager (via `AfterBeanDiscovery.addBean`) after bean discovery is complete.
In Wildfly 10.1 (Weld 2.3) when I deploy a web application that uses this CDI extension, errors such as the following appear. Note that the number of instances of `[beanDeploymentArchiveId=bootstrapBDA.additionalClasses]` in the error message corresponds directly to the number of beans produced by my extension.
I'm unsure of whether my extension needs to do something different or whether Weld needs to do something different.
{ { noformat} } Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-000163: Non-unique bean deployment identifier detected: - BeanDeployment [beanDeploymentArchiveId=bootstrapBDA.additionalClasses], - BeanDeployment [beanDeploymentArchiveId=org.hibernate.validator.cdi:main.additionalClasses], - BeanDeployment [beanDeploymentArchiveId=org.wildfly.extension.messaging-activemq:main.additionalClasses], - BeanDeployment [beanDeploymentArchiveId=org.jboss.jts:main.additionalClasses], - BeanDeployment [beanDeploymentArchiveId=org.jboss.as.jsf:main.additionalClasses], - BeanDeployment [beanDeploymentArchiveId=org.hibernate.validator:main.additionalClasses], - BeanDeployment [beanDeploymentArchiveId=/content/demo-1.1.0-SNAPSHOT.war], - BeanDeployment [beanDeploymentArchiveId=bootstrapBDA.additionalClasses], - BeanDeployment [beanDeploymentArchiveId=deployment.demo-1.1.0-SNAPSHOT.war:main.additionalClasses], - BeanDeployment [beanDeploymentArchiveId=org.jboss.resteasy.resteasy-cdi:main.additionalClasses], - BeanDeployment [beanDeploymentArchiveId=bootstrapBDA.additionalClasses], - BeanDeployment [beanDeploymentArchiveId=com.sun.jsf-impl:main.additionalClasses], - BeanDeployment [beanDeploymentArchiveId=org.jberet.jberet-core:main.additionalClasses]"}, "WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"demo-1.1.0-SNAPSHOT.war\".WeldStartService"], "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined { { noformat} }
|