Meaningless Drivel is fun!
The moose likes Struts and the fly likes Response already committed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Response already committed" Watch "Response already committed" New topic

Response already committed

Picus Ameradeus

Joined: Sep 22, 2006
Posts: 11

I have deployed a struts app on a tomcat server, which has been deployed successfully on other (staging server).

However, on this new server, when I try to load the app, I get the following error:

org.apache.jk.server.JkCoyoteHandler action
INFO: response already committed

In general, I know what causes this error, the app has been sent the response and it thinks it is being sent again.

I just would like to know how to correct it, and what common causes are.
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
I don't know what is going on in your case. I can mention a case where I saw this message on my project. Another developer put security roles in web.xml on jsp files in certain directories. That sounded like a reasonable solution. The problem is that since we use tiles, certain tiles on the page (like the header tile) have already been rendered by the time the jsp is accessed. When the jsp was accessed the container tried to redirect to an error page but since part of the response has already been committed we got this error message instead.

- Brent
I agree. Here's the link:
subject: Response already committed
It's not a secret anymore!