瘋狂

          STANDING ON THE SHOULDERS OF GIANTS
          posts - 481, comments - 486, trackbacks - 0, articles - 1
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理
            需要的包,commons-fileupload.jar,commons-io-1.3.2.jar,multipartrequest.jar都有
          配置:
          webwork.i18n.encoding=UTF-8
          webwork.i18n.reload=false
          webwork.multipart.maxSize=2097152
          webwork.multipart.parser=jakarta
          webwork.multipart.saveDir=/tmp
          webwork.tag.altSyntax=true
          還有:
          <action name="toupload" class="UP" method="startUpLoad" >
                <interceptor-ref name="fileUpload"></interceptor-ref>
             <result name="success" type="velocity">/com/bjnv/client/fileload/action/pages/success.vm</result>
             <result name="fail" type="velocity">/com/bjnv/client/fileload/action/pages/fail.vm</result>
            </action>
          -----------------------------------------------
          報錯:
          2008-1-21 11:31:08 org.mortbay.jetty.servlet.ServletHandler handle
          警告: Error for /load/toupload!startUpLoad.action
          java.lang.NoClassDefFoundError: org/apache/commons/fileupload/RequestContext
           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.getDeclaredConstructor(Class.java:1985)
           at com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper.<init>(MultiPartRequestWrapper.java:89)
           at com.opensymphony.webwork.dispatcher.DispatcherUtils.wrapRequest(DispatcherUtils.java:490)
           at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:94)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
           at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
           at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
           at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
           at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:288)
           at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
           at org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677)
           at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
           at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
           at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
           at org.mortbay.http.HttpServer.service(HttpServer.java:909)
           at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
           at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
           at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
           at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
           at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
           at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導航:
           
          主站蜘蛛池模板: 北碚区| 铜鼓县| 怀安县| 云龙县| 泽库县| 宜丰县| 手机| 榆中县| 山西省| 武汉市| 甘孜县| 乃东县| 手机| 囊谦县| 永定县| 民县| 崇仁县| 望奎县| 介休市| 安新县| 达尔| 丹江口市| 康平县| 邢台市| 山东| 万宁市| 桦南县| 康马县| 宁化县| 武功县| 固始县| 西和县| 汝南县| 道孚县| 河西区| 苏尼特右旗| 惠安县| 靖江市| 定南县| 乐安县| 寿光市|