首页 > 代码库 > ueditor中FileUtils.getTempDirectory()找不到
ueditor中FileUtils.getTempDirectory()找不到
2014-6-27 14:22:25 org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception Throwable occurred: java.lang.NoSuchMethodError: org/apache/commons/io/FileUtils.getTempDirectory()Ljava/io/File; at com.baidu.ueditor.upload.StorageManager.getTmpFile(StorageManager.java:117) at com.baidu.ueditor.upload.StorageManager.saveFileByInputStream(StorageManager.java:51) at com.baidu.ueditor.upload.BinaryUploader.save(BinaryUploader.java:75) at com.baidu.ueditor.upload.Uploader.doExec(Uploader.java:24) at com.baidu.ueditor.ActionEnter.invoke(ActionEnter.java:80) at com.baidu.ueditor.ActionEnter.exec(ActionEnter.java:49) at org.apache.jsp.core.ueditor.jsp.controller_jsp._jspService(controller_jsp.java:74) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
肯定是jar包的问题的,ueditor1.4.3需要commons-io-2.4.jar
如果还是报错,查看编译后的文件,是否还是原来的jar
ueditor中FileUtils.getTempDirectory()找不到
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。