[~meetoblivion] Thanks for the report!
The regression is caused by a fix for WELD-2256. In Weld SE the container ID is now a generated value if not set through {{Weld.containerId()}}. This works fine in normal use. The problem here is that there are two {{CDIProvider}} impls on the class path if Weld SE and Weld Servlet are used together. Error occurs if the Weld Servlet one is used.
The workaround is to set the Weld SE provider manually {{CDI.setCDIProvider(new WeldSEProvider())}} or to set a special value for container ID: {{new Weld().containerId("STATIC_INSTANCE")}}.
I wonder, if it would make sense to allow a CDIProvider to define priority ( - either by {{@Priority}} or by {{Prioritized}} . (see also CDI-655 ). |
|