Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-3034

EJB Session Bean Injection using @In Glassfish server

    Details

      Description

      I have 2 stateless ejbs, from MasterBean and SlaveBean, i am trying inject SlaveBeanusing @In annotation. I got below exception
      Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: slave
      at org.jboss.seam.Component.newInstance(Component.java:1970)
      at org.jboss.seam.Component.getInstance(Component.java:1873)
      at org.jboss.seam.Component.getInstance(Component.java:1840)
      at org.jboss.seam.Component.getInstanceInAllNamespaces(Component.java:2182)
      at org.jboss.seam.Component.getValueToInject(Component.java:2134)
      at org.jboss.seam.Component.injectAttributes(Component.java:1598)
      at org.jboss.seam.Component.inject(Component.java:1416)
      at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:45)
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:118)
      at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:579)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:483)
      at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:205)
      at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3978)
      at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:197)
      ... 53 more
      Caused by: javax.naming.NameNotFoundException: No object bound to name java:comp/env/evolve/SlaveBean/local
      at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:834)
      at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
      at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:396)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at org.jboss.seam.Component.instantiateSessionBean(Component.java:1287)
      at org.jboss.seam.Component.instantiate(Component.java:1273)
      at org.jboss.seam.Component.newInstance(Component.java:1966)
      ... 78 more

      Please look at the below link for more details and how to reproduce.
      http://www.seamframework.org/Community/AuthenticationUsingSeamRemoting
      http://www.seamframework.org/Community/EJBSLSBInjectionIssues

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dan.j.allen Dan Allen
                  Reporter:
                  sendtopms Senthilkumar Muthusamy
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: