2010/5/27 Dan Armbrust <daniel.armbrust.l...@gmail.com>: > I have a webapp running in Tomcat 6.0.20.
Some quick thoughts. Sorry if some are too trivial. 1. "Cannot create a session after the response has been committed" means the following: - "response was committed" means that some data were already sent to the client, which always includes all the HTTP response headers, and thus you cannot send more headers, nor discard previously rendered part of the page. - To fully create a session, Tomcat needs to create a sessionid and send it to the client. The sessionid is sent in a cookie, and cookie is sent through "Set-Cookie" http response header. If response is already partially delivered, you cannot send a new header to the client. I do not remember what the Servlet specification says here, though. 2. Does your unexpectedError.jsp use sessions? Does it have <%...@page session="false"%>? 3. If the response was already partially sent to the client and you receive an "unexpected" error (while rendering some further part of the page), it is not easy to properly handle this error outside of the page that causes it. You should safeguard the page itself. In the old time it was done with <% try { %><% } catch(...){ %>. IIRC, now you can also use some exception handling tag provided by the JSTL tag library. If that issue is caused by some executable code on your JSP page (I have not seen your auditLog.jsp , so I do not know), you may consider moving the code off the page somewhere. Many people use some frameworks that implement the MVC pattern here. > I don't care > about the error, other than I don't want it to appear in the log file > as a "SEVERE: Exception " because that generates support tickets.... > 4. If such unexpected errors on some page are happening regularly I personally would consider that a serious fault, which deserves a support ticket. Though being unable to locate the source of the error due to a faulty error handling page does not help much. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org