websphere靜態檔案轉發出錯問題 SimpleFileServlet

Zollty發表於2013-12-17

 

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

 

 

 

 

相關文章