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

BeanManager name in ServletContext for CDI integration is incorrect

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.1.GA
    • Fix Version/s: None
    • Component/s: jaxrs
    • Labels:
      None
    • Estimated Difficulty:
      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());

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jharting Jozef Hartinger
                  Reporter:
                  pbakker Paul Bakker
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: