java.lang.IllegalStateException: PWC1227: Cannot forward after response has been

Splash Forums Rewrite Users java.lang.IllegalStateException: PWC1227: Cannot forward after response has been

This topic contains 2 replies, has 2 voices, and was last updated by  Christian Kaltepoth 8 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #25105


    I have been using prettyfaces for a while, let me congratulate to you, it is a great project. Right now I am trying to integrate the new Rewrite in a new Web project. Everything works fine, but all the time I am getting this error message in the console:

    java.lang.IllegalStateException: PWC1227: Cannot forward after response has been committed
            at org.apache.catalina.core.ApplicationDispatcher.doDispatch(
            at org.apache.catalina.core.ApplicationDispatcher.dispatch(
            at org.apache.catalina.core.ApplicationDispatcher.dispatch(
            at org.apache.catalina.core.ApplicationDispatcher.forward(
            at org.ocpsoft.rewrite.servlet.impl.HttpRewriteResultHandler.handleResult(
            at org.ocpsoft.rewrite.servlet.RewriteFilter.rewrite(
            at org.ocpsoft.rewrite.servlet.RewriteFilter.doFilter(
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(
            at org.apache.catalina.core.StandardWrapperValve.invoke(
            at org.apache.catalina.core.StandardContextValve.invoke(
            at org.apache.catalina.core.StandardPipeline.invoke(
            at com.sun.enterprise.web.WebPipeline.invoke(
            at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(
            at org.apache.catalina.core.StandardHostValve.invoke(
            at org.apache.catalina.connector.CoyoteAdapter.doService(
            at org.apache.catalina.connector.CoyoteAdapter.service(
            at com.sun.grizzly.http.ProcessorTask.invokeAdapter(
            at com.sun.grizzly.http.ProcessorTask.doProcess(
            at com.sun.grizzly.http.ProcessorTask.process(
            at com.sun.grizzly.http.DefaultProtocolFilter.execute(
            at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(
            at com.sun.grizzly.DefaultProtocolChain.execute(
            at com.sun.grizzly.DefaultProtocolChain.execute(
            at com.sun.grizzly.http.HttpProtocolChain.execute(
            at com.sun.grizzly.ProtocolChainContextTask.doCall(
            at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(
            at com.sun.grizzly.util.AbstractThreadPool$

    I attach a simple Web Aplicattion project where it is happening.

    I am working with Glassfish V3, Netbeans 6.0, Java 6, JSF 2.0


    Thanks for providing the sample app. I’ll try to find some time in the next days to have a look at it.

    You could also have a look at this thread:

    This is a similar problem of someone using Glassfish. I posted some hints about how to debug this issue there back then. Perhaps this will help.


    I just gave your application a try. When I access /Test-pretty/, the page renders fine. I see “Hola” on the resulting page. I used Glassfish

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘Rewrite Users’ is closed to new topics and replies.

Comments are closed.