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.
Installation Instructions
Please review the readme.txt for detailed installation instructions.
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).
Problems (APARS) fixed
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg24021470