Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2644

weld-osgi-bundle must not embed jakarta APIs

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            lukas.jungmann@gmail.com Lukas Jungmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: