JFinal

登录 注册

jsp编译不了

018-02-13 17:36:16

[ERROR]-[Thread: qtp1705929636-18]-[com.jfinal.core.ActionHandler.handle()]: /login

com.jfinal.render.RenderException: org.apache.jasper.JasperException: Unable to compile class for JSP

at com.jfinal.render.JspRender.render(JspRender.java:69)

at com.jfinal.core.ActionHandler.handle(ActionHandler.java:93)

at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)

at org.eclipse.jetty.server.Server.handle(Server.java:365)

at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)

at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)

at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)

at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)

at java.lang.Thread.run(Thread.java:745)

Caused by: org.apache.jasper.JasperException: Unable to compile class for JSP

at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:611)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:368)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)

at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:276)

at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103)

at com.jfinal.render.JspRender.render(JspRender.java:67)

... 25 more

Caused by: java.lang.NullPointerException

at org.apache.jasper.compiler.Validator$ValidateVisitor.<init>(Validator.java:517)

at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1854)

at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:221)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:335)

at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:595)

... 42 more


2018-02-13 17:39:43

[WARN]-[Thread: qtp1705929636-17]-[com.jfinal.core.ActionHandler.handle()]: 404 Action Not Found: /wordpress/


2018-02-13 17:39:45

[WARN]-[Thread: qtp1705929636-23]-[com.jfinal.core.ActionHandler.handle()]: 404 Action Not Found: /wordpress/


评论

  • 02-13 19:16
    这个问题很可能是用于编译 JSP 的 jar 包版本不正确

    jfinal 不参与 JSP 编译的任何工作,所以排查的关注要排除掉 jfinal
  • 发送