3 Replies Latest reply on Mar 7, 2008 1:06 AM by Shane Bryzak

    Seam Security not working using Java IBM

    Cesar Flores Newbie

      I'm running Seam 2.0.1 on a IBM server with Apache 2.2 and Tomcat 6 using IBM JVM 6.


      I am trying to use Seam security using Identity object but it seems like it just won't work.I have the same application mounted with Sun Java 6 and it works.


      Anybody has run into this problem?


      Any help will be really appreciated.



        • 1. Re: Seam Security not working using Java IBM
          Shane Bryzak Master

          How doesn't it work?  Are there any exceptions?

          • 2. Re: Seam Security not working using Java IBM
            Cesar Flores Newbie

            Yes the exception is thrown as expected but right after is also swallowed so the rule is ignored and let you go the next view.


            ERROR org.jboss.seam.jsf.SeamPhaseListener      uncaught exception
            org.jboss.seam.security.NotLoggedInException
                 at org.jboss.seam.navigation.Pages.redirectToLoginView(Pages.java:517)
                 at org.jboss.seam.navigation.Pages.preRender(Pages.java:284)
                 at org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:549)
                 at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:460)
                 at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:144)
                 at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:114)
                 at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
                 at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
                 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.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 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.MultipartFilter.doFilter(MultipartFilter.java:85)
                 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.LoggingFilter.doFilter(LoggingFilter.java:58)
                 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:141)
                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                 at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at com.baldor.commons.security.SpNegoFilter.doFilter(SpNegoFilter.java:68)
                 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:233)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
                 at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
                 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
                 at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
                 at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
                 at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
                 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
                 at java.lang.Thread.run(Thread.java:735)


            ERROR org.jboss.seam.jsf.SeamPhaseListener      swallowing Exception


            I do have well configured those exception handlers on the pages.xml it is just ignoring the exception.

            • 3. Re: Seam Security not working using Java IBM
              Shane Bryzak Master

              Could you please raise this in JIRA?