Re: java.lang.IllegalStateException: Response already committed

Splash Forums PrettyFaces Users java.lang.IllegalStateException: Response already committed Re: java.lang.IllegalStateException: Response already committed


Arun Kumar

Hi Christian,

I took a look at your comments in the other post about it probably being an issue with Mojara 2.1.2. It does seem like a 404 error ought not throw up all these other errors.

In the case of my project since this is a WAR targeted for WL 10.3.6 (so much for cross-platform Java) apparently WL requires JSF 2.0 to be deployed as a shared library on the server before it can referenced by any applications. I can’t even use another version of JSF, only the WL provided one.

I opened the shared library jsf-2.0.war in (wlserver/common/deployable-libraries) and found it only contained 4 libraries in WEB-INF/lib – glassfish.jsf_1.0.0.0_2-0-4.jar, glassfish.jstl_1.2.0.1.jar, javax.jsf_1.0.0.0_2-0.jar, wls.jsf.di.jar

Opening the glassfish.jsf..jar showed me the com.sun.faces.* packages which is where the error is being thrown up. So I guess my question is, is this glassfish.jsf the Mojarra reference implementation? I guess if that is the case then I am stuck with the error and will have to find a way to handle the error gracefully in my code, though its ugly having to do that for a standard library, especially one that cannot be replaced or upgraded.

Thanks for all your help,