org.apache.jasper.JasperException: Unable to compile class for JSP:
生成的java文件中的行:[14]发生错误: [d:\ BT.metadata.plugins \ org.eclipse.wst.server.core \ TMP0 \工作\卡塔利娜\本地主机\ EP-SERVICEPLUS \组织\阿帕奇\ JSP \ WEB_002dINF \视图\ customjsp_16_2020 \ SendEmail_jsp.java] 只能导入一种类型。 com.org.ep.srvpls.entity.ActionOnTaskDataForCustormJsp解析为 包 堆栈跟踪: 在org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366) 在org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:485) 在org.apache.jasper.compiler.Compiler.compile(Compiler.java:379) 在org.apache.jasper.compiler.Compiler.compile(Compiler.java:354) 在org.apache.jasper.compiler.Compiler.compile(Compiler.java:341) 在org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657) 在org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357) 在org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) 在org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:731) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 在org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604) 在org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954) at org.apache.jsp.WEB_002dINF.views.approval.ActionNew_jsp._jspx_meth_c_005fif_005f78(ActionNew_jsp.java:14053) at org.apache.jsp.WEB_002dINF.views.approval.ActionNew_jsp._jspx_meth_c_005fotherwise_005f12(ActionNew_jsp.java:13976) at org.apache.jsp.WEB_002dINF.views.approval.ActionNew_jsp._jspx_meth_c_005fchoose_005f0(ActionNew_jsp.java:3282) at org.apache.jsp.WEB_002dINF.views.approval.ActionNew_jsp._jspService(ActionNew_jsp.java:1961) 在org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:731) 在org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) 在org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) 在org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:731) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 在org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 在org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486) 在org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411) 在org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338) 在org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238) 在org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:264) 在org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1208) 在org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992) 在org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939) 在org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) 在org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) 在org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:650) 在org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:731) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 在org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.org.ep.filter.AnnotationFilter.doFilter(AnnotationFilter.java:152) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 在org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:67) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 在org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) 在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) 在org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) 在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) 在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) 在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 在org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) 在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) 在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) 在org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) at org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:620) at org.apache.tomcat.util.net.JIoEndpoint $ SocketProcessor.run(JIoEndpoint.java:318) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor $ Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61) 在java.lang.Thread.run(未知来源)
答案 0 :(得分:0)
该错误意味着您有一个名为com.org.ep.srvpls.entity.ActionOnTaskDataForCustormJsp的包,您尝试在JSP页面中导入该包。 com.org.ep.srvpls.entity.ActionOnTaskDataForCustormJsp应该是一个java类。你能仔细检查一下,如果这不是JSP的源代码那么问题。