3 Replies Latest reply on Apr 2, 2009 1:41 AM by Stuart Douglas

    Endless redirect loop after an exception has been thrown

    I need a real name Newbie

      Hello,


      I'm facing the probably well-known problem with endless redirect loops that occur, when working in the debug mode and an exception is thrown by the application. I have tried to avoid it by disabling debug, but the only difference is, that I see nothing in the logs, but the endless
      redirect loop in the browser still occurs.
      If I have debug enabled, I get the following exception, that is being thrown repeatedly:


      14:38:37,156 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/salutor.war/WEB-INF/lib/jboss-seam-mail.jar/META-INF/seam-mail.taglib.xml
      14:38:37,156 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/salutor.war/WEB-INF/lib/jboss-seam-ui.jar/META-INF/s.taglib.xml
      14:38:37,156 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/salutor.war/WEB-INF/lib/jboss-seam-rss.jar/META-INF/seam-rss.taglib.xml
      14:38:37,156 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/lib/richfaces-ui.jar/META-INF/a4j.taglib.xml
      14:38:37,156 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/lib/richfaces-ui.jar/META-INF/ajax4jsf.taglib.xml
      14:38:37,171 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/lib/richfaces-ui.jar/META-INF/jsp.taglib.xml
      14:38:37,171 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/lib/richfaces-ui.jar/META-INF/rich.taglib.xml
      14:38:37,171 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/lib/richfaces-ui.jar/META-INF/richfaces.taglib.xml
      14:38:37,171 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/salutor.war/WEB-INF/lib/jboss-seam-pdf.jar/META-INF/seam-pdf.taglib.xml
      14:38:37,187 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/lib/jsf-facelets.jar/META-INF/jsf-core.taglib.xml
      14:38:37,187 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/lib/jsf-facelets.jar/META-INF/jsf-html.taglib.xml
      14:38:37,187 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/lib/jsf-facelets.jar/META-INF/jsf-ui.taglib.xml
      14:38:37,187 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/lib/jsf-facelets.jar/META-INF/jstl-core.taglib.xml
      14:38:37,187 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/lib/jsf-facelets.jar/META-INF/jstl-fn.taglib.xml
      14:38:37,203 INFO  [compiler] Added Library from: vfszip:/E:/jboss-5.0.0.GA/server/default/deploy/myapp.ear/salutor.war/WEB-INF/lib/jboss-seam-excel.jar/META-INF/seam-excel.taglib.xml
      14:38:37,312 INFO  [STDOUT] 1894500    WARN  ExceptionFilter       - handling uncaught exception
      javax.servlet.ServletException: Servlet execution threw an exception
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)
           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:40)
           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.jboss.seam.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:42)
           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.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
           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)
      Caused by: java.lang.IllegalAccessError: tried to access class com.sun.facelets.StateWriter from class com.sun.facelets.StateWriterControl
           at com.sun.facelets.StateWriterControl.initialize(StateWriterControl.java:18)
           at org.jboss.seam.debug.jsf.SeamDebugPhaseListener.beforePhase(SeamDebugPhaseListener.java:52)
           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)
           ... 44 more
      14:38:37,312 INFO  [STDOUT] 1894516    WARN  ExceptionFilter       - exception root cause
      14:38:37,312 INFO  [STDOUT] 1894516    WARN  ExceptionFilter       - running exception handlers



      I have also tried the solution with moving jars from one list to another, but
      it didn't help.


      My deployed-jars-ear.list:


      antlr-runtime.jar
      core.jar
      drools-compiler.jar
      drools-core.jar
      groovy-all.jar
      janino.jar
      jboss-el.jar
      jbpm-jpdl.jar
      mvel14.jar
      richfaces-api.jar
      jboss-seam-remoting.jar
      commons-beanutils.jar
      commons-digester.jar
      jsf-facelets.jar
      jxl.jar
      richfaces-impl.jar
      richfaces-ui.jar
      log4j.jar
      jboss-seam-debug.jar



      My deployed-jars-war.list:


      jboss-seam-excel.jar
      jboss-seam-ioc.jar
      jboss-seam-mail.jar
      jboss-seam-pdf.jar
      jboss-seam-resteasy.jar
      jboss-seam-rss.jar
      jboss-seam-ui.jar
      jboss-seam-debug.jar



      Has anyone solved this problem already? This is really annoying, because I actually can't see, what the real exception is, and moreover, it's not possible to provide a user-friendly error-handling.