Cannot create a session after the response has been committed

后端 未结 4 1867
余生分开走
余生分开走 2020-12-30 02:40

Opening the JSF page gives me the following exception:

Caused by: java.lang.IllegalStateException: Cannot create a session after the response has been

4条回答
  •  一向
    一向 (楼主)
    2020-12-30 03:36

    I put this in my web.xml to solve the problem for one of my apps.

    
        javax.faces.STATE_SAVING_METHOD
        client
    
    

    What is weird though is that I have several other applications hosted on this same glass fish instance that doesn't require this voodoo in the web.xml.

    I strongly want to believe this is not the solution, cos it doesn't make any sense to me why this particular app requires it and the others didn't. But for now it works.

提交回复
热议问题