码迷,mamicode.com
首页 > Web开发 > 详细

maven项目 jsp报错

时间:2017-03-03 22:42:02      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:version   report   ack   tac   api   lang   index   div   base   

 1 HTTP Status 500 - java.lang.NullPointerException
 2 
 3 type Exception report
 4 
 5 message java.lang.NullPointerException
 6 
 7 description The server encountered an internal error that prevented it from fulfilling this request.
 8 
 9 exception
10 
11 org.apache.jasper.JasperException: java.lang.NullPointerException
12     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:585)
13     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:396)
14     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
15     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
16     javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
17     org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
18     org.nutz.mvc.NutFilter.nextChain(NutFilter.java:226)
19     org.nutz.mvc.NutFilter.doFilter(NutFilter.java:201)
20 root cause
21 
22 java.lang.NullPointerException
23     org.apache.jsp.index_jsp._jspInit(index_jsp.java:31)
24     org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:49)
25     org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:180)
26     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
27     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
28     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
29     javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
30     org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
31     org.nutz.mvc.NutFilter.nextChain(NutFilter.java:226)
32     org.nutz.mvc.NutFilter.doFilter(NutFilter.java:201)
33 note The full stack trace of the root cause is available in the Apache Tomcat/7.0.47 logs.

原因是jar冲突

删掉就OK了。

<dependency>
  <groupId>javax.servlet.jsp</groupId>
  <artifactId>jsp-api</artifactId>
  <version>2.2.1-b03</version>
</dependency>

 

maven项目 jsp报错

标签:version   report   ack   tac   api   lang   index   div   base   

原文地址:http://www.cnblogs.com/tiankongjava/p/6498443.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!