2 Replies Latest reply on Jun 20, 2009 10:21 PM by Walter White

    No active event context, simple web app

    Walter White Novice

      Hi all,


      I have been unsuccessful in getting Seam up and running.  I am using maven for dependency management as well as building the war and deploying to a jetty server for testing.  I have a few custom servlet filters as well as a ServletRequestListener which make use of the ContextualHttpServletRequest class to access Seam components.  Even with those components disabled, I still get the IllegalStateException - No active event context.


      Stepping through the stack trace, I see this exception is thrown when the ContextualHttpServletRequest attempts to close the context.  I am guessing that there must be another ContextualHttpServletRequest that already closed the context or some other event caused the context to be closed.


      Any ideas on what to check?


      The Stack Trace:




      java.lang.IllegalStateException: No active event context
              at org.jboss.seam.core.Manager.instance(Manager.java:368)
              at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:55)
              at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
              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.web.LoggingFilter.doFilter(LoggingFilter.java:60)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1139)
              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:378)
              at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
              at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
              at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
              at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
              at org.mortbay.jetty.Server.handle(Server.java:324)
              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:865)
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
              at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)






      Walter

        • 1. Re: No active event context, simple web app
          Walter White Novice

          Here is the full stack trace set at log level trace:


          
          22:09:01,879 TRACE [Scanner] found META-INF/MANIFEST.MF
          22:09:01,879 TRACE [Scanner] found log4j.xml
          22:09:01,879 TRACE [Scanner] found activate.xhtml
          22:09:01,879 TRACE [Scanner] found changePassword.xhtml
          22:09:01,880 TRACE [Scanner] found login.xhtml
          22:09:01,880 TRACE [URLScanner] handling directory: /export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/pageflows
          22:09:01,880 TRACE [Scanner] found pageflows/authenticationPageFlow.jpdl.xml
          22:09:01,880 TRACE [URLScanner] handling directory: /export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/administrator
          22:09:01,880 TRACE [Scanner] found administrator/uploadImages.xhtml
          22:09:01,880 TRACE [Scanner] found administrator/users.xhtml
          22:09:01,880 TRACE [Scanner] found seam.quartz.properties
          22:09:01,880 TRACE [Scanner] found error.xhtml
          22:09:01,880 TRACE [Scanner] found components.properties
          22:09:01,881 TRACE [Scanner] found unavailable.xhtml
          22:09:01,881 TRACE [URLScanner] handling directory: /export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/reports
          22:09:01,881 TRACE [Scanner] found reports/vacationSummary.xhtml
          22:09:01,881 TRACE [Scanner] found reports/siteActivity.xhtml
          22:09:01,881 TRACE [Scanner] found reports/vacationExcelReport.xhtml
          22:09:01,881 TRACE [Scanner] found contact.xhtml
          22:09:01,881 TRACE [Scanner] found ehcache.xml
          22:09:01,881 TRACE [URLScanner] handling directory: /export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/email
          22:09:01,881 TRACE [URLScanner] handling directory: /export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/email/template
          22:09:01,881 TRACE [Scanner] found email/template/default.xhtml
          22:09:01,881 TRACE [URLScanner] handling directory: /export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/email/user
          22:09:01,882 TRACE [Scanner] found email/user/requestPasswordReset.xhtml
          22:09:01,882 TRACE [Scanner] found email/user/newsletter.xhtml
          22:09:01,882 TRACE [Scanner] found email/user/accountRegistered.xhtml
          22:09:01,882 TRACE [Scanner] found email/user/contact.xhtml
          22:09:01,882 TRACE [Scanner] found email/user/passwordChanged.xhtml
          22:09:01,882 TRACE [Scanner] found email/user/accountActivated.xhtml
          22:09:01,882 TRACE [Scanner] found email/exception.xhtml
          22:09:01,882 TRACE [Scanner] found resetPassword.xhtml
          22:09:01,882 TRACE [Scanner] found test.html
          22:09:01,882 TRACE [Scanner] found menu.xhtml
          22:09:01,882 TRACE [Scanner] found requestPasswordReset.xhtml
          22:09:01,882 TRACE [URLScanner] handling directory: /export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/style
          22:09:01,883 TRACE [Scanner] found style/default.css
          22:09:01,883 TRACE [Scanner] found home.xhtml
          22:09:01,883 TRACE [Scanner] found favicon.ico
          22:09:01,885 DEBUG [ContextualHttpServletRequest] beginning request
          22:09:01,885 DEBUG [ServletLifecycle] >>> Begin web request
          22:09:01,885 TRACE [Component] instantiating Seam component: org.jboss.seam.web.servletContexts
          22:09:01,886 TRACE [Component] instantiating Seam component: org.jboss.seam.core.events
          22:09:01,886 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.events
          22:09:01,886 TRACE [Component] initializing new instance of: org.jboss.seam.core.events
          22:09:01,886 TRACE [Component] done initializing: org.jboss.seam.core.events
          22:09:01,886 TRACE [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.events
          22:09:01,886 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.web.servletContexts
          22:09:01,886 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.web.servletContexts
          22:09:01,886 TRACE [Component] initializing new instance of: org.jboss.seam.web.servletContexts
          22:09:01,886 TRACE [Component] done initializing: org.jboss.seam.web.servletContexts
          22:09:01,886 TRACE [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.web.servletContexts
          22:09:01,886 TRACE [Component] instantiating Seam component: org.jboss.seam.core.conversationPropagation
          22:09:01,886 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.conversationPropagation
          22:09:01,886 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.conversationPropagation
          22:09:01,886 TRACE [Component] initializing new instance of: org.jboss.seam.core.conversationPropagation
          22:09:01,886 TRACE [Component] done initializing: org.jboss.seam.core.conversationPropagation
          22:09:01,886 TRACE [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.conversationPropagation
          22:09:01,886 TRACE [Component] instantiating Seam component: org.jboss.seam.core.manager
          22:09:01,886 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager
          22:09:01,886 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.manager
          22:09:01,886 TRACE [Component] initializing new instance of: org.jboss.seam.core.manager
          22:09:01,887 TRACE [Component] done initializing: org.jboss.seam.core.manager
          22:09:01,887 TRACE [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.manager
          22:09:01,887 TRACE [ConversationPropagation] Found conversation id in request parameter: null
          22:09:01,887 DEBUG [Manager] No stored conversation
          22:09:01,887 TRACE [Contexts] found in application context: org.jboss.seam.core.ConversationIdGenerator
          22:09:01,887 TRACE [RootInterceptor] intercepted: org.jboss.seam.core.ConversationIdGenerator.getNextId
          22:09:01,887 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.ConversationIdGenerator
          22:09:01,887 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.ConversationIdGenerator
          22:09:01,887 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.this
          22:09:01,887 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.this
          22:09:01,887 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.method
          22:09:01,887 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.method
          22:09:01,887 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.parameters
          22:09:01,887 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.parameters
          22:09:01,887 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.component
          22:09:01,887 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.component
          22:09:01,895 TRACE [SeamPhaseListener] before phase: RESTORE_VIEW 1
          22:09:01,896 DEBUG [FacesLifecycle] >>> Begin JSF request for /index.seam
          22:09:01,898 TRACE [Component] instantiating Seam component: org.jboss.seam.transaction.transaction
          22:09:01,898 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.transaction.transaction
          22:09:01,898 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.transaction.transaction
          22:09:01,898 TRACE [Component] initializing new instance of: org.jboss.seam.transaction.transaction
          22:09:01,898 TRACE [Component] done initializing: org.jboss.seam.transaction.transaction
          22:09:01,898 TRACE [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.transaction.transaction
          22:09:01,898 TRACE [Events] Processing event:org.jboss.seam.beforePhase
          22:09:01,936 TRACE [Component] instantiating Seam component: org.jboss.seam.international.localeSelector
          22:09:01,937 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.international.localeSelector
          22:09:01,937 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.international.localeSelector
          22:09:01,937 TRACE [Component] initializing new instance of: org.jboss.seam.international.localeSelector
          22:09:01,937 TRACE [Component] done initializing: org.jboss.seam.international.localeSelector
          22:09:01,937 TRACE [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.international.localeSelector
          22:09:01,939 TRACE [SeamPhaseListener] after phase: RESTORE_VIEW 1
          22:09:01,939 TRACE [Events] Processing event:org.jboss.seam.afterPhase
          22:09:01,941 TRACE [Component] instantiating Seam component: org.jboss.seam.faces.facesPage
          22:09:01,941 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.faces.facesPage
          22:09:01,941 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.faces.facesPage
          22:09:01,941 TRACE [Component] initializing new instance of: org.jboss.seam.faces.facesPage
          22:09:01,941 TRACE [Component] done initializing: org.jboss.seam.faces.facesPage
          22:09:01,941 TRACE [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.faces.facesPage
          22:09:01,941 DEBUG [Manager] No stored conversation
          22:09:01,941 TRACE [Contexts] found in application context: org.jboss.seam.core.ConversationIdGenerator
          22:09:01,941 TRACE [RootInterceptor] intercepted: org.jboss.seam.core.ConversationIdGenerator.getNextId
          22:09:01,941 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.ConversationIdGenerator
          22:09:01,941 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.ConversationIdGenerator
          22:09:01,947 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.this
          22:09:01,948 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.this
          22:09:01,948 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.method
          22:09:01,948 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.method
          22:09:01,948 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.parameters
          22:09:01,948 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.parameters
          22:09:01,948 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.component
          22:09:01,948 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.component
          22:09:01,949 DEBUG [Resources] Loaded resource from context classloader: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jboss-seam-debug-2.1.2.jar!/META-INF/debug.xhtml
          22:09:01,950 TRACE [Component] instantiating Seam component: org.jboss.seam.web.parameters
          22:09:01,950 TRACE [Component] initializing new instance of: org.jboss.seam.web.parameters
          22:09:01,950 TRACE [Component] done initializing: org.jboss.seam.web.parameters
          22:09:01,951 DEBUG [Resources] Loaded resource from context classloader: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jboss-seam-debug-2.1.2.jar!/META-INF/debug.xhtml
          22:09:01,951 TRACE [Component] instantiating Seam component: org.jboss.seam.international.statusMessages
          22:09:01,951 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.international.statusMessages
          22:09:01,951 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.international.statusMessages
          22:09:01,951 TRACE [Component] initializing new instance of: org.jboss.seam.international.statusMessages
          22:09:01,951 TRACE [Component] done initializing: org.jboss.seam.international.statusMessages
          22:09:01,951 TRACE [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.international.statusMessages
          22:09:01,952 DEBUG [Resources] Loaded resource from context classloader: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jboss-seam-debug-2.1.2.jar!/META-INF/debug.xhtml
          22:09:01,952 TRACE [SeamPhaseListener] before phase: RENDER_RESPONSE 6
          22:09:01,952 DEBUG [SeamPhaseListener] beginning transaction prior to phase: RENDER_RESPONSE 6
          22:09:01,952 DEBUG [EntityTransaction] beginning JPA resource-local transaction
          22:09:01,953 TRACE [Component] instantiating Seam component: entityManager
          22:09:01,953 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.entityManager
          22:09:01,953 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.entityManager
          22:09:01,953 TRACE [Component] initializing new instance of: entityManager
          22:09:01,953 TRACE [Component] done initializing: entityManager
          22:09:01,953 TRACE [Component] instantiating Seam component: org.jboss.seam.persistence.persistenceContexts
          22:09:01,953 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.persistence.persistenceContexts
          22:09:01,953 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.persistence.persistenceContexts
          22:09:01,953 TRACE [Component] initializing new instance of: org.jboss.seam.persistence.persistenceContexts
          22:09:01,953 TRACE [Component] done initializing: org.jboss.seam.persistence.persistenceContexts
          22:09:01,953 TRACE [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.persistence.persistenceContexts
          22:09:01,953 TRACE [Events] Processing event:org.jboss.seam.postCreate.entityManager
          22:09:01,954 TRACE [Contexts] found in application context: entityManagerFactory
          22:09:01,962 TRACE [Component] instantiating Seam component: org.jboss.seam.persistence.persistenceProvider
          22:09:01,970 TRACE [Component] instantiating Seam component: org.jboss.seam.core.interpolator
          22:09:01,970 TRACE [Component] initializing new instance of: org.jboss.seam.core.interpolator
          22:09:01,970 TRACE [Component] done initializing: org.jboss.seam.core.interpolator
          22:09:01,970 DEBUG [HibernatePersistenceProvider] Hibernate Search is available :-)
          22:09:01,970 TRACE [Component] initializing new instance of: org.jboss.seam.persistence.persistenceProvider
          22:09:01,970 TRACE [Component] done initializing: org.jboss.seam.persistence.persistenceProvider
          22:09:01,972 TRACE [Contexts] found in conversation context: org.jboss.seam.persistence.persistenceContexts
          22:09:02,005 DEBUG [ManagedPersistenceContext] created seam managed persistence context from EntityManagerFactory
          22:09:02,007 TRACE [Component] instantiating Seam component: org.jboss.seam.transaction.synchronizations
          22:09:02,007 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.transaction.synchronizations
          22:09:02,007 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.transaction.synchronizations
          22:09:02,007 TRACE [Component] initializing new instance of: org.jboss.seam.transaction.synchronizations
          22:09:02,007 TRACE [Component] done initializing: org.jboss.seam.transaction.synchronizations
          22:09:02,007 TRACE [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.transaction.synchronizations
          22:09:02,008 TRACE [Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.faces.switcher
          22:09:02,008 TRACE [Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.faces.switcher
          22:09:02,008 TRACE [Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.conversationList
          22:09:02,008 TRACE [Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.conversationList
          22:09:02,008 TRACE [Events] Processing event:org.jboss.seam.preRemoveVariable.org.jboss.seam.core.conversationStack
          22:09:02,008 TRACE [Events] Processing event:org.jboss.seam.postRemoveVariable.org.jboss.seam.core.conversationStack
          22:09:02,009 DEBUG [Resources] Loaded resource from context classloader: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jboss-seam-debug-2.1.2.jar!/META-INF/debug.xhtml
          22:09:02,009 TRACE [Component] instantiating Seam component: org.jboss.seam.core.conversation
          22:09:02,009 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.conversation
          22:09:02,009 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.core.conversation
          22:09:02,009 TRACE [Component] initializing new instance of: org.jboss.seam.core.conversation
          22:09:02,009 TRACE [Component] done initializing: org.jboss.seam.core.conversation
          22:09:02,009 TRACE [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.core.conversation
          22:09:02,010 TRACE [Contexts] found in conversation context: org.jboss.seam.persistence.persistenceContexts
          22:09:02,010 TRACE [Component] instantiating Seam component: org.jboss.seam.persistence.persistenceProvider
          22:09:02,010 TRACE [Component] initializing new instance of: org.jboss.seam.persistence.persistenceProvider
          22:09:02,010 TRACE [Component] done initializing: org.jboss.seam.persistence.persistenceProvider
          22:09:02,010 TRACE [Contexts] found in conversation context: org.jboss.seam.persistence.persistenceContexts
          22:09:02,010 TRACE [Component] instantiating Seam component: org.jboss.seam.persistence.persistenceProvider
          22:09:02,011 TRACE [Component] initializing new instance of: org.jboss.seam.persistence.persistenceProvider
          22:09:02,011 TRACE [Component] done initializing: org.jboss.seam.persistence.persistenceProvider
          22:09:02,011 TRACE [Component] instantiating Seam component: org.jboss.seam.persistence.persistenceProvider
          22:09:02,011 TRACE [Component] initializing new instance of: org.jboss.seam.persistence.persistenceProvider
          22:09:02,011 TRACE [Component] done initializing: org.jboss.seam.persistence.persistenceProvider
          22:09:02,011 TRACE [Component] instantiating Seam component: org.jboss.seam.persistence.persistenceProvider
          22:09:02,011 TRACE [Component] initializing new instance of: org.jboss.seam.persistence.persistenceProvider
          22:09:02,011 TRACE [Component] done initializing: org.jboss.seam.persistence.persistenceProvider
          22:09:02,016 TRACE [Events] Processing event:org.jboss.seam.beforePhase
          22:09:02,016 TRACE [Component] instantiating Seam component: org.jboss.seam.web.parameters
          22:09:02,016 TRACE [Component] initializing new instance of: org.jboss.seam.web.parameters
          22:09:02,016 TRACE [Component] done initializing: org.jboss.seam.web.parameters
          22:09:02,191 INFO  [compiler] Added Library from: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar!/META-INF/jsf-core.taglib.xml
          22:09:02,196 INFO  [compiler] Added Library from: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar!/META-INF/jsf-html.taglib.xml
          22:09:02,205 INFO  [compiler] Added Library from: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar!/META-INF/jsf-ui.taglib.xml
          22:09:02,215 INFO  [compiler] Added Library from: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar!/META-INF/jstl-core.taglib.xml
          22:09:02,220 INFO  [compiler] Added Library from: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jsf-facelets-1.1.15.B1.jar!/META-INF/jstl-fn.taglib.xml
          22:09:02,233 INFO  [compiler] Added Library from: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/a4j.taglib.xml
          22:09:02,237 INFO  [compiler] Added Library from: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/jsp.taglib.xml
          22:09:02,289 INFO  [compiler] Added Library from: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/ajax4jsf.taglib.xml
          22:09:02,326 INFO  [compiler] Added Library from: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/rich.taglib.xml
          22:09:02,338 INFO  [compiler] Added Library from: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/richfaces.taglib.xml
          22:09:02,351 INFO  [compiler] Added Library from: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jboss-seam-ui-2.1.2.jar!/META-INF/s.taglib.xml
          22:09:02,355 INFO  [compiler] Added Library from: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jboss-seam-mail-2.1.2.jar!/META-INF/seam-mail.taglib.xml
          22:09:02,453 DEBUG [RewritingResponse] encodeURL /index.seam -> /index.seam
          22:09:02,454 TRACE [Component] Seam component not found: identity
          22:09:02,454 TRACE [Component] Seam component not found: org.jboss.seam.core.identity
          22:09:02,454 TRACE [Component] Seam component not found: org.jboss.seam.cache.identity
          22:09:02,454 TRACE [Component] Seam component not found: org.jboss.seam.transaction.identity
          22:09:02,454 TRACE [Component] Seam component not found: org.jboss.seam.framework.identity
          22:09:02,455 TRACE [Component] Seam component not found: org.jboss.seam.web.identity
          22:09:02,455 TRACE [Component] Seam component not found: org.jboss.seam.faces.identity
          22:09:02,455 TRACE [Component] Seam component not found: org.jboss.seam.international.identity
          22:09:02,455 TRACE [Component] Seam component not found: org.jboss.seam.theme.identity
          22:09:02,455 TRACE [Component] Seam component not found: org.jboss.seam.pageflow.identity
          22:09:02,455 TRACE [Component] Seam component not found: org.jboss.seam.bpm.identity
          22:09:02,455 TRACE [Component] Seam component not found: org.jboss.seam.jms.identity
          22:09:02,455 TRACE [Component] Seam component not found: org.jboss.seam.mail.identity
          22:09:02,455 TRACE [Contexts] found in session context: org.jboss.seam.security.identity
          22:09:02,458 DEBUG [Resources] Loaded resource from context classloader: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jboss-seam-debug-2.1.2.jar!/META-INF/debug.xhtml
          22:09:02,462 TRACE [Component] instantiating Seam component: org.jboss.seam.navigation.safeActions
          22:09:02,462 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.navigation.safeActions
          22:09:02,462 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.navigation.safeActions
          22:09:02,462 TRACE [Component] initializing new instance of: org.jboss.seam.navigation.safeActions
          22:09:02,462 TRACE [Component] done initializing: org.jboss.seam.navigation.safeActions
          22:09:02,462 TRACE [Events] Processing event:org.jboss.seam.postCreate.org.jboss.seam.navigation.safeActions
          22:09:02,466 DEBUG [RewritingResponse] encodeURL http://localhost:8080/index.seam?actionMethod=index.xhtml%3Aidentity.logout&cid=4 -> http://localhost:8080/index.seam?actionMethod=index.xhtml%3Aidentity.logout&cid=4
          22:09:02,469 DEBUG [Resources] Loaded resource from context classloader: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jboss-seam-debug-2.1.2.jar!/META-INF/debug.xhtml
          22:09:02,469 DEBUG [RewritingResponse] encodeURL http://localhost:8080/changePassword.seam -> http://localhost:8080/changePassword.seam
          22:09:02,470 DEBUG [Resources] Loaded resource from context classloader: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jboss-seam-debug-2.1.2.jar!/META-INF/debug.xhtml
          22:09:02,470 DEBUG [RewritingResponse] encodeURL https://localhost:8443/contact.seam -> https://localhost:8443/contact.seam
          22:09:02,471 DEBUG [Resources] Loaded resource from context classloader: jar:file:/export/projects/workspaces/development/trunk/web/WalterJWhite.com/WalterJWhite-web/target/work/webapp/WEB-INF/lib/jboss-seam-debug-2.1.2.jar!/META-INF/debug.xhtml
          22:09:02,471 DEBUG [RewritingResponse] encodeURL https://localhost:8443/login.seam -> https://localhost:8443/login.seam
          22:09:02,479 TRACE [SeamPhaseListener] after phase: RENDER_RESPONSE 6
          22:09:02,479 TRACE [Events] Processing event:org.jboss.seam.afterPhase
          22:09:02,479 DEBUG [SeamPhaseListener] committing transaction after phase: RENDER_RESPONSE 6
          22:09:02,480 DEBUG [EntityTransaction] committing JPA resource-local transaction
          22:09:02,480 TRACE [Events] Processing event:org.jboss.seam.beforeTransactionCompletion
          22:09:02,481 TRACE [Events] Processing event:org.jboss.seam.afterTransactionCompletion
          22:09:02,481 TRACE [Contexts] found in conversation context: org.jboss.seam.persistence.persistenceContexts
          22:09:02,481 DEBUG [Manager] Discarding conversation state: 4
          22:09:02,481 DEBUG [FacesLifecycle] After render response, destroying contexts
          22:09:02,481 DEBUG [Contexts] destroying business process context
          22:09:02,481 TRACE [Events] Processing event:org.jboss.seam.preDestroyContext.BUSINESS_PROCESS
          22:09:02,481 TRACE [Events] Processing event:org.jboss.seam.postDestroyContext.BUSINESS_PROCESS
          22:09:02,481 DEBUG [Contexts] destroying conversation context
          22:09:02,481 TRACE [Events] Processing event:org.jboss.seam.preDestroyContext.CONVERSATION
          22:09:02,481 DEBUG [Contexts] destroying: org.jboss.seam.persistence.persistenceContexts
          22:09:02,482 TRACE [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.persistence.persistenceContexts
          22:09:02,482 DEBUG [Contexts] destroying: org.jboss.seam.core.conversation
          22:09:02,482 TRACE [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.conversation
          22:09:02,482 DEBUG [Contexts] destroying: org.jboss.seam.international.statusMessages
          22:09:02,482 TRACE [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.international.statusMessages
          22:09:02,482 DEBUG [Contexts] destroying: entityManager
          22:09:02,482 TRACE [Events] Processing event:org.jboss.seam.preDestroy.entityManager
          22:09:02,482 DEBUG [ManagedPersistenceContext] destroying seam managed persistence context for persistence unit: java:/entityManager
          22:09:02,484 TRACE [Contexts] found in conversation context: org.jboss.seam.persistence.persistenceContexts
          22:09:02,485 TRACE [Events] Processing event:org.jboss.seam.postDestroyContext.CONVERSATION
          22:09:02,485 DEBUG [Contexts] flushing server-side conversation context
          22:09:02,492 DEBUG [Contexts] flushing session context
          22:09:02,492 TRACE [Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.web.session
          22:09:02,493 TRACE [Events] Processing event:org.jboss.seam.postSetVariable.org.jboss.seam.web.session
          22:09:02,493 DEBUG [Contexts] destroying event context
          22:09:02,493 TRACE [Events] Processing event:org.jboss.seam.preDestroyContext.EVENT
          22:09:02,493 DEBUG [Contexts] destroying: org.jboss.seam.core.conversationPropagation
          22:09:02,493 TRACE [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.conversationPropagation
          22:09:02,493 DEBUG [Contexts] destroying: com.sun.faces.ContentTypeIsHTML
          22:09:02,493 DEBUG [Contexts] destroying: org.ajax4jsf.captured_view_state
          22:09:02,493 DEBUG [Contexts] destroying: facelets.Encoding
          22:09:02,493 DEBUG [Contexts] destroying: org.jboss.seam.core.manager
          22:09:02,493 TRACE [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.manager
          22:09:02,493 DEBUG [Contexts] destroying: com.sun.faces.renderKitImplForRequest
          22:09:02,493 DEBUG [Contexts] destroying: com.sun.faces.FacesContextImpl
          22:09:02,493 DEBUG [Contexts] destroying: org.jboss.seam.transaction.transaction
          22:09:02,493 TRACE [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.transaction.transaction
          22:09:02,493 DEBUG [Contexts] destroying: com.sun.faces.INVOCATION_PATH
          22:09:02,493 DEBUG [Contexts] destroying: org.jboss.seam.transaction.synchronizations
          22:09:02,494 TRACE [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.transaction.synchronizations
          22:09:02,494 DEBUG [Contexts] destroying: org.jboss.seam.web.servletContexts
          22:09:02,494 TRACE [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.web.servletContexts
          22:09:02,494 DEBUG [Contexts] destroying: com.sun.faces.ExternalContextImpl
          22:09:02,494 DEBUG [Contexts] destroying: org.jboss.seam.web.requestContextPath
          22:09:02,494 DEBUG [Contexts] destroying: org.jboss.seam.core.events
          22:09:02,494 TRACE [Events] Processing event:org.jboss.seam.preDestroy.org.jboss.seam.core.events
          22:09:02,494 DEBUG [Contexts] destroying: org.jboss.seam.web.requestServletPath
          22:09:02,494 DEBUG [Contexts] destroying: ajaxContext
          22:09:02,494 DEBUG [Contexts] destroying: org.ajax4jsf.application.AjaxStateManager.VIEW_SEQUENCE
          22:09:02,494 TRACE [Events] Processing event:org.jboss.seam.postDestroyContext.EVENT
          22:09:02,494 DEBUG [FacesLifecycle] <<< End JSF request for /index.seam
          22:09:02,494 DEBUG [Lifecycle] After request, destroying contexts
          22:09:02,495 DEBUG [Lifecycle] <<< End web request
          22:09:02,495 DEBUG [ContextualHttpServletRequest] ended request due to exception
          22:09:02,495 DEBUG [ContextualHttpServletRequest] ended request
          2009-06-18 22:09:02.495::WARN:  /index.seam
          java.lang.IllegalStateException: No active event context
                  at org.jboss.seam.core.Manager.instance(Manager.java:368)
                  at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:55)
                  at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                  at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
                  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.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.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1139)
                  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:378)
                  at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
                  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
                  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
                  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
                  at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
                  at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
                  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                  at org.mortbay.jetty.Server.handle(Server.java:324)
                  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
                  at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:865)
                  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
                  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
                  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
                  at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
                  at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
          




          Walter

          • 2. Re: No active event context, simple web app
            Walter White Novice

            Well, after some more reading and looking over my configuration files, I found that I had the ContextFilter enabled which may not be a bad thing, but in most cases you do not need to enable it.


            Simply removing it from components.xml solved the problem.


            <!--
            <web:context-filter/>
            -->
            



            Seam has a phase listener which automatically handles the request scope, having another one causes problems as shown by the example above.



            Walter