No active session context - registration example
meye1ric Oct 13, 2005 8:50 PMI'm trying to get the Seam registration example app working. I get the following meassages when starting Tomcat 5.5.9.
-- excerpt from Tomcat stdout --
19:04:03,795 INFO [ServletContextListener] Welcome to Seam 1.0 beta 1
19:04:03,795 INFO [Seam] initializing Seam
19:04:03,935 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
19:04:04,232 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
19:04:04,263 INFO [Component] Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
19:04:04,279 INFO [Component] Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
19:04:04,310 INFO [Component] Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
19:04:04,310 INFO [Component] Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
19:04:04,326 INFO [Component] Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
19:04:04,341 INFO [Component] Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
19:04:04,357 INFO [Component] Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
19:04:04,373 INFO [Seam] done initializing Seam
19:04:04,466 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
19:04:04,982 INFO [FacesConfigurator] Reading config jar:file:/C:/Tomcat/temp/myfaces22272.jar!/META-INF/faces-config.xml
19:04:05,716 INFO [FacesConfigurator] Reading config jar:file:/C:/Tomcat/temp/myfaces22273.jar!/META-INF/faces-config.xml
19:04:06,670 INFO [FacesConfigurator] Reading config jar:file:/C:/Tomcat/temp/myfaces22274.jar!/META-INF/faces-config.xml
19:04:07,076 INFO [FacesConfigurator] Reading config jar:file:/C:/Tomcat/temp/myfaces22275.jar!/META-INF/faces-config.xml
19:04:07,232 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
19:04:07,435 INFO [StartupServletContextListener] ServletContext 'C:\Tomcat\webapps\Registration\' initialized.
19:04:13,060 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:13,060 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:13,107 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
19:04:13,107 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
19:04:13,107 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
19:04:13,107 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
19:04:13,185 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.IllegalStateException: No active session context
at org.jboss.seam.Seam.isSessionInvalid(Unknown Source)
at org.jboss.seam.contexts.Lifecycle.endRequest(Unknown Source)
at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(Unknown Source)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:211)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
The register.jsp loads (note error above). Then when I fill in the form and submit, I get these messages from Tomcat.
19:04:21,107 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:21,107 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:21,107 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:21,107 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:21,107 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:21,107 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:21,107 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:21,107 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:21,107 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:21,107 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:21,123 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:21,123 WARN [VariableResolverImpl] Variable 'user' could not be resolved.
19:04:21,154 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.IllegalStateException: No active session context
at org.jboss.seam.Seam.isSessionInvalid(Unknown Source)
at org.jboss.seam.contexts.Lifecycle.endRequest(Unknown Source)
at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(Unknown Source)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:211)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
It acts like there's no session context. I can't figure out why. I haven't edited the Java classes that come with the example. I've resovled a number of other problems by moving .jars around. I have a feeling this may be the same type of issue, but I can't find any info about it.
Thanks,
-Rick