Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-471

BeanManager name in ServletContext for CDI integration is incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 2.0.1.GA
    • jaxrs
    • None
    • Low

    Description

      The CDI integration module looks up the beanmanager from the Servlet Context if the container doesn't support JNDI (such as Google App Engine). The name of the BeanManager within the Servlet Context is not correct any more in the current snapshot of Weld. Weld sets the BeanManager to:
      (org.jboss.weld.environment.servlet.Listener)
      public static final String BEAN_MANAGER_ATTRIBUTE_NAME = Listener.class.getPackage().getName() + "." + BeanManager.class.getName();

      In RestEasy-CDI the BeanManager is lookup up with:
      (org.jboss.resteasy.cdi.CdiInjectorFactory)
      beanManager = (BeanManager) servletContext.getAttribute(BeanManager.class.getName());

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-jharting Jozef Hartinger
              pbakker_jira Paul Bakker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: