]
Jozef Hartinger resolved WFLY-4046.
-----------------------------------
Fix Version/s: (was: 9.0.0.Beta1)
Resolution: Rejected
This is per specification. See
CamelExtension can get around this by storing AnnotatedTypes, not ProcessAnnotatedType
events here:
Container lifecycle event method invoked outside of extension
observer method invocation
----------------------------------------------------------------------------------------
Key: WFLY-4046
URL:
https://issues.jboss.org/browse/WFLY-4046
Project: WildFly
Issue Type: Bug
Components: CDI / Weld
Affects Versions: 9.0.0.Alpha1
Reporter: Thomas Diesler
Assignee: Jozef Hartinger
Cannot deploy war that uses camel-cdi
This works in 8.1.0.Final
{code}
org.jboss.weld.exceptions.IllegalStateException: WELD-000143: Container lifecycle event
method invoked outside of extension observer method invocation.
at
org.jboss.weld.bootstrap.events.ContainerEvent.checkWithinObserverNotification(ContainerEvent.java:61)
at
org.jboss.weld.bootstrap.events.ProcessAnnotatedTypeImpl.getAnnotatedType(ProcessAnnotatedTypeImpl.java:56)
at
org.apache.camel.cdi.internal.CamelContextConfig.configure(CamelContextConfig.java:47)
at
org.apache.camel.cdi.internal.CamelContextBean.configureCamelContext(CamelContextBean.java:131)
at
org.apache.camel.cdi.internal.CamelExtension.startConsumeBeans(CamelExtension.java:231)
{code}