新建 jsp异常,The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

  新项目,新建jsp页面的时候报异常:

Multiple annotations found at this line:
    - The superclass "javax.servlet.http.HttpServlet" was
     not found on the Java Build Path
    - The superclass "javax.servlet.http.HttpServlet" was
     not found on the Java Build Path

  右击项目 -> Properties -> Java Build Path -> Libraries 选项 -> 点击 Add Library -> Server Runtime

  选择tomcate -> 完成。

  如下:

  再看jsp 页面已经正常了。

时间: 2024-10-15 12:41:48

新建 jsp异常,The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path的相关文章

web项目jsp出现The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path错误

今天搭建环境Eclipse,一个简单的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---->>libr

eclipse中web工程新建jsp文件报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

web工程中新建jsp文件提示:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方案: 1.右击web工程->属性或Build Path->Java Build Path->Libraries-> Add Libray...->Server Runtime ->JBoss 7.1 Runtime   2.切换到Java Bui

jsp页面提示“Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”解决方案

Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 新建jsp页面老提示: Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" was

Eclipse新建web项目出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

Eclipse新建web项目出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 新建web项目后都,jsp页面顶端出现"红色"的报错信息:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path,经过仔细查看,原来是

eclipse新建maven项目报错The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path的解决方案

具体表现为: 使用Eclipse+Maven建立了一个Javaweb工程,JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path. 解决方法: 在pom.xml中的  <build></build>中  添加: <plugins> <!-- 编码和编译和JDK版本 --> <plug

JSP报错:The superclass &quot;javax.servlet.http.HttpServlet&quot; was not found on the Java Build Path

解决方案: 1.根据文档检查发现并没有安装Tomcat,然后准备在Eclipse中安装Tomcat. JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 2.Eclipse中集成Tomcat,安装好以后,在菜单栏依旧没有猫咪.于是又准备去进行第三步,安装Tomcat插件. http://www.cnblogs.com/leiOOlei/p/3372258.h

index.jsp报错The superclass &quot;javax.servlet.http.HttpServlet&quot; was not found on the Java Build Path的解决办法

1.index.jsp报错The superclass "javax.servlet.http.HttpServlet" was not found on the   Java Build Path的解决办法 主要是Javaweb工程类中没有添加Web 容器Runtime相关类导致: 第一: 右击项目名称->propertise->java build path->libraries->add libraries->server runtime->选

Eclipse中新建Maven Web项目报错:The superclass &quot;javax.servlet.http.HttpServlet&quot; was not found on the Java Build Path

在maven web项目中的index.jsp中的错误信息如下: The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 从错误信息可以看出来,找不到该类,也就是说找不到相应jar包. 所以解决方法就是引用相应jar包即可. 前提: 需要设置Server Runtime, Window -> Perferences -> Server -> Runtime

JavaWeb: 报错信息The superclass &quot;javax.servlet.http.HttpServlet&quot; was not found on the Java Build Path

JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 好久不写Jsp,今天建立了一个Javaweb工程,并在eclipse中配置了Web容器Tomcat.原本开心的新建jsp页面,添加一个简单的Java类.可是,JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServl