The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
来源:互联网 发布:win8.1装ubuntu双系统 编辑:程序博客网 时间:2024/05/22 08:22
(一)问题:
JavaWeb项目中写的JSP页面需要Web容器解析处理成HTML才能展示到前端浏览器,解析JSP需要Web容器。
JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path。
异常的原因:javax.servlet.http.HttpServlet是Web容器Tomcat包中的类,将tomcat的jar包导入到项目中就可以了。
可能myeclipse没有server library,添加方法:
(1)File->New->Other
(2)弹出窗口勾上Show All Wizards,然后在type fiter text那里输入Server,选中server->next->选中apache->选tomcat v7.0 server->下面有server name可以按照自己的需要填写->next->选择要添加server library的项目->finish即可
阅读全文
0 0
- 建立java 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
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 【Bug笔记】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
- 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
- 关于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
- 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
- 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
- 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
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- EclipseProblems: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
- struts2注解开发,运行原理
- Log管理
- runProguard false:Could not find method runProguard()
- 关于调用存储过程-事务使用
- 闭包
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 跳板机
- Python 变量类型
- I wanna go home
- oracle插入值太大,超过限制数的处理ORA-12899,ora-01489
- Jquery上传图片至服务器
- Windows基础排查之一
- Android设计模式-单例模式(Singleton)
- Pentaho PDI 数据导入关于时间格式及重复数据处理这2个问题的解决方法