[jboss-user] [JBoss Seam] - Re: can't get it working: exception redirection
Did you manage to solve this problem. I'm facing same thing. It looks like Seam doesn't intercept the exception and I also get Tomcat web page with following stacktrace: anonymous wrote : | java.lang.NullPointerException | org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:93) | org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:70) | org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44) | org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) | org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) | org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) | org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) | org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) | org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) | org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | But when I look into log the full staktrace looks like this: anonymous wrote : | 09:49:41,937 ERROR [ExceptionFilter] handling uncaught exception | org.jboss.seam.web.FileUploadException: Multipart request is larger than allowed | size | at org.jboss.seam.web.MultipartRequest.(MultipartRequest.java:280) | | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:80) | 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:44) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter | .java:69) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter | .java:73) | 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.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.jav | a:68) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter | .java:69) | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi | lter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV | alve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV | alve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit | yAssociationValve.java:179) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica | torBase.java:433) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv | e.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j | ava:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j | ava:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC | onnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal | ve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav | a:241) | at org.apache.coyote.http11.Http
[jboss-user] [JBoss Seam] - Re: can't get it working: exception redirection
Shane fixed this in CVS very recently. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091760#4091760 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091760 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can't get it working: exception redirection
I don't think this is fixed, I still get Tomcat error page. I'm running recent CVS version. It looks like org.jboss.seam.web.FileUploadException exception is not intercepted properly. In my pages.xml I have proper handling to redirect me to my own error page. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091765#4091765 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091765 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can't get it working: exception redirection
I've just fixed the following JIRA issue which I believe should address this: http://jira.jboss.com/jira/browse/JBSEAM-1995 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091783#4091783 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091783 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can't get it working: exception redirection
If you are using Facelets (.xhtml as default) | | | | File size is above allowable maximum | | | if you are using another view technology than Facelets then write the corresponding view-id. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049078#4049078 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049078 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can't get it working: exception redirection
Hi fernando, thanks for your reply. You were right about the view-id. However, it didn't make any difference. The exception is still thrown, and shown by tomcat, instead of being redirected to the error page. tazman View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049082#4049082 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049082 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can't get it working: exception redirection
Did you remember to include seam filters in web.xml? It works for me. My use case is quite similar to your case even if I run it in a SE environment. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049160#4049160 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049160 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can't get it working: exception redirection
I have this in my web.xml: | | org.jboss.seam.servlet.SeamListener | | | | Seam Filter | org.jboss.seam.web.SeamFilter | | | | Seam Filter | *.seam | I thought, all other filters are installed by the main filter. Do I have to include some more filters in my web.xml? tazman View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049199#4049199 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049199 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can't get it working: exception redirection
Here is my web.xml org.jboss.seam.servlet.SeamListener org.apache.myfaces.webapp.StartupServletContextListener javax.faces.STATE_SAVING_METHOD client facelets.DEVELOPMENT false javax.faces.DEFAULT_SUFFIX .xhtml Seam Exception Filter org.jboss.seam.servlet.SeamExceptionFilter Seam Redirect Filter org.jboss.seam.servlet.SeamRedirectFilter Seam Exception Filter /* Seam Redirect Filter *.seam Faces Servlet javax.faces.webapp.FacesServlet 1 Faces Servlet *.seam Seam Resource Servlet org.jboss.seam.servlet.ResourceServlet Seam Resource Servlet /seam/resource/* Hope it helps! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049251#4049251 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049251 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: can't get it working: exception redirection
I think we have quite different configurations. You seem to be using pre jboss 4.2 with myfaces. I ported my application to jboss 4.2 (jsf ri) and am using seam cvs latest. The Seam reference document says (chapter 21.1.3 "Seam servlet filters"): anonymous wrote : The Seam master filter must be the first filter specified in web.xml. This ensures it is run first. | Adding the master filter enables the following built-in filters. and it lists the following filters (including the exception-filter): exception-filter, redirect-filter, multipart-filter, character-encoding-filter, and ajax4jsf-filter Nevertheless, I'll give it a try and explicitly configure the filters in web.xml. tazman View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049270#4049270 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049270 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user