2 Replies Latest reply on Dec 23, 2008 6:04 PM by Stephan B

    Component redirect not found while login

    Cyrill Rüttimann Newbie

      Hello,


      I have some problems after upgrading from 2.0.2.GA to 2.1.1.CR1 that the redirect after logging in does not work anymore. From the logs, I see the following:



      10:18:11,482 INFO  [org.jboss.seam.Component] Component: org.jboss.seam.faces.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.faces.Redirect
      
      10:19:35,257 DEBUG [org.jboss.seam.contexts.FacesLifecycle] >>> Begin JSF request for /TrainingPlatform/customer/overview.xhtml
      
      10:19:35,260 DEBUG [org.jboss.seam.Component] seam component not found: redirect
      10:19:35,261 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.core.redirect
      10:19:35,261 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.cache.redirect
      10:19:35,261 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.transaction.redirect
      10:19:35,261 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.framework.redirect
      10:19:35,261 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.web.redirect
      10:19:35,270 DEBUG [org.jboss.seam.core.Manager] Beginning long-running conversation
      
      10:19:35,272 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: org.jboss.seam.security.facesSecurityEvents
      10:19:35,279 DEBUG [org.jboss.seam.faces.FacesManager] redirecting to: /TrainingPlatform/login.xhtml?cid=2
      
      10:19:35,326 DEBUG [org.jboss.seam.Component] seam component not found: identity
      10:19:35,326 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.core.identity
      10:19:35,326 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.cache.identity
      10:19:35,327 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.transaction.identity
      10:19:35,327 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.framework.identity
      10:19:35,327 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.web.identity
      10:19:35,327 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.faces.identity
      10:19:35,327 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.international.identity
      10:19:35,327 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.theme.identity
      10:19:35,327 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.pageflow.identity
      10:19:35,327 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.bpm.identity
      10:19:35,327 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.jms.identity
      10:19:35,327 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.mail.identity
      10:19:35,328 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: org.jboss.seam.security.identity
      
      10:19:35,334 DEBUG [org.jboss.seam.Component] seam component not found: credentials
      10:19:35,334 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.core.credentials
      10:19:35,334 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.cache.credentials
      10:19:35,334 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.transaction.credentials
      10:19:35,335 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.framework.credentials
      10:19:35,335 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.web.credentials
      10:19:35,335 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.faces.credentials
      10:19:35,335 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.international.credentials
      10:19:35,335 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.theme.credentials
      10:19:35,335 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.pageflow.credentials
      10:19:35,335 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.bpm.credentials
      10:19:35,335 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.jms.credentials
      10:19:35,335 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.mail.credentials
      10:19:35,336 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: org.jboss.seam.security.credentials




      So the credentials and the identity components are found in the context, but not the redirect. The components.xml contains



          <security:identity authenticate-method="#{authenticationManager.authenticate}" />
          <event type="org.jboss.seam.notLoggedIn">
              <action execute="#{redirect.captureCurrentView}"/>
          </event>
          <event type="org.jboss.seam.postAuthenticate">
              <action execute="#{redirect.returnToCapturedView}"/>
          </event>



      and pages.xml contains



      <!-- START: Default -->
          <page view-id="*">
              <navigation from-action="#{identity.logout}">
                  <redirect view-id="/home.xhtml"/>
              </navigation>
          </page>
      <!-- END: Default -->
      <!-- START: Security -->
          <page view-id="/customer/*" login-required="true" />
          <page view-id="/training/*" login-required="true" />
      <!-- END: Security -->
      <!-- START: Exception Handling -->
          <exception class="org.jboss.seam.security.NotLoggedInException">
              <redirect view-id="/login.xhtml" />
          </exception>
      <!-- END: Exception Handling -->



      Anyone has a hint for this problem? I am right that the events are not logged. So to see the events I have to write an event handler?


      Regards,


      Cyrill

        • 1. Re: Component redirect not found while login
          Cody Lerum Apprentice

          Seeing the same issue when moving a Seam 2.1SP1 project to JBAS 5.0GA




          2008-12-05 10:05:50,662 DEBUG [org.jboss.seam.contexts.Contexts] (http-localhost%2F127.0.0.1-8080-1) found in session context: org.jboss.seam.security.credentials
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: identity
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.core.identity
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.cache.identity
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.transaction.identity
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.framework.identity
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.web.identity
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.faces.identity
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.international.identity
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.theme.identity
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.pageflow.identity
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.bpm.identity
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.jms.identity
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.mail.identity
          2008-12-05 10:05:50,663 DEBUG [org.jboss.seam.contexts.Contexts] (http-localhost%2F127.0.0.1-8080-1) found in session context: org.jboss.seam.security.identity
          2008-12-05 10:05:50,665 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: identity
          2008-12-05 10:05:50,665 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.core.identity
          2008-12-05 10:05:50,665 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.cache.identity
          2008-12-05 10:05:50,665 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.transaction.identity
          2008-12-05 10:05:50,665 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.framework.identity
          2008-12-05 10:05:50,665 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.web.identity
          2008-12-05 10:05:50,665 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.faces.identity
          2008-12-05 10:05:50,665 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.international.identity
          2008-12-05 10:05:50,666 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.theme.identity
          2008-12-05 10:05:50,666 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.pageflow.identity
          2008-12-05 10:05:50,666 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.bpm.identity
          2008-12-05 10:05:50,666 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.jms.identity
          2008-12-05 10:05:50,666 DEBUG [org.jboss.seam.Component] (http-localhost%2F127.0.0.1-8080-1) seam component not found: org.jboss.seam.mail.identity
          2008-12-05 10:05:50,666 DEBUG [org.jboss.seam.contexts.Contexts] (http-localhost%2F127.0.0.1-8080-1) found in session context: org.jboss.seam.security.identity
          2008-12-05 10:05:50,666 DEBUG [org.ajax4jsf.renderkit.RendererBase] (http-localhost%2F127.0.0.1-8080-1) Finish encoding of component login:j_id16 with class org.richfaces.component.html.HtmlPanel
          2008-12-05 10:05:50,667 DEBUG [org.ajax4jsf.renderkit.RendererBase] (http-localhost%2F127.0.0.1-8080-1) Finish encoding of component _viewRoot with class org.ajax4jsf.component.AjaxViewRoot
          2008-12-05 10:05:50,667 DEBUG [org.ajax4jsf.renderkit.RendererBase] (http-localhost%2F127.0.0.1-8080-1) Finish encoding of component _viewRoot with class org.ajax4jsf.component.AjaxViewRoot
          2008-12-05 10:05:50,668 WARN  [org.jboss.detailed.classloader.ClassLoaderManager] (http-localhost%2F127.0.0.1-8080-1) Unexpected error during load of:org.ajax4jsf.application.TreeStructureNode
          java.lang.OutOfMemoryError
               at java.util.zip.Inflater.init(Native Method)
               at java.util.zip.Inflater.<init>(Unknown Source)
               at java.util.zip.ZipFile.getInflater(Unknown Source)
               at java.util.zip.ZipFile.getInputStream(Unknown Source)
               at java.util.zip.ZipFile.getInputStream(Unknown Source)
               at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.openStream(ZipFileWrapper.java:214)
               at org.jboss.virtual.plugins.context.zip.ZipEntryContext.openStream(ZipEntryContext.java:977)
               at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.openStream(ZipEntryHandler.java:143)
               at org.jboss.virtual.VirtualFile.openStream(VirtualFile.java:216)
               at org.jboss.classloading.spi.vfs.policy.VFSClassLoaderPolicy.getResourceAsStream(VFSClassLoaderPolicy.java:483)
               at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:471)
               at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:469)
               at java.security.AccessController.doPrivileged(Native Method)
               at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:467)
               at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:444)
               at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
               at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
               at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)
               at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:254)
               at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:148)
               at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:256)
               at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1099)
               at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:735)
               at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:378)
               at java.lang.ClassLoader.loadClass(Unknown Source)
               at java.lang.ClassLoader.loadClassInternal(Unknown Source)
               at org.ajax4jsf.application.AjaxStateManager.getTreeStructureToSave(AjaxStateManager.java:187)
               at org.ajax4jsf.application.AjaxStateManager.buildViewState(AjaxStateManager.java:469)
               at org.ajax4jsf.application.AjaxStateManager$SeamStateManagerWrapper.saveView(AjaxStateManager.java:106)
               at org.jboss.seam.jsf.SeamStateManager.saveView(SeamStateManager.java:89)
               at org.ajax4jsf.application.AjaxStateManager.saveSerializedView(AjaxStateManager.java:430)
               at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:615)
               at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
               at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
               at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
               at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
               at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
               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.IdentityFilter.doFilter(IdentityFilter.java:38)
               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.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
               at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
               at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
               at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
               at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
               at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
               at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
               at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:51)
               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.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
               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:235)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
               at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
               at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
               at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
               at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
               at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
               at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
               at java.lang.Thread.run(Unknown Source)



          • 2. Re: Component redirect not found while login
            Stephan B Newbie

            I experience the same thing!
            Isn't there anyone with the same issue and possible a solution?