JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
来源:互联网 发布:php 获取当前页面参数 编辑:程序博客网 时间:2024/05/04 19:40
今天使用Eclipse+Maven建立了一个Javaweb工程,并在eclipse中配置了Web容器Jboss eap 6.2。新建jsp页面,添加一个简单
的Java类。可是,JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServlet" was not
found on the Java Build Path。原来Javaweb工程类中没有添加Web 容器Runtime相关类导致。
错误提示:
解决方法很简单,在pom.xml中添加如下配置即可:
按 Ctrl+C 复制代码
按 Ctrl+C 复制代码
补充:如果还提示错误,还可以尝试下面的方式:
1、右击web工程-》属性或Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》JBoss 7.1 Runtime
2、切换到Java Build Path界面中的Orader and Export,选择
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"
- ImageView控件背景选择器
- 20. Valid Parentheses
- C/C++中变量的可见性与生命期区别的本质原因
- 解惑 spring 嵌套事务
- 关于屏幕那些事儿
- JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- CSS手写遮罩
- 算法基础---递归题目 之 文件结构“图”
- git命令总结
- 前端工程师-----一些ps小技巧
- Exception获取getMessage()为空
- Libevent源码分析-----evbuffer结构与基本操作
- jenkins疑难解答
- Linux下使用shell脚本自动监控重启tomcat