这么一件小事折腾了一个多小时,google也上不去,对百度我就不吐槽什么了,最后用bing查出了满意的结果。一般程序中不要显式把jsp.jar和servlet.jar放在Lib目录下,因为tomcat目录下自带,如果添加进去反而会冲突。但是eclipse中不把两个包放进去又编译不通过,这只要用eclipse导入这两个包就可以了。
相关文章
- Servlet.service() for Servlet jsp threw exception javax.servlet.ServletException:File "/pageFoo
- 报错:严重: Servlet.service() for servlet [jsp] in context with path [/20161116-Struts2-6] threw exception [/index.jsp (line: 13, column: 20) No tag "textfiled" defined in tag library imported with prefix
- 关于 Servlet.service() for servlet jsp threw exception的问题
- 严重: Servlet.service() for servlet [jsp] threw exception java.lang.NullPointerException