This seems to be a recent thing. I was not getting
the IllegalStateExceptions on a JBoss 3.0 build
from March 20th, and only noticed them today (the 25th).
The problem seems to be that the getOutputStream
method in the ServletResponseWrapperInclude
simply throws an exception now. There is a getWriter()
method, and perhaps if you use that instead, it might
work without the exception. Is getOutputStream
deprecated or something?
I found the line that emits the warning, and I think it's probably going to be modified by the Jetty folks, and whenever the latest Jetty gets refreshed in the JBoss CVS this warning
will probably go away. There's a line in org.mortbay.jetty.servlet.Dispatcher that says Code.warn(e) that can be commented out to stop the exceptions. It seems there's code in there to handle the exception by creating a WriterOutputStream...
hope this helps... Let's hope this is very temporary.