1 2 Previous Next 19 Replies Latest reply on Oct 26, 2005 5:01 AM by xiangya

    Anyone seen this problem?

    theute

      What do you mean by "adding seam to the project" ?

        • 1. Re: Anyone seen this problem?

          Great. Someone cares :-)
          Here is what I mean by adding Seam to the project.

          I added a Seam Phase listener and Variable Resolver to faces-config.xml as follows:

          <variable-resolver>org.jboss.seam.jsf.SeamVariableResolver</variable-resolver>


          <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>


          I then added the following to web.xml:

          <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>


          I moved my managed-bean configuration:

          description>organization</description
          <managed-bean-name>organization</managed-bean-name>
          <managed-bean-class>com.m68.netlearn.web.OrganizationBean</managed-bean-class>
          <managed-bean-scope>request</managed-bean-scope>"

          from faces-config.xml to a Seam annotation (@Name("organization")) inside the class itself

          I then get the exception I posted and my form stops working

          Are there more or less things I need to add/remove. Really like the whole Seam concept and would hate to go back.

          cheers,

          • 2. Re: Anyone seen this problem?
            gavin.king

            Do you directly invalidate the httpsession somewhere?

            Something that is currently not documented (!) is that session invalidation must be done via Seam.invalidateSession().

            • 3. Re: Anyone seen this problem?

              No, I do not invalidate the session. All I am doing is accesing a simple form with one managed bean (no security or anything else). I tested the form without the Seam components just to be sure that it worked with just MyFaces 1.1 and facelets. I even removed facelets and tried the jsp way.

              Get the exception right after the form is displayed. Do not even submit it before seeing the error.

              Could be some configuration issue. I am using MyEclipse IDE as the development environment, not that it should matter.

              cheers,

              • 4. Re: Anyone seen this problem?
                gavin.king

                Please post a debug-level Seam log for the whole request cycle.

                • 5. Re: Anyone seen this problem?

                  Thanks. Here it is:

                  15:59:08,990 DEBUG [Lifecycle] >>> Begin web request
                  15:59:09,010 DEBUG [Contexts] found in application context: org.jboss.seam.core.manager.component
                  15:59:09,010 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.manager
                  15:59:09,010 DEBUG [Contexts] found in application context: org.jboss.seam.core.manager.component
                  15:59:09,010 DEBUG [Lifecycle] >>> Begin web request
                  15:59:09,010 DEBUG [Contexts] found in application context: org.jboss.seam.core.manager.component
                  15:59:09,010 DEBUG [Component] instantiating Seam component: org.jboss.seam.core.manager
                  15:59:09,010 DEBUG [Contexts] found in application context: org.jboss.seam.core.manager.component
                  15:59:09,190 INFO [war]] No state saving method defined, assuming default server state saving
                  15:59:09,280 DEBUG [Contexts] found in event context: org.jboss.seam.core.manager
                  15:59:09,280 DEBUG [Contexts] found in application context: org.jboss.seam.core.manager.component
                  15:59:09,350 DEBUG [Manager] No stored conversation
                  15:59:09,360 DEBUG [Contexts] found in application context: org.jboss.seam.core.init
                  15:59:09,360 DEBUG [Contexts] found in application context: org.jboss.seam.core.init.component
                  15:59:09,360 DEBUG [SeamPhaseListener] After restore view, conversation context: ConversationContext(1)
                  15:59:09,360 DEBUG [BusinessProcessContext] Created BusinessProcessContext
                  15:59:09,370 DEBUG [Contexts] found in event context: org.jboss.seam.core.manager
                  15:59:09,370 DEBUG [Contexts] found in application context: org.jboss.seam.core.manager.component
                  15:59:09,370 DEBUG [Manager] No stored conversation
                  15:59:09,370 DEBUG [Contexts] found in application context: org.jboss.seam.core.init
                  15:59:09,370 DEBUG [Contexts] found in application context: org.jboss.seam.core.init.component
                  15:59:09,370 DEBUG [SeamPhaseListener] After restore view, conversation context: ConversationContext(2)
                  15:59:09,370 DEBUG [BusinessProcessContext] Created BusinessProcessContext
                  15:59:09,370 DEBUG [SeamPhaseListener] Before render response
                  15:59:09,370 DEBUG [Contexts] found in event context: org.jboss.seam.core.manager
                  15:59:09,370 DEBUG [Contexts] found in application context: org.jboss.seam.core.manager.component
                  15:59:09,370 DEBUG [Manager] Discarding conversation state: 2
                  15:59:09,370 DEBUG [Contexts] found in event context: org.jboss.seam.core.manager
                  15:59:09,370 DEBUG [Contexts] found in application context: org.jboss.seam.core.manager.component
                  15:59:09,370 DEBUG [SeamPhaseListener] Before render response
                  15:59:09,370 DEBUG [Contexts] found in event context: org.jboss.seam.core.manager
                  15:59:09,370 DEBUG [Contexts] found in application context: org.jboss.seam.core.manager.component
                  15:59:09,370 DEBUG [Manager] Discarding conversation state: 2
                  15:59:09,370 DEBUG [Contexts] found in event context: org.jboss.seam.core.manager
                  15:59:09,370 DEBUG [Contexts] found in application context: org.jboss.seam.core.manager.component
                  15:59:19,565 INFO [STDOUT] Sep 27, 2005 3:59:19 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                  INFO: Added Library from: jar:file:/C:/Program%20Files/jboss-4.0.3RC2/server/default/deploy/netlearn.ear/netlearnwar.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
                  15:59:19,655 INFO [STDOUT] Sep 27, 2005 3:59:19 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                  INFO: Added Library from: jar:file:/C:/Program%20Files/jboss-4.0.3RC2/server/default/deploy/netlearn.ear/netlearnwar.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
                  15:59:19,685 INFO [STDOUT] Sep 27, 2005 3:59:19 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                  INFO: Added Library from: jar:file:/C:/Program%20Files/jboss-4.0.3RC2/server/default/deploy/netlearn.ear/netlearnwar.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
                  15:59:19,785 INFO [STDOUT] Sep 27, 2005 3:59:19 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                  INFO: Added Library from: jar:file:/C:/Program%20Files/jboss-4.0.3RC2/server/default/deploy/netlearn.ear/netlearnwar.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
                  15:59:19,805 INFO [STDOUT] Sep 27, 2005 3:59:19 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
                  INFO: Added Library from: jar:file:/C:/Program%20Files/jboss-4.0.3RC2/server/default/deploy/netlearn.ear/netlearnwar.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
                  15:59:22,119 DEBUG [SeamVariableResolver] resolving name: organization
                  15:59:22,119 DEBUG [Component] seam component not found: organization
                  15:59:22,119 DEBUG [SeamVariableResolver] resolving name: organization
                  15:59:22,119 DEBUG [Component] seam component not found: organization
                  15:59:22,119 DEBUG [SeamVariableResolver] could not resolve name
                  15:59:22,119 DEBUG [SeamVariableResolver] could not resolve name
                  15:59:22,119 DEBUG [SeamVariableResolver] resolving name: organization
                  15:59:22,119 DEBUG [Component] seam component not found: organization
                  15:59:22,119 DEBUG [SeamVariableResolver] resolving name: organization
                  15:59:22,119 DEBUG [Component] seam component not found: organization
                  15:59:22,119 DEBUG [SeamVariableResolver] could not resolve name
                  15:59:22,119 DEBUG [SeamVariableResolver] could not resolve name
                  15:59:22,139 DEBUG [SeamVariableResolver] resolving name: organization
                  15:59:22,139 DEBUG [Component] seam component not found: organization
                  15:59:22,139 DEBUG [SeamVariableResolver] resolving name: organization
                  15:59:22,139 DEBUG [Component] seam component not found: organization
                  15:59:22,139 DEBUG [SeamVariableResolver] could not resolve name
                  15:59:22,139 DEBUG [SeamVariableResolver] could not resolve name
                  15:59:22,199 ERROR [HtmlRendererUtils] Error finding Converter for component with id _tagId0:btype
                  15:59:22,199 DEBUG [SeamVariableResolver] resolving name: organization
                  15:59:22,199 DEBUG [Component] seam component not found: organization
                  15:59:22,199 DEBUG [SeamVariableResolver] resolving name: organization
                  15:59:22,199 DEBUG [Component] seam component not found: organization
                  15:59:22,199 DEBUG [SeamVariableResolver] could not resolve name
                  15:59:22,199 DEBUG [SeamVariableResolver] could not resolve name
                  15:59:22,199 DEBUG [SeamVariableResolver] resolving name: organization
                  15:59:22,199 DEBUG [Component] seam component not found: organization
                  15:59:22,199 DEBUG [SeamVariableResolver] resolving name: organization
                  15:59:22,199 DEBUG [Component] seam component not found: organization
                  15:59:22,199 DEBUG [SeamVariableResolver] could not resolve name
                  15:59:22,199 DEBUG [SeamVariableResolver] could not resolve name
                  15:59:22,209 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
                  15:59:22,209 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
                  15:59:22,209 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
                  15:59:22,209 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
                  15:59:22,299 DEBUG [Lifecycle] After render response, destroying contexts
                  15:59:22,299 DEBUG [Lifecycle] flushing busines process context
                  15:59:22,299 DEBUG [BusinessProcessContext] no in-memory state to flush to jBPM context
                  15:59:22,299 DEBUG [BusinessProcessContext] no jBPM context to which to flush
                  15:59:22,299 DEBUG [Lifecycle] destroying event context
                  15:59:22,299 DEBUG [Contexts] found in application context: org.jboss.seam.core.manager.component
                  15:59:22,299 DEBUG [Contexts] destroying: org.jboss.seam.core.manager
                  15:59:22,299 DEBUG [Contexts] found in event context: org.jboss.seam.core.manager
                  15:59:22,299 DEBUG [Contexts] found in application context: org.jboss.seam.core.manager.component
                  15:59:22,299 DEBUG [Lifecycle] destroying conversation context
                  15:59:22,309 DEBUG [Contexts] destroying: org.jboss.seam.bpm.recoverableState
                  15:59:22,309 DEBUG [Lifecycle] flushing server-side conversation context
                  15:59:22,309 DEBUG [Contexts] found in event context: org.jboss.seam.core.manager
                  15:59:22,309 DEBUG [Contexts] found in application context: org.jboss.seam.core.manager.component
                  15:59:22,309 DEBUG [Lifecycle] <<< End web request
                  15:59:22,309 DEBUG [Lifecycle] After render response, destroying contexts
                  15:59:22,309 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 org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersAfter(LifecycleImpl.java:458)
                  at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:307)
                  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                  at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                  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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
                  at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:157)
                  at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
                  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.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                  at java.lang.Thread.run(Thread.java:595)

                  • 6. Re: Anyone seen this problem?
                    gavin.king

                    Looks like you somehow have two SeamPhaseListeners registered.

                    • 7. Re: Anyone seen this problem?

                      Gavin, in case you are wondering, here is the code for the "organization" class:

                      package com.m68.netlearn.web;

                      import com.m68.netlearn.par.*;
                      import com.m68.netlearn.ejb3.*;
                      import org.jboss.seam.annotations.In;
                      import org.jboss.seam.annotations.Name;
                      import org.jboss.seam.annotations.Out;
                      import org.jboss.seam.ejb.SeamInterceptor;
                      import org.jboss.seam.annotations.Scope;
                      import static org.jboss.seam.ScopeType.EVENT;

                      import javax.ejb.*;



                      import java.io.Serializable;
                      import javax.naming.InitialContext;
                      import javax.ejb.Interceptor;
                      import org.apache.log4j.Logger;

                      @Name("organization")
                      @Interceptor(SeamInterceptor.class)
                      @Scope(EVENT)

                      public class OrganizationBean
                      extends Organization implements Serializable
                      {
                      static Logger log4j = Logger.getLogger(OrganizationBean.class);
                      String btype;
                      int assignedminutes;

                      public String register()
                      {
                      log4j.info("register organization");
                      String outcome = "organizationRegistered";
                      BillingData bdata = new BillingData();
                      bdata.setAssignedminutes(assignedminutes);
                      bdata.setBillingtype(ParConstants.BillingType.INSTITUTION);
                      if(btype.equals("CREDITCARD"))
                      bdata.setBillingtype(ParConstants.BillingType.CREDITCARD);
                      if(btype.equals("ASSIGNEDMINUTES"))
                      bdata.setBillingtype(ParConstants.BillingType.ASSIGNEDMINUTES);
                      setBillingdata(bdata);
                      try
                      {
                      InitialContext ctx = new InitialContext();
                      RegistrationManager registrationmanager = (RegistrationManager) ctx.lookup(RegistrationManager.class.getName());
                      registrationmanager.registerOrganization((Organization)this);
                      }
                      catch(Exception e){
                      e.printStackTrace();
                      outcome = "";
                      log4j.error("Organization Registration Failed - Name:" + this.getOrgname());
                      }
                      return outcome;
                      }
                      public String getBtype(){
                      return btype;
                      }
                      public void setBtype(String btype){
                      this.btype = btype;
                      /*this.getBillingdata().setBillingtype(ParConstants.BillingType.INSTITUTION);
                      if(type.equals("CREDITCARD"))
                      this.getBillingdata().setBillingtype(ParConstants.BillingType.CREDITCARD);
                      if(type.equals("ASSIGNEDMINUTES"))
                      this.getBillingdata().setBillingtype(ParConstants.BillingType.ASSIGNEDMINUTES); */
                      }
                      public int getAssignedminutes(){
                      return assignedminutes;
                      }
                      public void setAssignedminutes(int minutes){
                      this.assignedminutes = minutes;
                      /* this.getBillingdata().setAssignedminutes(minutes); */
                      }
                      }

                      • 8. Re: Anyone seen this problem?
                        gavin.king

                        the problem is more likely in jsf-config.xml

                        • 9. Re: Anyone seen this problem?

                          Here's my web.xml

                          <?xml version="1.0" encoding="utf-8"?>
                          <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"
                          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

                          <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>


                          <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>

                          <context-param>
                          <param-name>org.jboss.seam.core.manager.conversationTimeout</param-name>
                          <param-value>120000</param-value>
                          </context-param>
                          <context-param>
                          <param-name>javax.faces.CONFIG_FILES</param-name>
                          <param-value>/WEB-INF/faces-config.xml</param-value>
                          </context-param>
                          <context-param>
                          <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                          <param-value>.xhtml</param-value>
                          </context-param>
                          <context-param>
                          <param-name>facelets.DEVELOPMENT</param-name>
                          <param-value>true</param-value>
                          </context-param>

                          <servlet-name>Faces Servlet</servlet-name>
                          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                          <load-on-startup>1</load-on-startup>

                          <servlet-mapping>
                          <servlet-name>Faces Servlet</servlet-name>
                          <url-pattern>*.jsf</url-pattern>
                          </servlet-mapping>
                          <!--security-constraint>
                          <display-name>Valid Catalog User</display-name>
                          <web-resource-collection>
                          <web-resource-name>catalog</web-resource-name>
                          <url-pattern>/catalog/*</url-pattern>
                          <http-method>GET</http-method>
                          <http-method>POST</http-method>
                          </web-resource-collection>
                          <auth-constraint>
                          <role-name>STUDENT</role-name>
                          <role-name>INSTRUCTOR</role-name>
                          <role-name>ADMINISTRATOR</role-name>
                          <role-name>SUPERUSER</role-name>
                          </auth-constraint>
                          <user-data-constraint>
                          <transport-guarantee>NONE</transport-guarantee>
                          </user-data-constraint>
                          </security-constraint>
                          <security-constraint>
                          <display-name>Valid Admin User</display-name>
                          <web-resource-collection>
                          <web-resource-name>administration</web-resource-name>
                          <url-pattern>/admin/*</url-pattern>
                          <http-method>GET</http-method>
                          <http-method>POST</http-method>
                          </web-resource-collection>
                          <auth-constraint>
                          <role-name>ADMINISTRATOR</role-name>
                          <role-name>SUPERUSER</role-name>
                          </auth-constraint>
                          <user-data-constraint>
                          <transport-guarantee>NONE</transport-guarantee>
                          </user-data-constraint>
                          </security-constraint>
                          <security-constraint>
                          <display-name>Valid Super User</display-name>
                          <web-resource-collection>
                          <web-resource-name>super user</web-resource-name>
                          <url-pattern>/super/*</url-pattern>
                          <http-method>GET</http-method>
                          <http-method>POST</http-method>
                          </web-resource-collection>
                          <auth-constraint>
                          <role-name>SUPERUSER</role-name>
                          </auth-constraint>
                          <user-data-constraint>
                          <transport-guarantee>NONE</transport-guarantee>
                          </user-data-constraint>
                          </security-constraint>
                          <login-config>
                          <auth-method>FORM</auth-method>
                          <realm-name>NetLearn Security</realm-name>
                          <form-login-config>
                          <form-login-page>/login.faces</form-login-page>
                          <form-error-page>/loginError.faces</form-error-page>
                          </form-login-config>
                          </login-config>
                          <security-role>
                          <role-name>STUDENT</role-name>
                          </security-role>
                          <security-role>
                          <role-name>INSTRUCTOR</role-name>
                          </security-role>
                          <security-role>
                          <role-name>ADMINISTRATOR</role-name>
                          </security-role>
                          <security-role>
                          <role-name>SUPERUSER</role-name>
                          </security-role-->
                          </web-app>

                          • 10. Re: Anyone seen this problem?

                            Here's faces-config.xml Could be that the phase listener here conflicts with one in web.xml?

                            <faces-config >

                            <message-bundle>com.m68.netlearn.web.messages</message-bundle>
                            <locale-config>
                            <default-locale>en_US</default-locale>
                            </locale-config>


                            <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>


                            <variable-resolver>org.jboss.seam.jsf.SeamVariableResolver</variable-resolver>


                            <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>


                            <!-- managed-bean>
                            organization
                            <managed-bean-name>organization</managed-bean-name>
                            <managed-bean-class>com.m68.netlearn.web.OrganizationBean</managed-bean-class>
                            <managed-bean-scope>request</managed-bean-scope>
                            </managed-bean-->
                            </faces-config>

                            • 11. Re: Anyone seen this problem?

                              Thanks, Gavin. Got this problem resolved, Phase listener was getting loaded twice, somehow. Anyway got a new issue, now, sigh... posted in the "seam configuration question" thread.

                              thanks,

                              • 12. Re: Anyone seen this problem?
                                soshah

                                can you please elaborate on how you resolved this issue? Apparenty I have run into the same exact issue.

                                My debug log looks the same and seems like there are two instances of SeamPhaseListener that are being used within a single request lifecycle.

                                Here is my faces.config.xml

                                <?xml version="1.0"?>

                                <!DOCTYPE faces-config PUBLIC
                                "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
                                "http://java.sun.com/dtd/web-facesconfig_1_0.dtd" >

                                <faces-config>
                                <!-- managed beans of the cms resource browser -->
                                <!--
                                <managed-bean>
                                <managed-bean-name>browser</managed-bean-name>
                                <managed-bean-class>org.jboss.website.cms.admin.ResourceBrowser</managed-bean-class>
                                <managed-bean-scope>request</managed-bean-scope>
                                </managed-bean>
                                <managed-bean>
                                <managed-bean-name>manager</managed-bean-name>
                                <managed-bean-class>org.jboss.website.cms.admin.ResourceManager</managed-bean-class>
                                <managed-bean-scope>session</managed-bean-scope>
                                </managed-bean>
                                -->

                                <!-- generic navigation rules, irrespective of the (from-view-id) -->
                                <navigation-rule>
                                <navigation-case>
                                <from-outcome>noauth</from-outcome>
                                <to-view-id>/common/noauth.jsp</to-view-id>
                                </navigation-case>
                                </navigation-rule>

                                <!-- navigation rules for /cms/browser.jsp -->
                                <navigation-rule>
                                <from-view-id>/cms/browser.jsp</from-view-id>
                                <navigation-case>
                                <from-outcome>browse</from-outcome>
                                <to-view-id>/cms/browser.jsp</to-view-id>
                                </navigation-case>
                                <navigation-case>
                                <from-outcome>main</from-outcome>
                                <to-view-id>/cms/main.jsp</to-view-id>
                                </navigation-case>
                                </navigation-rule>

                                <!-- navigation rules for /cms/main.jsp -->
                                <navigation-rule>
                                <from-view-id>/cms/main.jsp</from-view-id>
                                <navigation-case>
                                <from-outcome>main</from-outcome>
                                <to-view-id>/cms/main.jsp</to-view-id>
                                </navigation-case>
                                <navigation-case>
                                <from-outcome>preview</from-outcome>
                                <to-view-id>/cms/preview.jsp</to-view-id>
                                </navigation-case>
                                </navigation-rule>

                                <!-- navigation rules for /cms/preview.jsp -->
                                <navigation-rule>
                                <from-view-id>/cms/preview.jsp</from-view-id>
                                <navigation-case>
                                <from-outcome>main</from-outcome>
                                <to-view-id>/cms/main.jsp</to-view-id>
                                </navigation-case>
                                </navigation-rule>

                                <!-- seam integration -->

                                <variable-resolver>org.jboss.seam.jsf.SeamVariableResolver</variable-resolver>



                                <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>


                                </faces-config>

                                Note: my managed bean declarations are commented out cause I am using the Seam annotated way for registering them.

                                Thanks
                                Sohil

                                • 13. Re: Anyone seen this problem?
                                  xiangya

                                  hi,
                                  from component not found debug info,
                                  it seems that seam.properties file is missed.
                                  and may be you miss configuration faces-config element FacesViewHandler if you use xhtml view style.

                                  • 14. Re: Anyone seen this problem?
                                    xiangya

                                    hi, sorry for last comment about FaceletViewHandler.
                                    I missed, You not missed.

                                    1 2 Previous Next