The superclass javax.servlet.http.HttpServlet was not found on the Java Buid Path
jsp顶部出现The superclass javax.servlet.http.HttpServlet was not found on the Java Buid Path
解决方法:
错误:
项目中某一.jps页面忽然出现错误,鼠标点上去为:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path.
忽视错误,在Eclipse下启动tomcat的时候,报错为:Eclipse下启动tomcat报错:The archive: D:/Program Files/apache-tomcat-7.0.52/bin/bootstrap.jar which is referenced by the classpath, does not exist.查找原因:
原本我的Tomcat路径为:D:\Program Files\apache-tomcat-7.0.52\,后来由于重装系统,改为:D:\ProgramFiles\apache-tomcat-7.0.52\,在报错中可以发现是缺少servlet-api.jar,也即tomcat路径问题。尝试解决:
①.
1.右键点击项目->build path->configure build path->add library->server runtime->apache tomcat
无果,无法添加。
②.
1.打开Eclipse中tomcat配置,就是双击server选项卡中的tomcat,然后选择openlaunch configuration,如下图所示:
解决方法:
1.错误:
项目中某一.jps页面忽然出现错误,鼠标点上去为:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path.
忽视错误,在Eclipse下启动tomcat的时候,报错为:Eclipse下启动tomcat报错:The archive: D:/Program Files/apache-tomcat-7.0.52/bin/bootstrap.jar which is referenced by the classpath, does not exist.
2.查找原因:
原本我的Tomcat路径为:D:\Program Files\apache-tomcat-7.0.52\,后来由于重装系统,改为:D:\ProgramFiles\apache-tomcat-7.0.52\,在报错中可以发现是缺少servlet-api.jar,也即tomcat路径问题。
3.尝试解决:
①.
1.右键点击项目->build path->configure build path->add library->server runtime->apache tomcat
无果,无法添加。
②.
1.打开Eclipse中tomcat配置,就是双击server选项卡中的tomcat,然后选择openlaunch configuration,如下图所示:
2.打开以后会出现如下界面:
3.如上图所示,将错误路径删除,并保证正确配置tomcat-juli.jar和bootstrap.jar这两个jar包的路径。
无果,修改后仍启动不了Tomcat。
③.
1.在server选项卡中删除所有server,新建tomcat。
无果,无法新建。
④.
1.退出 eclipse
2.到[工程目录下]/.metadata/.plugins/org.eclipse.core.runtime
3.把org.eclipse.wst.server.core.prefs和 org.eclipse.jst.server.tomcat.core.prefs这两个文件去掉
4.重启eclipse
无果,没找到org.eclipse.wst.server.core.prefs和 org.eclipse.jst.server.tomcat.core.prefs这两个文件。
⑤.
1.在Eclipse中,Window–>preference --> servers --> runtime --> environments --> 全部删除2.Add–>Browse–>选择本地tomcat文件夹所在位置–>确定 --> finish–>OK
成功!结论:
实际上是preference中路径错误的问题,直接删除掉server再重建的方法不行。
以后在移动相关资源或者依赖资源的时候会对原有的依赖它的项目产生影响。尽量将自己的IDE和相关的环境固定,少做更改,减少那些隐藏的错误出现的几率。
The superclass javax.servlet.http.HttpServlet was not found on the Java Buid Path相关推荐
- JavaWeb: 报错信息The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path...
JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bui ...
- 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 Ja ...
- 解决eclipse出现The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path
解决eclipse出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build ...
- 项目出现 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
项目场景: jsp文件报错 错误为The superclass "javax.servlet.http.HttpServlet" was not found on the Java ...
- [Solution] The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
HttpServlet需要tomcat等. 右键project点开properties>project facets> 在右侧栏的Runtime tab中勾选tomcat或者新建tomca ...
- Eclipse中新建jsp提示The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path
场景 新建jsp页面,提示如下 解决 右击项目--Build Path--Config Build Path Add Library--Server Runtime next--选择Tomcat--F ...
- 新建jsp报错“The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path”...
今天新建jsp文件时,就报错"Visual Page Editor has experimental support for Windows 64-bit",然后刚好stackov ...
最新文章
- StringBuffer与StringBuilder的区别
- XML 文档(0, 0)中有错误。缺少根元素。
- 登录功能和公聊功能的实现
- 设计模式学习笔记(十七)——Command命令模式
- Datawhale组队-Pandas(下)时序数据(打卡)
- 程序员真是一门苦差事!
- 删除js数组中制定内容
- 神经网络中的Softmax激活函数
- python爬虫知识点总结(七)PyQuery详解
- jQuery用户从服务器端注册登录
- C# 通过PostMessage完成UI的更新
- linux修复u盘的软件下载,修复U盘合集工具
- CAD卸载方法,如何完全彻底卸载删除清理干净CAD各种残留注册表和文件? 【转载】
- SosoApi使用手册
- 求基于图像处理的身份证号码识别的程序
- android ipad 播放器,[AS3]专业级跨平台网页播放器支持PC、iPad、iPhone、Android系统...
- 软件测试字节跳动头条项目面试,字节跳动|今日头条面试经验分享
- js字符转换成分数_js小数转分数-近似递归
- 想学CNC编程的一定要看过来~
- MPU6050/6500/9250中断读取原始数据(基于STM32F103)