NoClassDefFoundError: org/apache/commons/io/Fil...
2013-02-18 00:00
274 查看
在做Struts Demo中出现:
Exception starting filter struts2 java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
通过查找发现需要在原来5个基础包(struts2-core-2.1.8.1.jar、xwork-core-2.1.6.jar、commons-logging-1.0.4.jar、freemarker-2.3.15.jar、ognl-2.7.3.jar)的基础上添加commons-io-2.0.1.jar、commons-lang-2.5.jar、javassist-3.11.0.GA.jar
加上之后,又会出现:
Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext
此时需要加commons-fileupload-1.2.2.jar
Exception starting filter struts2 java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
通过查找发现需要在原来5个基础包(struts2-core-2.1.8.1.jar、xwork-core-2.1.6.jar、commons-logging-1.0.4.jar、freemarker-2.3.15.jar、ognl-2.7.3.jar)的基础上添加commons-io-2.0.1.jar、commons-lang-2.5.jar、javassist-3.11.0.GA.jar
加上之后,又会出现:
Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext
此时需要加commons-fileupload-1.2.2.jar
相关文章推荐
- org.apache.commons.net.io.CopyStreamException: IOException caught while copying
- java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream
- org.apache.commons.io.FileUtils的使用
- 使用org.apache.commons.io.FileUtils,IOUtils;工具类操作文件
- Struts2上传文件报错Unable to parse request org.apache.commons.fileupload.FileUploadBase$IOFileUploadExcept
- 利用 org.apache.commons.io.FileUtils快速读写文件
- java ftp org.apache.commons.net.io.CopyStreamException
- org.apache.commons.io.FileUtils的使用
- java.lang.ClassNotFoundException: org.apache.commons.io.output.DeferredFileOutputStream
- 利用 org.apache.commons.io.FileUtils快速读写文件
- java.lang.ClassNotFoundException: org.apache.commons.io.output.DeferredFileOutputStr
- org.apache.commons.io.FileUtils的使用
- MAVEN Error: java.lang.ClassNotFoundException: org.apache.commons.io.output.DeferredFileOutputStream
- Unable to parse request org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. null
- Exception starting filter struts2 java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
- org.apache.commons.io.FileUtils的使用
- org.apache.commons.io---实用的文件操作工具
- [异常] Java文件上传异常org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of mul
- java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream
- Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils