-
Bug
-
Resolution: Done
-
Major
-
4.0.0.Beta2
-
None
While trying to integrate weld 4.0.0.Beta{1,2} into GlassFish, some existing tests started to fail with (see my comment in WELD-2642):
IllegalArgumentException: Unable to add listener of type: org.jboss.weld.module.web.servlet.WeldListener, because it does not implement any of the required ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener interfaces
The problem is that since 4.0.0.Beta1, weld-osgi-bundle.jar embeds Jakarta APIs (servlet and persistence) and this is causing HttpSessionListener.class.isAssignableFrom(WeldListener.class) check done by GlassFish server-side code to return false instead of true.
This has been introduced through javadoc related commit