关于tapestry的upload控件的问题?

04-03-19 baoqf

按照tapestry自己的例子(http://jakarta.apache.org/tapestry/doc/ComponentReference/Upload.html)测试时出现如下错误,不知问题出在哪里;出错如下;

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.NoSuchMethodError: org.apache.commons.fileupload.FileUpload.parseRequest(Ljavax/servlet/http/HttpServletRequest;IILjava/lang/String;)Ljava/util/List;

org.apache.tapestry.multipart.DefaultMultipartDecoder.decode(DefaultMultipartDecoder.java:191)

org.apache.tapestry.request.RequestContext.(RequestContext.java:196)

org.apache.tapestry.ApplicationServlet.createRequestContext(ApplicationServlet.java:345)

org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:228)

org.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:367)

javax.servlet.http.HttpServlet.service(HttpServlet.java:763)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

note The full stack trace of the root cause is available in the Tomcat logs.

--------------------------------------------------------------------------------

Apache Tomcat/5.0.14