Type Exception Report
Message Unable to compile class for JSP:
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: [16] in the jsp file: [/church/churchAPI.jsp] JSONObject cannot be resolved to a type 13: try{ 14: String str = readFileLocal("C:\\apache-tomcat-7.0.21\\webapps\\ROOT\\church\\church2.json"); 15: Vector city = new Vector(); 16: JSONObject jsonObjectJackyFromString = new JSONObject(str); 17: String jsonStr = ""+jsonObjectJackyFromString.get(ID); 18: String churchName = ""+getJsonValue(jsonStr, "oc"); 19: return churchName.trim(); An error occurred at line: [16] in the jsp file: [/church/churchAPI.jsp] JSONObject cannot be resolved to a type 13: try{ 14: String str = readFileLocal("C:\\apache-tomcat-7.0.21\\webapps\\ROOT\\church\\church2.json"); 15: Vector city = new Vector(); 16: JSONObject jsonObjectJackyFromString = new JSONObject(str); 17: String jsonStr = ""+jsonObjectJackyFromString.get(ID); 18: String churchName = ""+getJsonValue(jsonStr, "oc"); 19: return churchName.trim(); An error occurred at line: [36] in the jsp file: [/church/churchAPI.jsp] JSONObject cannot be resolved to a type 33: try{ 34: String str = readFileLocal("C:\\apache-tomcat-7.0.21\\webapps\\ROOT\\church\\church.json"); 35: Vector city = new Vector(); 36: JSONObject jsonObjectJackyFromString = new JSONObject(str); 37: String jsonStr = ""+jsonObjectJackyFromString.get(ID); 38: String churchName = ""+getJsonValue(jsonStr, "oc"); 39: An error occurred at line: [36] in the jsp file: [/church/churchAPI.jsp] JSONObject cannot be resolved to a type 33: try{ 34: String str = readFileLocal("C:\\apache-tomcat-7.0.21\\webapps\\ROOT\\church\\church.json"); 35: Vector city = new Vector(); 36: JSONObject jsonObjectJackyFromString = new JSONObject(str); 37: String jsonStr = ""+jsonObjectJackyFromString.get(ID); 38: String churchName = ""+getJsonValue(jsonStr, "oc"); 39: Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:212) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:552) org.apache.jasper.compiler.Compiler.compile(Compiler.java:381) org.apache.jasper.compiler.Compiler.compile(Compiler.java:351) org.apache.jasper.compiler.Compiler.compile(Compiler.java:335) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:597) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330) javax.servlet.http.HttpServlet.service(HttpServlet.java:741) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
Note The full stack trace of the root cause is available in the server logs.