Downloadable files
Abstract
The Webcontainer throws a FileNotFoundException when a resource does not exist on the file system but a filter should find it.
Download Description
PK33090 resolves the following problem:
ERROR DESCRIPTION:
A filter that serves a file does not popup an alert message in IBM® WebSphere® Application Server version 6.1 and where as the same code works fine in Application Server version V6.0.2 level.
LOCAL FIX:
N/A
PROBLEM SUMMARY
USERS AFFECTED:
WebSphere Application Server version 6.1 users.
PROBLEM DESCRIPTION:
The WebContainer throws a FileNotFoundException when a request is received for a static file which does not exist on the file system despite a called filter handling the request and not calling the next filter in the chain.
RECOMMENDATION:
None
When a request is made for a static file which does not exist at the location specified in the request, the WebContainer calls the filters (if any) associated with the request. The filters may then process the request and not call the next filter in the chain, effectively completing the request. This should prevent the WebContainer from sending back a 404 FileNotFoundException. However, in this situation the WebContainer continues to send back a 404 FileNotFoundException.
The problem can arise with any application which uses this type of filter. However, it has been noticed particularly in Java™ Server Faces (JSF) applications. This is because JSF often constructs pages which refer to a file, usually a JavaScript file, at a location where it does not physically exist. The file is usually packaged within a JAR file and has a different path to the file. Therefore when the WebContainer attempts to find that file and cannot, it processes the filters for the request which may then process the request using the correct file and then not call the next filter in the chain. However, on return from the filter the WebContainer still returns a 404 FileNotFoundException.
Further, if the filter commits the request additional warning messages may be seen:
SRTServletRes W WARNING: Cannot set status. Response already committed.
SRTServletRes W WARNING: Cannot set header. Response already committed.
PROBLEM CONCLUSION:
The Webcontainer code has been modified to not send back a 404 FileNotFoundException, in response to a request for a nonexistent static file, if a filter effectively completes the request by not calling the next filter in the chain. Note that for the filters to be called when a static file which is a target of a request and does not exist, the following Webcontainer custom property must be set to 'true':
com.ibm.ws.webcontainer.invokefilterscompatibility
As a result this custom property must be set for this fix APAR to be enabled. For details of how to set a webcontainer custom property please see:
http://www.ibm.com/support/docview.wss?rss=180&uid=swg21284395
The fix for this APAR is currently targeted for inclusion in Fix Pack 6.1.0.7.
Please refer to the Recommended Updates page for delivery information:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Prerequisites
Please download the UpdateInstaller below to install this fix.
| URL | LANGUAGE | SIZE(Bytes) |
|---|---|---|
| UpdateInstaller | US English | 7250000 |
Installation Instructions
Please review the readme.txt for detailed installation instructions.
| URL | LANGUAGE | SIZE(Bytes) |
|---|---|---|
| Readme | US English | 5986 |
Download package
| Download | RELEASE DATE | LANGUAGE | SIZE(Bytes) | Download Options What is DD? |
|---|---|---|---|---|
| 6.1.0.3-WS-WAS-IFPK33090 | 01-16-2007 | US English | 25506 | FTP DD |
| 6.1.0.5-WS-WAS-IFPK33090 | 01-16-2007 | US English | 25506 | FTP DD |
Technical support
Contact IBM Support using SR (http://www-306.ibm.com/software/support/probsub.html), visit the WebSphere Application Server Support Web site (http://www.ibm.com/software/webservers/appserv/was/support/), or contact 1-800-IBM-SERV(U.S. only).
| Segment | Product | Component | Platform | Version | Edition |
|---|---|---|---|---|---|
| Application Servers | Runtimes for Java Technology | Java SDK |
Problems (APARS) fixed
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.