com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class com.example.ejbconstructorinjection.InjectedServlet

Oracle Community | arendvr.com | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    EJB with constructor injection not working in servlet

    Oracle Community | 5 years ago | arendvr.com
    com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class com.example.ejbconstructorinjection.InjectedServlet

    Root Cause Analysis

    1. org.jboss.weld.exceptions.WeldException

      WELD-000033 Could not instantiate client proxy for Session bean [class com.example.ejbconstructorinjection.GreeterEjb with qualifiers [@Any @Default]; local interfaces are [GreeterEjb]

      at org.jboss.weld.bean.SessionBean.create()
    2. Weld Implementation
      SimpleInjectionTarget$1.proceed
      1. org.jboss.weld.bean.SessionBean.create(SessionBean.java:343)
      2. org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:67)
      3. org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:690)
      4. org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:772)
      5. org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:138)
      6. org.jboss.weld.util.Beans.injectBoundFields(Beans.java:872)
      7. org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:884)
      8. org.jboss.weld.manager.SimpleInjectionTarget$1.proceed(SimpleInjectionTarget.java:120)
      8 frames
    3. Embedded GlassFish Web
      InjectionServicesImpl.aroundInject
      1. org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:134)
      1 frame
    4. Weld Implementation
      SimpleInjectionTarget.inject
      1. org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:50)
      2. org.jboss.weld.manager.SimpleInjectionTarget.inject(SimpleInjectionTarget.java:114)
      2 frames
    5. Embedded GlassFish Web
      JCDIServiceImpl.createManagedObject
      1. org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:278)
      2. org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:229)
      2 frames
    6. Container Common
      InjectionManagerImpl.createManagedObject
      1. com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:470)
      2. com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:420)
      3. com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:299)
      3 frames