8 Replies Latest reply on Mar 21, 2011 5:34 AM by Alexei Kildishev

    Runnig Seam 2.2.0 GA Application on Tomcat 6.0.32

    Alexei Kildishev Newbie

      Hello.
      I'm trying to move my seam application from jBoss AS 4.2.2 GA to Tomcat 6.0.32 with no luck :).
      I guess I made everything by guide from wiki. But when I'm trying get access to may app  via browser, I'm getting this error:



      ERROR [Exceptions] handled and logged exception
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: login
           at org.jboss.seam.Component.newInstance(Component.java:2144)
           at org.jboss.seam.Component.getInstance(Component.java:2021)
           at org.jboss.seam.Component.getInstance(Component.java:1983)
           at org.jboss.seam.Component.getInstance(Component.java:1977)
           at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
           at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
           at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:148)
           at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:51)
           at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
           at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
           at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
           at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
           at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
           at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
           at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:175)
           at org.jboss.seam.navigation.Page.preRender(Page.java:311)
           at org.jboss.seam.navigation.Pages.preRender(Pages.java:350)
           at org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:561)
           at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:472)
           at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:148)
           at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:118)
           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
           at java.lang.Thread.run(Thread.java:636)
      Caused by: javax.naming.NameNotFoundException: Name @ejbJndiPattern@ is not bound in this Context
           at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
           at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
           at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:616)
           at org.jboss.embedded.jndi.BridgeContext.invoke(BridgeContext.java:77)
           at $Proxy149.lookup(Unknown Source)
           at javax.naming.InitialContext.lookup(InitialContext.java:409)
           at org.jboss.seam.Component.instantiateSessionBean(Component.java:1400)
           at org.jboss.seam.Component.instantiate(Component.java:1364)
           at org.jboss.seam.Component.newInstance(Component.java:2122)
           ... 52 more



      Any ideas?

        • 1. Re: Runnig Seam 2.2.0 GA Application on Tomcat 6.0.32
          Yasser Hawari Newbie

          what is @ejbJndiPattern@  .. is it ur componens xml. u know that u should not have EJBs in ur tomcat app.


          have a look at jpa project in seam examples. it runs on tomcat. u can compare ur settings to that.

          • 2. Re: Runnig Seam 2.2.0 GA Application on Tomcat 6.0.32
            Alexei Kildishev Newbie

            Hi, Yasser. Yes, this is from my components.xml:


            <core:init debug="true" jndi-pattern="@ejbJndiPattern@" transaction-management-enabled="false"
            ></core:init>
            



            But without this record, I'm getting this due deploying:


            SEVERE: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
            java.lang.RuntimeException: Could not create Component: authenticator
                    at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1202)
                    at org.jboss.seam.init.Initialization.installComponents(Initialization.java:1118)
                    at org.jboss.seam.init.Initialization.init(Initialization.java:733)
                    at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
                    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)
                    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
                    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
                    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
                    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
                    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
                    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:563)
                    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1397)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    at java.lang.reflect.Method.invoke(Method.java:616)
                    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
                    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:857)
                    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795)
                    at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1500)
                    at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:670)
                    at org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:435)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
                    at java.lang.Thread.run(Thread.java:636)
            Caused by: java.lang.IllegalArgumentException: You must specify org.jboss.seam.core.init.jndiPattern or use @JndiName: authenticator
                    at org.jboss.seam.Component.getJndiName(Component.java:451)
                    at org.jboss.seam.Component.<init>(Component.java:233)
                    at org.jboss.seam.Component.<init>(Component.java:205)
                    at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1186)
                    ... 36 more
            


            I'm trying this code to specify jndi pattern


            <core:init debug="true" jndi-pattern="java:comp/env/#{ejbName}" transaction-management-enabled="false"
            />
            



            But then




            ERROR [Exceptions] handled and logged exception
            org.jboss.seam.InstantiationException: Could not instantiate Seam component: login
                    at org.jboss.seam.Component.newInstance(Component.java:2144)
                    at org.jboss.seam.Component.getInstance(Component.java:2021)
                    at org.jboss.seam.Component.getInstance(Component.java:1983)
                    at org.jboss.seam.Component.getInstance(Component.java:1977)
                    at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
                    at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
                    at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:148)
                    at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:51)
                    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
                    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
                    at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
                    at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
                    at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
                    at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                    at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:175)
                    at org.jboss.seam.navigation.Page.preRender(Page.java:311)
                    at org.jboss.seam.navigation.Pages.preRender(Pages.java:350)
                    at org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:561)
                    at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:472)
                    at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:148)
                    at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:118)
                    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
                    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                    at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                    at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
                    at java.lang.Thread.run(Thread.java:636)
            Caused by: javax.naming.NameNotFoundException: Name java:comp is not bound in this Context
                    at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
                    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
                    at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)
                    at org.jboss.embedded.tomcat.jndi.ENCFactory.getObjectInstance(ENCFactory.java:74)
                    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
                    at javax.naming.spi.NamingManager.getContext(NamingManager.java:439)
                    at javax.naming.spi.ContinuationContext.getTargetContext(ContinuationContext.java:55)
                    at javax.naming.spi.NamingManager.getContinuationContext(NamingManager.java:787)
                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:775)
                    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
                    at javax.naming.InitialContext.lookup(InitialContext.java:409)
                    at org.jboss.seam.Component.instantiateSessionBean(Component.java:1400)
                    at org.jboss.seam.Component.instantiate(Component.java:1364)
                    at org.jboss.seam.Component.newInstance(Component.java:2122)
                    ... 52 more
            
            
            



            • 3. Re: Runnig Seam 2.2.0 GA Application on Tomcat 6.0.32
              xsa lefter Newbie

              You can see Dan Allen's guide here . Another nice explanation is here .

              • 4. Re: Runnig Seam 2.2.0 GA Application on Tomcat 6.0.32
                xsa lefter Newbie

                xsa lefter wrote on Mar 16, 2011 22:27:


                You can see Dan Allen's guide here . Another nice explanation is here .


                Uppss.. Typo. The second link what i mean is this one .

                • 5. Re: Runnig Seam 2.2.0 GA Application on Tomcat 6.0.32
                  Alexei Kildishev Newbie

                  In fact I dont use persistence, so I dont need any entityManager, JDBC DS and so on.
                  So, my in my case I used


                  
                  <transformation:no-transaction />
                  
                  



                  in my components.xml.
                  As for jars and logs, there is no differense between these guides and my config.





                  • 6. Re: Runnig Seam 2.2.0 GA Application on Tomcat 6.0.32
                    Alexei Kildishev Newbie

                    According to Chapter 30.1.5, I made this:


                    in componetns.xml


                       <core:init debug="true" jndi-pattern="#{ejbName}/local" transaction-management-enabled="false" />
                    



                    in web.xml


                        <ejb-local-ref>
                            <ejb-ref-name>LoginActionBean/local</ejb-ref-name>
                            <ejb-ref-type>Session</ejb-ref-type>
                            <local>org.bmstu.grantsystem.action.LoginAction</local>
                        </ejb-local-ref>
                    
                    



                    So, due deploying log show this:


                    [Component] Component: login, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.bmstu.grantsystem.action.LoginActionBean, JNDI: LoginActionBean/local
                    
                    



                    But, when I'm trying to get access to apllication via browser, I'm getting this:


                    ERROR [Exceptions] handled and logged exception
                    org.jboss.seam.InstantiationException: Could not instantiate Seam component: login
                         at org.jboss.seam.Component.newInstance(Component.java:2144)
                         at org.jboss.seam.Component.getInstance(Component.java:2021)
                         at org.jboss.seam.Component.getInstance(Component.java:1983)
                         at org.jboss.seam.Component.getInstance(Component.java:1977)
                         at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
                         at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
                         at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:148)
                         at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:51)
                         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
                         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
                         at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
                         at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
                         at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
                         at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                         at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:175)
                         at org.jboss.seam.navigation.Page.preRender(Page.java:311)
                         at org.jboss.seam.navigation.Pages.preRender(Pages.java:350)
                         at org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:561)
                         at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:472)
                         at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:148)
                         at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:118)
                         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
                         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
                         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                         at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                         at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                         at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                         at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                         at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                         at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
                         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                         at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
                         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
                         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
                         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
                         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
                         at java.lang.Thread.run(Thread.java:636)
                    Caused by: javax.naming.NameNotFoundException: Name LoginActionBean is not bound in this Context
                         at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
                         at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
                         at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)
                         at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                         at java.lang.reflect.Method.invoke(Method.java:616)
                         at org.jboss.embedded.jndi.BridgeContext.invoke(BridgeContext.java:77)
                         at $Proxy251.lookup(Unknown Source)
                         at javax.naming.InitialContext.lookup(InitialContext.java:409)
                         at org.jboss.seam.Component.instantiateSessionBean(Component.java:1400)
                         at org.jboss.seam.Component.instantiate(Component.java:1364)
                         at org.jboss.seam.Component.newInstance(Component.java:2122)
                         ... 52 more
                    




                    • 7. Re: Runnig Seam 2.2.0 GA Application on Tomcat 6.0.32
                      Marcio Dantas Newbie

                      Tomcat isn't a EJB Container. It's just a web container.


                      I think you should stop using your beans as EJB and start using simple pojo as seam components.



                      In components.xml, remove just the jndi part of the core:init tag, like below:


                      <core:init debug="true" transaction-management-enabled="false"/>


                      • 8. Re: Runnig Seam 2.2.0 GA Application on Tomcat 6.0.32
                        Alexei Kildishev Newbie

                        Márcio Dantas wrote on Mar 18, 2011 17:10:


                        In components.xml, remove just the jndi part of the core:init tag, like below:

                        <core:init debug="true" transaction-management-enabled="false"/>




                        In this case I'm getting exception from my first post:




                        SEVERE: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
                        java.lang.RuntimeException: Could not create Component: authenticator
                                at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1202)
                                at org.jboss.seam.init.Initialization.installComponents(Initialization.java:1118)
                                at org.jboss.seam.init.Initialization.init(Initialization.java:733)
                                at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
                                at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)
                                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
                                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
                                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
                                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
                                at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
                                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:563)
                                at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1397)
                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                                at java.lang.reflect.Method.invoke(Method.java:616)
                                at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
                                at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:857)
                                at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795)
                                at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1500)
                                at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:670)
                                at org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:435)
                                at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
                                at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
                                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
                                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
                                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
                                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
                                at java.lang.Thread.run(Thread.java:636)
                        Caused by: java.lang.IllegalArgumentException: You must specify org.jboss.seam.core.init.jndiPattern or use @JndiName: authenticator
                                at org.jboss.seam.Component.getJndiName(Component.java:451)
                                at org.jboss.seam.Component.<init>(Component.java:233)
                                at org.jboss.seam.Component.<init>(Component.java:205)
                                at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1186)
                                ... 36 more