2 Replies Latest reply on Nov 2, 2007 1:50 PM by Milli Coelho

    I need help with scope type

    EC Admin Newbie

      Hi,
      I use jboss-seam-1.2.1.GA and jboss-4.0.5.GA.
      I need to perform a member registration for the web site I'm working on. The registration perform some server side validation. I also have some ajax calls using javascript and seam remoting.
      At the moment, it works with a stateful session bean and the "conversation" or "session" scope.
      Because it's a one page process, I would say that the page scope more appropriate.
      I have similar needs for other pages in the site. I use the session scope everywhere at the moment.

      I can't figure out how to use correctly a page or event scope.

      Would you have any recommendations for migrating from a SESSION scope to PAGE or EVENT.

      Thanks for your time.

        • 1. Re: I need help with scope type
          EC Admin Newbie

          Here is what happens when I change scope from SESSION to PAGE and try to redeploy my application:


          2007-11-02 15:57:05,989 INFO [org.jboss.seam.Component] Component: localSearchManager, scope: PAGE, type: JAVA_BEAN, class: com.easycity.ejb.search.LocalSearchManagerBean
          2007-11-02 15:57:05,989 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
          java.lang.RuntimeException: Could not create Component: localSearchManager
           at org.jboss.seam.init.Initialization.addComponent(Initialization.java:865)
           at org.jboss.seam.init.Initialization.installComponents(Initialization.java:796)
           at org.jboss.seam.init.Initialization.init(Initialization.java:503)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
           at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
           at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
           at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


          • 2. Re: I need help with scope type
            Milli Coelho Newbie

            There may be other errors below this one. If you post the entire stack trace, someone would be able to help you.