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

 

用SpringMVC或者ZolltyMVC時,當把請求拋給WebContainer默認的Servlt處理時,在websphere7.0.0.0下,就會有這個問題。是websphere的一個BUG。web

 

BUG爲:app

PK74129; 7.0.0.1: Requestdispatcher forward to static file serving servletui

 

詳見:this

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

相關文章
相關標籤/搜索