HTTP Status 500 - Unable to compile class for JSP:
type Exception report
message Unable to compile class for JSP:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [20] in the generated java file: [D:\cheshi\apache-tomcat-8.5.9\work\Catalina\localhost\helloOradb2\org\apache\jsp\helloOradb\WebRoot\system\workdesk\main_jsp.java]
Only a type can be imported. org.qudaotong.service.impl.GlobalServiceImpl resolves to a package
An error occurred at line: [21] in the generated java file: [D:\cheshi\apache-tomcat-8.5.9\work\Catalina\localhost\helloOradb2\org\apache\jsp\helloOradb\WebRoot\system\workdesk\main_jsp.java]
Only a type can be imported. org.qudaotong.tooutside.webservice.DbServiceImpl resolves to a package
An error occurred at line: [22] in the generated java file: [D:\cheshi\apache-tomcat-8.5.9\work\Catalina\localhost\helloOradb2\org\apache\jsp\helloOradb\WebRoot\system\workdesk\main_jsp.java]
Only a type can be imported. net.sf.json.JSONArray resolves to a package
An error occurred at line: [23] in the generated java file: [D:\cheshi\apache-tomcat-8.5.9\work\Catalina\localhost\helloOradb2\org\apache\jsp\helloOradb\WebRoot\system\workdesk\main_jsp.java]
Only a type can be imported. org.qudaotong.tooutside.webservice.JavaObjectVSJSON resolves to a package
An error occurred at line: 41 in the jsp file: /helloOradb/WebRoot/system/workdesk/main.jsp
GlobalServiceImpl cannot be resolved to a type
38: String SD="0";//鏄惁閿佸畾
39: String ZS="0";//鏄惁鏈夎瘉涔�
40: String BA="0";//鏄惁鏈夊妗�
41: GlobalServiceImpl bs= (GlobalServiceImpl) org.qudaotong.dao.Global.getInstance().getService("globalServiceImpl");
42:
43: //浠庢暟鎹簱閲屾壘鍑烘潵 鏈烘瀯ID锛屾満鏋勫悕绉般�
44: bs.executeUpdateBySql("update tb_organ_info1 set Hydm='"+ZKHLCode+"' where id ="+accno);
An error occurred at line: 41 in the jsp file: /helloOradb/WebRoot/system/workdesk/main.jsp
GlobalServiceImpl cannot be resolved to a type
38: String SD="0";//鏄惁閿佸畾
39: String ZS="0";//鏄惁鏈夎瘉涔�
40: String BA="0";//鏄惁鏈夊妗�
41: GlobalServiceImpl bs= (GlobalServiceImpl) org.qudaotong.dao.Global.getInstance().getService("globalServiceImpl");
42:
43: //浠庢暟鎹簱閲屾壘鍑烘潵 鏈烘瀯ID锛屾満鏋勫悕绉般�
44: bs.executeUpdateBySql("update tb_organ_info1 set Hydm='"+ZKHLCode+"' where id ="+accno);
An error occurred at line: 41 in the jsp file: /helloOradb/WebRoot/system/workdesk/main.jsp
org.qudaotong.dao.Global cannot be resolved to a type
38: String SD="0";//鏄惁閿佸畾
39: String ZS="0";//鏄惁鏈夎瘉涔�
40: String BA="0";//鏄惁鏈夊妗�
41: GlobalServiceImpl bs= (GlobalServiceImpl) org.qudaotong.dao.Global.getInstance().getService("globalServiceImpl");
42:
43: //浠庢暟鎹簱閲屾壘鍑烘潵 鏈烘瀯ID锛屾満鏋勫悕绉般�
44: bs.executeUpdateBySql("update tb_organ_info1 set Hydm='"+ZKHLCode+"' where id ="+accno);
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:457)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:377)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:333)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:600)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:368)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
type Exception report
message Unable to compile class for JSP:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [20] in the generated java file: [D:\cheshi\apache-tomcat-8.5.9\work\Catalina\localhost\helloOradb2\org\apache\jsp\helloOradb\WebRoot\system\workdesk\main_jsp.java]
Only a type can be imported. org.qudaotong.service.impl.GlobalServiceImpl resolves to a package
An error occurred at line: [21] in the generated java file: [D:\cheshi\apache-tomcat-8.5.9\work\Catalina\localhost\helloOradb2\org\apache\jsp\helloOradb\WebRoot\system\workdesk\main_jsp.java]
Only a type can be imported. org.qudaotong.tooutside.webservice.DbServiceImpl resolves to a package
An error occurred at line: [22] in the generated java file: [D:\cheshi\apache-tomcat-8.5.9\work\Catalina\localhost\helloOradb2\org\apache\jsp\helloOradb\WebRoot\system\workdesk\main_jsp.java]
Only a type can be imported. net.sf.json.JSONArray resolves to a package
An error occurred at line: [23] in the generated java file: [D:\cheshi\apache-tomcat-8.5.9\work\Catalina\localhost\helloOradb2\org\apache\jsp\helloOradb\WebRoot\system\workdesk\main_jsp.java]
Only a type can be imported. org.qudaotong.tooutside.webservice.JavaObjectVSJSON resolves to a package
An error occurred at line: 41 in the jsp file: /helloOradb/WebRoot/system/workdesk/main.jsp
GlobalServiceImpl cannot be resolved to a type
38: String SD="0";//鏄惁閿佸畾
39: String ZS="0";//鏄惁鏈夎瘉涔�
40: String BA="0";//鏄惁鏈夊妗�
41: GlobalServiceImpl bs= (GlobalServiceImpl) org.qudaotong.dao.Global.getInstance().getService("globalServiceImpl");
42:
43: //浠庢暟鎹簱閲屾壘鍑烘潵 鏈烘瀯ID锛屾満鏋勫悕绉般�
44: bs.executeUpdateBySql("update tb_organ_info1 set Hydm='"+ZKHLCode+"' where id ="+accno);
An error occurred at line: 41 in the jsp file: /helloOradb/WebRoot/system/workdesk/main.jsp
GlobalServiceImpl cannot be resolved to a type
38: String SD="0";//鏄惁閿佸畾
39: String ZS="0";//鏄惁鏈夎瘉涔�
40: String BA="0";//鏄惁鏈夊妗�
41: GlobalServiceImpl bs= (GlobalServiceImpl) org.qudaotong.dao.Global.getInstance().getService("globalServiceImpl");
42:
43: //浠庢暟鎹簱閲屾壘鍑烘潵 鏈烘瀯ID锛屾満鏋勫悕绉般�
44: bs.executeUpdateBySql("update tb_organ_info1 set Hydm='"+ZKHLCode+"' where id ="+accno);
An error occurred at line: 41 in the jsp file: /helloOradb/WebRoot/system/workdesk/main.jsp
org.qudaotong.dao.Global cannot be resolved to a type
38: String SD="0";//鏄惁閿佸畾
39: String ZS="0";//鏄惁鏈夎瘉涔�
40: String BA="0";//鏄惁鏈夊妗�
41: GlobalServiceImpl bs= (GlobalServiceImpl) org.qudaotong.dao.Global.getInstance().getService("globalServiceImpl");
42:
43: //浠庢暟鎹簱閲屾壘鍑烘潵 鏈烘瀯ID锛屾満鏋勫悕绉般�
44: bs.executeUpdateBySql("update tb_organ_info1 set Hydm='"+ZKHLCode+"' where id ="+accno);
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:457)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:377)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:333)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:600)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:368)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/8.5.9 logs.
把项目放入tomcat中出现这种错误