websphere静态文件转发出错问题 SimpleFileServlet

 

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) 

 

用SpringMVC或者ZolltyMVC时,当把请求抛给WebContainer默认的Servlt处理时,在websphere7.0.0.0下,就会有这个问题。是websphere的一个BUG。

 

BUG为:

PK74129; 7.0.0.1: Requestdispatcher forward to static file serving servlet

 

详见:

http://www-01.ibm.com/support/docview.wss?uid=swg24021470

 

 

 

 

你可能感兴趣的:(websphere)