web项目jsp出现The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path错误
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了web项目jsp出现The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path错误相关的知识,希望对你有一定的参考价值。
原因是Javaweb工程类中没有添加Tomcat运行时相关类导致。
解决方式如下:
出错的文件---->>build path---->>config build path---->>java build path---->>libraries---->>add library---->>server runtime---->>tomcat7.0 finish 就ok了!
今天这个页面再次出现,这次解决没有进行tomcat的加载,而是在pom加了jar的依赖:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
问题解决!
以上是关于web项目jsp出现The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path错误的主要内容,如果未能解决你的问题,请参考以下文章
JSP页面顶端出现错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Buil
[IDE - Eclipse] JSP报错:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Buil
index.jsp报错The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bui
JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Buil
JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bui
Eclipse中新建Maven Web项目报错:The superclass "javax.servlet.http.HttpServlet" was not found on t