org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 117 in the jsp file: /Lib/kindeditor/jsp/upload_json.jsp JSONObject cannot be resolved to a type 114: %> 115: <%! 116: private String getError(String message) { 117: JSONObject obj = new JSONObject(); 118: obj.put("error", 1); 119: obj.put("message", message); 120: return obj.toJSONString(); An error occurred at line: 117 in the jsp file: /Lib/kindeditor/jsp/upload_json.jsp JSONObject cannot be resolved to a type 114: %> 115: <%! 116: private String getError(String message) { 117: JSONObject obj = new JSONObject(); 118: obj.put("error", 1); 119: obj.put("message", message); 120: return obj.toJSONString(); An error occurred at line: 108 in the jsp file: /Lib/kindeditor/jsp/upload_json.jsp JSONObject cannot be resolved to a type 105: return; 106: } 107: 108: JSONObject obj = new JSONObject(); 109: obj.put("error", 0); 110: obj.put("url", saveUrl + newFileName); 111: out.println(obj.toJSONString()); An error occurred at line: 108 in the jsp file: /Lib/kindeditor/jsp/upload_json.jsp JSONObject cannot be resolved to a type 105: return; 106: } 107: 108: JSONObject obj = new JSONObject(); 109: obj.put("error", 0); 110: obj.put("url", saveUrl + newFileName); 111: out.println(obj.toJSONString()); Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468) org.apache.jasper.compiler.Compiler.compile(Compiler.java:378) org.apache.jasper.compiler.Compiler.compile(Compiler.java:353) org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:728) org.springframework.web.filter.Chara
只要把kinderditor文件夹里面jsp文件夹lib文件夹下的三个类,复制到tomcat文件夹lib文件夹下,就可以了
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。