Hi,
 
I'm using the latest nightly build from struts (1.1) and I'm
experiencing some issues with file upload.
The validation of the form performs well, but when the forward is called
to display the next page, I've got the following exception.
 
java.lang.ClassCastException:
org.apache.struts.upload.MultipartRequestWrapper
            at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatch
erImpl.java:172)
            at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcher
Impl.java:162)
            at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:970)
            at
org.apache.struts.action.RequestProcessor.processActionForward(RequestPr
ocessor.java:404)
            at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
269)
            at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1106)
            at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:468)
            at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
            at org.apache.tomcat.core.Handler.service(Handler.java:287)
            at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
            at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:806)
            at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
            at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpConnectionHandler.java:213)
            at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
            at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
1)
            at java.lang.Thread.run(Thread.java:484)
 
I searched the archives but it seems that problem already appeared with
the beta versions of struts 1.0. But it was more than one year ago! I
have the latest versions of Xerces and Xalan... Everything but the file
upload is working well. I cannot switch back to Struts 1.0 because of
the nested behaviours that are essential for my application.
 
Does anybody manage to have the file upload working with struts 1.1? Any
idea to make it work?
 
Thx
 
Yannick
 
 
 


Reply via email to