Ok, so I have a pretty simple webapp using a servlet, and in some cases I send and return a message to the client, for example:
response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Did not specify parameter xyz");
This works fine, but Tomcat (6.0.33 and Java 1.6.0_26-b03) does not show this error message above.
If I run the application on another container, for example, in the form of a glass fish, this message is displayed.
So, an example output ...
Tomcat: 400 - Bad Request Glassfish: 400 - Did not specify parameter xyz
Can tomcat be configured in the same way?
source share