ServletFileUpload   文件上传问题

ServletFileUpload   文件上传问题

2008-12-18 20:52:03 org.apache.catalina.core.ApplicationContext log
信息: Marking servlet FileUpLoad as unavailable
2008-12-18 20:52:03 org.apache.catalina.core.StandardWrapperValve invoke
严重: Allocate exception for servlet FileUpLoad
java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1115)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
2008-12-18 20:52:58 org.apache.catalina.core.StandardWrapperValve invoke


按照官方提供文档的步骤做的 老是报错 不是上面的500就是

信息: Servlet FileUpLoad is currently unavailable 404 郁闷
我是个初学者 希望大家能帮我解决下 谢谢,深深的感谢
友情up
友情up
没人回答,帮我解答下,谢谢
mark
mark
看你調用的包的路徑是否對,或是代碼中路徑問題,還有一种可能是文件权限问题,JAVA方面我不是很懂,但是问题都是差不多的处理方法!