Details
Description
It seems to be a bug with WebSphere, but a tiny patch to Struts2 can fix it.
The findStaticResource method of FilterDispatcher calls copy(), then closes the InputStream. It works well for static resources bigger than 4kb, bit it fails with "cannot obtain output stream" forsmaller files.
The patch is very simple: call output.flush() at the end of copy() method. Works perfect with WebSphere 6.