org.apache.jasper.JasperException: java.lang.IllegalStateException: No Java compiler available org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:527) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:73) com.wvmagic.rf.filter.NoCacheFilter.doFilter(NoCacheFilter.java:73)
root cause
java.lang.IllegalStateException: No Java compiler available org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:229) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:581) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:73) com.wvmagic.rf.filter.NoCacheFilter.doFilter(NoCacheFilter.java:73)
出现类似异常原因是在tomcat/lib下缺少jasper-jdt.jar
在高版本的tomcat/lib中找到,拷贝过去即可