IBM Support

PK74129; 7.0.0.1: Requestdispatcher forward to static file serving servlet

Download


Abstract

A java.lang.InstantiationException thrown when accessing the SimpleFileServlet.

Download Description

PK74129 resolves the following problem:

ERROR DESCRIPTION:
Using a RequestDispatcher to explicitly forward to the WebContainer's SimpleFileServlet does not work on WebSphere Application Server V7.0 because of the way ServletWrapper tries to initiate the servlet.

The exception would look like this in the logs:
[10/15/08 14:26:48:961 EDT] 00000013 servlet E
com.ibm.ws.webcontainer.servlet.ServletWrapper run [Servlet

Error]-[class java.lang.InstantiationException:
com.ibm.ws.webcontainer.servlet.SimpleFileServlet]:
java.lang.ClassNotFoundException: class
java.lang.InstantiationException:
com.ibm.ws.webcontainer.servlet.xxxxxxxxxxServlet
at java.beans.Beans.instantiate(Unknown Source)
at java.beans.Beans.instantiate(Unknown Source)
at com.ibm.ws.webcontainer.servlet.ServletWrapper$1.run(ServletWrap per.java :1682)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java:1673)

LOCAL FIX:
N/A

PROBLEM SUMMARY:

USERS AFFECTED:
IBM WebSphere Application Server version 7.0 users.

PROBLEM DESCRIPTION:
A java.lang.InstantiationException thrown when explicitly accessing the SimpleFileServlet.

RECOMMENDATION:
None

When an application explicitly tries to access the WebContainer's SimpleFileServlet, the following exception is seen the log:

com.ibm.ws.webcontainer.servlet.ServletWrapper run [Servlet

Error]-[class java.lang.InstantiationException:

com.ibm.ws.webcontainer.servlet.SimpleFileServlet]:

java.lang.ClassNotFoundException: class

java.lang.InstantiationException:

com.ibm.ws.webcontainer.servlet.SimpleFileServlet

at java.beans.Beans.instantiate(Unknown Source)

at java.beans.Beans.instantiate(Unknown Source)

at com.ibm.ws.webcontainer.servlet.ServletWrapper$1.run(ServletWrapper.java:1682)

PROBLEM CONCLUSION:
The WebContainer has been modified to prevent this error condition from occurring. Please note, it is not a best practice for a customer application to directly reference the SimpleFileServlet.

The fix for this APAR is currently targeted for inclusion in fixpack 7.0.0.3.

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.

[{"PRLabel":"UpdateInstaller","PRLang":"US English","PRSize":"7250000","PRPlat":{"label":"AIX","code":"PF002"},"PRURL":"http://www.ibm.com/support/docview.wss?rs=180&uid=swg21205991"}]

Installation Instructions

Please review the readme.txt for detailed installation instructions.

[{"INLabel":"Readme","INLang":"US English","INSize":"8893","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK74129/readme.txt"}]
On
[{"DNLabel":"7.0.0.1-WS-WAS-IFPK74129","DNDate":"12/2/2008","DNLang":"US English","DNSize":"27486","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=7.0.0.1-WS-WAS-IFPK74129&product=ibm%2FWebSphere%2FWebSphere%20Application%20Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK74129/7.0.0.1-WS-WAS-IFPK74129.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PK74129/7.0.0.1-WS-WAS-IFPK74129.pak"}]

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).

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Servlet Engine\/Web Container","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.1","Edition":"Base;Express;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24021470