jsp-apr.jar 空指针问题

今天在开发项目的过程时,加入了jsp-api.jar,服务器启动访问页面一直报NullPointerException,错误如下:

严重: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.WEB_002dINF.jsp.UserAction.loginUI_jsp._jspInit(loginUI_jsp.java:37)
at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)

 

 

一开始以为是jsp-api.jar与tomcat冲突了,就换了tomcat的jsp-api.jar,可还是报错,最后将Server Runtime配置到项目里,才将错误解决!

你可能感兴趣的:(java,apache,tomcat,jsp,servlet)