java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactory

余生长醉 提交于 2019-11-27 16:22:32

You need to put commons-fileupload.jar and commons-io.jar to your WEB-INF/lib forlder. Classpath is used during build, but they must be available during runtime also.

Actually, if you had used IDE for Java EE development (like Eclipse) putting these Jars to WEB-INF/lib would be enough, as they would be automatically visible in the claspath for build.

as @Gas , I forgot to add .jar file in WEB-INF/lib folder. and then the issue resolved.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!