JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
来源:互联网 发布:lol账号解封软件 编辑:程序博客网 时间:2024/05/18 12:05
今天使用MyEclipse+Maven建立了一个Javaweb工程,并在eclipse中配置了Web容器tomcat。新建jsp页面,添加一个简单
的Java类。可是,JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServlet" was not
found on the Java Build Path。原来Javaweb工程类中没有添加Web 容器Runtime相关类导致。
错误提示:
解决方法很简单,在pom.xml中添加如下配置即可:
1 <dependency>2 <groupId>javax.servlet</groupId>3 <artifactId>servlet-api</artifactId>4 <version>2.5</version>5 <scope>provided</scope>6 </dependency>
0 0
- 报错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报错
- 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 Build Path
- 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 Build Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path.(jsp页面报错)
- 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 Build Path
- 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 Build Path
- 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 Build Path"
- 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 Build Path”
- 新建jsp报错“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”
- eclipse jsp报错 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 Build Path"
- 控制器的生命周期
- Apache Awstats 安装配置系列 (2)之 apache部署WEB项目(配置多个地址)
- 【蘑菇街笔试】
- mysql:管理mysql
- HDU 5455 Fang Fang (水题 模拟)
- JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- Cocos2dx 3.0 过渡篇(三) 触摸机制
- nodejs服务器搭建
- iOS ui设计的乐土
- httrack命令行使用方法
- 黑马程序员--C 语言学习笔记之简介
- Linux下支持rz、sz命令
- Cocos2dx 3.0rc之单点触屏响应 和 多点触屏响应
- hihoCoder#1052 基因工程