Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004746 [Resin] minor always 09-05-11 05:01 10-04-11 14:52
Reporter cyttesen View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0004746: Reopening 0004676: javax.servlet.ServletException: Illegal attempt to set ViewHandler after a response has been rendered.
Description We are getting there but....

Deploying my JSF application to freshly downloaded Resin 4.0.22 I get the following exception:

[11-09-05 13:44:35.873] {http://*:8080-1} [^] javax.servlet.ServletException: Illegal attempt to set ViewHandler after a response has been rendered.
                                                at javax.faces.webapp.FacesServlet.service(
                                                at com.caucho.server.dispatch.ServletFilterChain.doFilter(
                                                at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(
                                                at org.ajax4jsf.webapp.BaseFilter.handleRequest(
                                                at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(
                                                at org.ajax4jsf.webapp.BaseFilter.doFilter(
                                                at com.caucho.server.dispatch.FilterFilterChain.doFilter(
                                                at com.caucho.server.webapp.DispatchFilterChain.doFilter(
                                                at com.caucho.server.dispatch.ServletInvocation.service(
                                                at com.caucho.server.webapp.RequestDispatcherImpl.forward(
                                                at com.caucho.server.webapp.RequestDispatcherImpl.forward(
                                                at com.caucho.jsp.PageContextImpl.forward(
                                                at _jsp._index__jsp._jspService(
                                                at _jsp._index__jsp._jspService(
                                                at com.caucho.jsp.JavaPage.service(
                                                at com.caucho.jsp.Page.pageservice(
                                                at com.caucho.server.dispatch.PageFilterChain.doFilter(
                                                at com.caucho.server.webapp.DispatchFilterChain.doFilter(
                                                at com.caucho.server.dispatch.ServletInvocation.service(
                                                at com.caucho.server.webapp.RequestDispatcherImpl.forward(
                                                at com.caucho.server.webapp.RequestDispatcherImpl.dispatch(
                                                at com.caucho.server.dispatch.RewriteDispatchFilterChain.doFilter(
                                                at com.caucho.server.webapp.WebAppListenerFilterChain.doFilter(
                                                at com.caucho.server.webapp.WebAppFilterChain.doFilter(
                                                at com.caucho.server.webapp.AccessLogFilterChain.doFilter(
                                                at com.caucho.server.dispatch.ServletInvocation.service(
                                                at com.caucho.server.http.HttpRequest.handleRequest(
                                                at com.caucho.env.thread.ResinThread.runTasks(
                                          Caused by: java.lang.IllegalStateException: Illegal attempt to set ViewHandler after a response has been rendered.
                                                at com.sun.faces.application.ApplicationImpl.setViewHandler(
                                                at org.ajax4jsf.event.InitPhaseListener.beforePhase(
                                                at com.sun.faces.lifecycle.Phase.handleBeforePhase(
                                                at com.sun.faces.lifecycle.Phase.doPhase(
                                                at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(
                                                at com.sun.faces.lifecycle.LifecycleImpl.execute(
                                                at javax.faces.webapp.FacesServlet.service(
                                                ... 37 more

If I remove the resin/lib/jsf*.jar libraries the application is starting and working fine.

We will try and use Resin 4.0.22 going forward with the exception that we need to manually remove these jar files from the server.

Let me know if this is the intended behavior.

Christian Yttesen
Additional Information
Attached Files

- Relationships

- Notes
10-04-11 14:15

Updated mojarra implementation in distribution. This doesn't appear to be a Resin-specific issue. Instead it looks like a bundling issue.

- Issue History
Date Modified Username Field Change
09-05-11 05:01 cyttesen New Issue
10-04-11 14:15 ferg Note Added: 0005533
10-04-11 14:15 ferg Assigned To  => ferg
10-04-11 14:15 ferg Status new => assigned
10-04-11 14:15 ferg Resolution open => fixed
10-04-11 14:15 ferg Fixed in Version  => 4.0.24
10-04-11 14:52 ferg Status assigned => closed

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker