开发者社区 问答 正文

kindeditor连接报错?报错

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

展开
收起
爱吃鱼的程序员 2020-06-14 18:19:06 473 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    只要把kinderditor文件夹里面jsp文件夹lib文件夹下的三个类,复制到tomcat文件夹lib文件夹下,就可以了

    2020-06-14 18:19:25
    赞同 展开评论
问答分类:
问答地址: