[
https://issues.apache.org/struts/browse/WW-1526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40749
]
Antony Stubbs commented on WW-1526:
-----------------------------------
Fixed for me - The patch didn't fix it for me through - I also had to set the
com.ibm.ws.webcontainer.invokefilterscompatibility to true to get the Struts2
and Sitemesh filters to work with 6.1.0.5 along with an interim fix for <a
href="http://www-1.ibm.com/support/docview.wss?uid=swg24014758">PK33090</a>.
More details here:
http://www.nabble.com/forum/ViewPost.jtp?post=9831115&framed=y
> Error with handling static resources under WebSphere 6
> ------------------------------------------------------
>
> Key: WW-1526
> URL: https://issues.apache.org/struts/browse/WW-1526
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.1
> Environment: IBM WebSphere 6.0
> Reporter: Adam Czysciak
> Assigned To: Ted Husted
> Fix For: 2.0.7, 2.1.0
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.