Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not found解决方法

翻译:在资源路径位置找不到这个javax.servlet.http.HttpServlet这个类

 

问题一:这个类在哪里呢(注意servlet猜测应该是tomcate所依赖的jar包)

Resource	Path	Location	Type The superclass "javax.servlet.http.HttpServlet" was not found解决方法

这个jar包解压一下(果真在这里)

Resource	Path	Location	Type The superclass "javax.servlet.http.HttpServlet" was not found解决方法

看到这里就应该知道原因了:在Java构建路径中在编译Java项目时找不到依赖的类。

这个jar包缺失要么是tomcate的lib文件下没有这个包(可能性很小),要么是tomcate不存在

 

Resource	Path	Location	Type The superclass "javax.servlet.http.HttpServlet" was not found解决方法

点击add library -----server runtime------添加你所用的tomcate即可

Resource	Path	Location	Type The superclass "javax.servlet.http.HttpServlet" was not found解决方法

 

此时jsp保错就解决了。