4 Replies Latest reply on Mar 22, 2007 5:45 AM by Kay Arita

    Inject EBJ

    Kay Arita Newbie

      I'm working on Seam1.2 and GlassFish.
      Plase tell me how to inject ejb into ejb.


      ---class1---
      @Stateless
      @Name("action1")
      public class Action1Bean implements Action1Local {...}

      ---class2---
      @Stateless
      @Name("action2")
      public class Action2Bean implements Action2Local {
      @EJB private Action1Local acton1;
      }

      This code is well. action1 is injected by @EJB annotation.

      ---class2'---
      @Stateless
      @Name("action2")
      public class Action2Bean implements Action2Local {
      @In private Action1Local acton1;
      }

      In this case, action1 is not injected by @In annotation.

      Spacial configuration is required?

      ---Kay

        • 1. Re: Inject EBJ
          Pete Muir Master

          Try

          @Stateless
          @Name("action2")
          public class Action2Bean implements Action2Local {
          @In private Action1Local action1;
          }


          • 2. Re: Inject EBJ
            Kay Arita Newbie

            Hello,

            "petemuir" wrote:
            Try
            @Stateless
            @Name("action2")
            public class Action2Bean implements Action2Local {
            @In private Action1Local action1;
            }


            acton1 is typo. I have another example.

            ---
            @Stateless
            @Name("action2")
            public class Action2Bean implements Action2Local {
            public void sayGoodbye() {
            System.out.println("Good bye spring.");
            }
            }
            ---
            @Stateless
            @Name("action1")
            public class Action1Bean implements Action1Local {
            @In
            private Action2Local action2;
            public void sayHello() {
            System.out.println("Hello, seam!");
            }
            public void sayGoodbye() {
            action2.sayGoodbye();
            }
            public Action2Local getAction2() { return action2; }
            public void setAction2(Action2Local action2) { this.action2 = action2; }
            }
            ---
            When #{action1.sayGoodbye} is called in JSP, Seam can't find action2 component. I found action2 component in Application Context by using seam debugger, but I've got the following message. Is there an idea?




            EJB5018: An exception was thrown during an ejb invocation on [Action1Bean]
            javax.ejb.EJBException
            at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:3730)
            at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3630)
            at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3431)
            at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1247)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:192)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:71)
            at $Proxy228.sayGoodbye(Unknown Source)
            at template.Action1Local$$FastClassByCGLIB$$632c84.invoke()
            at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
            at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
            at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
            at template.Action1Local$$EnhancerByCGLIB$$84a68154.sayGoodbye()
            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:585)
            at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
            at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
            at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
            at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
            at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
            Caused by: org.jboss.seam.RequiredException: In attribute requires non-null value: action1.action2
            at org.jboss.seam.Component.getValueToInject(Component.java:1887)
            at org.jboss.seam.Component.injectAttributes(Component.java:1336)
            at org.jboss.seam.Component.inject(Component.java:1163)
            at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
            at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
            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:585)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor$1.run(InterceptorManager.java:485)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:479)
            at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:414)
            at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:188)
            at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3839)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
            ... 50 more
            org.jboss.seam.RequiredException: In attribute requires non-null value: action1.action2
            javax.faces.el.EvaluationException: org.jboss.seam.RequiredException: In attribute requires non-null value: action1.action2
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:97)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
            at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
            at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
            Caused by: org.jboss.seam.RequiredException: In attribute requires non-null value: action1.action2
            at org.jboss.seam.Component.getValueToInject(Component.java:1887)
            at org.jboss.seam.Component.injectAttributes(Component.java:1336)
            at org.jboss.seam.Component.inject(Component.java:1163)
            at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
            at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
            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:585)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor$1.run(InterceptorManager.java:485)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:479)
            at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:414)
            at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:188)
            at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3839)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:71)
            at $Proxy228.sayGoodbye(Unknown Source)
            at template.Action1Local$$FastClassByCGLIB$$632c84.invoke()
            at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
            at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
            at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
            at template.Action1Local$$EnhancerByCGLIB$$84a68154.sayGoodbye()
            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:585)
            at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
            at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
            at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
            ... 32 more
            #{action1.sayGoodbye}: org.jboss.seam.RequiredException: In attribute requires non-null value: action1.action2
            javax.faces.FacesException: #{action1.sayGoodbye}: org.jboss.seam.RequiredException: In attribute requires non-null value: action1.action2
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:111)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
            at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
            at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
            Caused by: javax.faces.el.EvaluationException: org.jboss.seam.RequiredException: In attribute requires non-null value: action1.action2
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:97)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
            ... 31 more
            Caused by: org.jboss.seam.RequiredException: In attribute requires non-null value: action1.action2
            at org.jboss.seam.Component.getValueToInject(Component.java:1887)
            at org.jboss.seam.Component.injectAttributes(Component.java:1336)
            at org.jboss.seam.Component.inject(Component.java:1163)
            at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
            at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
            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:585)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor$1.run(InterceptorManager.java:485)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:479)
            at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:414)
            at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:188)
            at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3839)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:71)
            at $Proxy228.sayGoodbye(Unknown Source)
            at template.Action1Local$$FastClassByCGLIB$$632c84.invoke()
            at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
            at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
            at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
            at template.Action1Local$$EnhancerByCGLIB$$84a68154.sayGoodbye()
            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:585)
            at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
            at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
            at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
            ... 32 more
            executePhase(INVOKE_APPLICATION 5,com.sun.faces.context.FacesContextImpl@3fe289) threw exception
            javax.faces.FacesException: #{action1.sayGoodbye}: org.jboss.seam.RequiredException: In attribute requires non-null value: action1.action2
            at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:105)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
            Caused by: javax.faces.FacesException: #{action1.sayGoodbye}: org.jboss.seam.RequiredException: In attribute requires non-null value: action1.action2
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:111)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
            at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
            at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
            ... 27 more
            Caused by: javax.faces.el.EvaluationException: org.jboss.seam.RequiredException: In attribute requires non-null value: action1.action2
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:97)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
            ... 31 more
            Caused by: org.jboss.seam.RequiredException: In attribute requires non-null value: action1.action2
            at org.jboss.seam.Component.getValueToInject(Component.java:1887)
            at org.jboss.seam.Component.injectAttributes(Component.java:1336)
            at org.jboss.seam.Component.inject(Component.java:1163)
            at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
            at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
            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:585)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor$1.run(InterceptorManager.java:485)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:479)
            at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:414)
            at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:188)
            at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3839)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:71)
            at $Proxy228.sayGoodbye(Unknown Source)
            at template.Action1Local$$FastClassByCGLIB$$632c84.invoke()
            at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
            at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
            at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
            at template.Action1Local$$EnhancerByCGLIB$$84a68154.sayGoodbye()
            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:585)
            at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
            at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
            at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
            ... 32 more
            StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
            org.jboss.seam.RequiredException: In attribute requires non-null value: action1.action2
            at org.jboss.seam.Component.getValueToInject(Component.java:1887)
            at org.jboss.seam.Component.injectAttributes(Component.java:1336)
            at org.jboss.seam.Component.inject(Component.java:1163)
            at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
            at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
            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:585)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor$1.run(InterceptorManager.java:485)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:479)
            at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:414)
            at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:188)
            at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3839)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
            at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:71)
            at $Proxy228.sayGoodbye(Unknown Source)
            at template.Action1Local$$FastClassByCGLIB$$632c84.invoke()
            at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
            at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
            at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
            at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
            at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
            at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
            at template.Action1Local$$EnhancerByCGLIB$$84a68154.sayGoodbye()
            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:585)
            at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
            at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
            at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
            at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
            at javax.faces.component.UICommand.broadcast(UICommand.java:383)
            at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
            at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
            at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)


            • 3. Re: Inject EBJ
              Pete Muir Master

              That should be @In(create=true)

              • 4. Re: Inject EBJ
                Kay Arita Newbie

                Thank for your advice.

                "petemuir" wrote:
                That should be @In(create=true)


                I have another problem. I've had the following exception.

                javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local

                Maybe seam can't search the object. I'm using glassfish and jndiPattern is,

                ---
                <context-param>
                <param-name>org.jboss.seam.core.init.jndiPattern</param-name>
                <param-value>java:comp/env/SeamFaceletsTemplate/#{ejbName}/local</param-value>
                </context-param>
                <ejb-local-ref>
                <ejb-ref-name>SeamFaceletsTemplate/Action1Bean/local</ejb-ref-name>
                <ejb-ref-type>Session</ejb-ref-type>
                template.Action1Local
                <ejb-link>Action1Bean</ejb-link>
                </ejb-local-ref>
                <ejb-local-ref>
                <ejb-ref-name>SeamFaceletsTemplate/Action2Bean/local</ejb-ref-name>
                <ejb-ref-type>Session</ejb-ref-type>
                template.Action2Local
                <ejb-link>Action2Bean</ejb-link>
                </ejb-local-ref>

                ---

                When I call <h:commandButton value="Bye" action="#{action1.sayGoodbye}" /> then,

                EJB5018: An exception was thrown during an ejb invocation on [Action1Bean]
                javax.ejb.EJBException
                at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:3730)
                at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3630)
                at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3431)
                at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1247)
                at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:192)
                at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:71)
                at $Proxy268.sayGoodbye(Unknown Source)
                at template.Action1Local$$FastClassByCGLIB$$632c84.invoke()
                at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
                at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
                at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
                at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
                at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
                at template.Action1Local$$EnhancerByCGLIB$$af3e6ef9.sayGoodbye()
                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:585)
                at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
                at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
                at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
                at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
                at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
                at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
                at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
                at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
                at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
                at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
                at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
                at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
                at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
                Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: action2
                at org.jboss.seam.Component.newInstance(Component.java:1708)
                at org.jboss.seam.Component.getInstance(Component.java:1611)
                at org.jboss.seam.Component.getInstance(Component.java:1578)
                at org.jboss.seam.Component.getValueToInject(Component.java:1853)
                at org.jboss.seam.Component.injectAttributes(Component.java:1336)
                at org.jboss.seam.Component.inject(Component.java:1163)
                at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
                at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
                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:585)
                at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor$1.run(InterceptorManager.java:485)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:479)
                at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:414)
                at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:188)
                at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3839)
                at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
                ... 50 more
                Caused by: javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local
                at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:751)
                at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:156)
                at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:307)
                at javax.naming.InitialContext.lookup(InitialContext.java:351)
                at org.jboss.seam.Component.instantiateSessionBean(Component.java:1075)
                at org.jboss.seam.Component.instantiate(Component.java:1061)
                at org.jboss.seam.Component.newInstance(Component.java:1704)
                ... 72 more
                javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local
                javax.faces.el.EvaluationException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local
                at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:97)
                at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
                at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
                at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
                at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
                at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
                at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
                at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
                at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
                at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
                at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
                Caused by: javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local
                at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:751)
                at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:156)
                at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:307)
                at javax.naming.InitialContext.lookup(InitialContext.java:351)
                at org.jboss.seam.Component.instantiateSessionBean(Component.java:1075)
                at org.jboss.seam.Component.instantiate(Component.java:1061)
                at org.jboss.seam.Component.newInstance(Component.java:1704)
                at org.jboss.seam.Component.getInstance(Component.java:1611)
                at org.jboss.seam.Component.getInstance(Component.java:1578)
                at org.jboss.seam.Component.getValueToInject(Component.java:1853)
                at org.jboss.seam.Component.injectAttributes(Component.java:1336)
                at org.jboss.seam.Component.inject(Component.java:1163)
                at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
                at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
                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:585)
                at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor$1.run(InterceptorManager.java:485)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:479)
                at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:414)
                at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:188)
                at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3839)
                at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
                at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:71)
                at $Proxy268.sayGoodbye(Unknown Source)
                at template.Action1Local$$FastClassByCGLIB$$632c84.invoke()
                at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
                at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
                at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
                at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
                at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
                at template.Action1Local$$EnhancerByCGLIB$$af3e6ef9.sayGoodbye()
                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:585)
                at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
                at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
                at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
                ... 32 more
                #{action1.sayGoodbye}: javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local
                javax.faces.FacesException: #{action1.sayGoodbye}: javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local
                at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:111)
                at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
                at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
                at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
                at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
                at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
                at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
                at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
                at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
                at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
                Caused by: javax.faces.el.EvaluationException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local
                at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:97)
                at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
                ... 31 more
                Caused by: javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local
                at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:751)
                at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:156)
                at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:307)
                at javax.naming.InitialContext.lookup(InitialContext.java:351)
                at org.jboss.seam.Component.instantiateSessionBean(Component.java:1075)
                at org.jboss.seam.Component.instantiate(Component.java:1061)
                at org.jboss.seam.Component.newInstance(Component.java:1704)
                at org.jboss.seam.Component.getInstance(Component.java:1611)
                at org.jboss.seam.Component.getInstance(Component.java:1578)
                at org.jboss.seam.Component.getValueToInject(Component.java:1853)
                at org.jboss.seam.Component.injectAttributes(Component.java:1336)
                at org.jboss.seam.Component.inject(Component.java:1163)
                at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
                at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
                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:585)
                at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor$1.run(InterceptorManager.java:485)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:479)
                at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:414)
                at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:188)
                at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3839)
                at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
                at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:71)
                at $Proxy268.sayGoodbye(Unknown Source)
                at template.Action1Local$$FastClassByCGLIB$$632c84.invoke()
                at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
                at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
                at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
                at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
                at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
                at template.Action1Local$$EnhancerByCGLIB$$af3e6ef9.sayGoodbye()
                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:585)
                at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
                at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
                at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
                ... 32 more
                executePhase(INVOKE_APPLICATION 5,com.sun.faces.context.FacesContextImpl@414966) threw exception
                javax.faces.FacesException: #{action1.sayGoodbye}: javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local
                at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:105)
                at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
                at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
                at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
                at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
                at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
                at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
                at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
                Caused by: javax.faces.FacesException: #{action1.sayGoodbye}: javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local
                at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:111)
                at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
                at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
                at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                ... 27 more
                Caused by: javax.faces.el.EvaluationException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local
                at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:97)
                at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
                ... 31 more
                Caused by: javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local
                at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:751)
                at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:156)
                at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:307)
                at javax.naming.InitialContext.lookup(InitialContext.java:351)
                at org.jboss.seam.Component.instantiateSessionBean(Component.java:1075)
                at org.jboss.seam.Component.instantiate(Component.java:1061)
                at org.jboss.seam.Component.newInstance(Component.java:1704)
                at org.jboss.seam.Component.getInstance(Component.java:1611)
                at org.jboss.seam.Component.getInstance(Component.java:1578)
                at org.jboss.seam.Component.getValueToInject(Component.java:1853)
                at org.jboss.seam.Component.injectAttributes(Component.java:1336)
                at org.jboss.seam.Component.inject(Component.java:1163)
                at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
                at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
                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:585)
                at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor$1.run(InterceptorManager.java:485)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:479)
                at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:414)
                at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:188)
                at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3839)
                at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
                at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:71)
                at $Proxy268.sayGoodbye(Unknown Source)
                at template.Action1Local$$FastClassByCGLIB$$632c84.invoke()
                at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
                at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
                at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
                at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
                at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
                at template.Action1Local$$EnhancerByCGLIB$$af3e6ef9.sayGoodbye()
                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:585)
                at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
                at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
                at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
                ... 32 more
                StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
                javax.naming.NameNotFoundException: No object bound to name java:comp/env/SeamFaceletsTemplate/Action2Bean/local
                at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:751)
                at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:156)
                at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:307)
                at javax.naming.InitialContext.lookup(InitialContext.java:351)
                at org.jboss.seam.Component.instantiateSessionBean(Component.java:1075)
                at org.jboss.seam.Component.instantiate(Component.java:1061)
                at org.jboss.seam.Component.newInstance(Component.java:1704)
                at org.jboss.seam.Component.getInstance(Component.java:1611)
                at org.jboss.seam.Component.getInstance(Component.java:1578)
                at org.jboss.seam.Component.getValueToInject(Component.java:1853)
                at org.jboss.seam.Component.injectAttributes(Component.java:1336)
                at org.jboss.seam.Component.inject(Component.java:1163)
                at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
                at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
                at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
                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:585)
                at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor$1.run(InterceptorManager.java:485)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:479)
                at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:414)
                at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:188)
                at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3839)
                at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:184)
                at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:71)
                at $Proxy268.sayGoodbye(Unknown Source)
                at template.Action1Local$$FastClassByCGLIB$$632c84.invoke()
                at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
                at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
                at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
                at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
                at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
                at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
                at template.Action1Local$$EnhancerByCGLIB$$af3e6ef9.sayGoodbye()
                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:585)
                at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
                at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
                at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
                at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
                at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:450)
                at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:759)
                at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
                at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:113)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
                at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
                at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
                at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
                at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
                at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
                at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
                at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)