maven web报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

原创 2015年11月20日 17:58:46
今天建立了一个maven web工程,并在eclipse中配置了Web容器Tomcat。新建jsp页面,添加一个简单的Java类。可是,JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path。原来Javaweb工程类中没有添加Tomcat运行时相关类导致。
下面是具体的解决方法:
1、右击web工程-》属性或Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》Tomcat Server
2、切换到Java Build Path界面中的Orader and Export,选择Tomcat。
版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path表头报错解决

用eclipse做jsp文件,自动创立的文件表头出现这个报错,应该怎么处理? JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpSe...

如何解决JSP页面顶端报错 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

题目有点长,昨天刚接触jsp,按照网上的教程安装完 tomcat 和 eclipse EE 之后,新建jsp文件却出现了如下报错: The superclass "javax.servlet.http...

JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path"

eclipse刚安装好,新建工程的时候jsp页面顶端出现错误: The superclass “javax.servlet.http.HttpServlet” was not found on t...

eclipse部署java web程序报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Buil

eclipse部署java web程序报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Buil...

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

INF/jsp/management/news line 1 JSP Problem 在出现此错误的项目上单击鼠标右键》Build Path》Configure Build Path ...

【SpringMVC】The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path解决方案

1.配置Tomcat   Eclipse下方的选项卡【Servers】点击【No servers are available.Click this link to create  a new ser...

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

我们在用Eclipse进行Java web开发时,可能会出现这样的错误:The superclass javax.servlet.http.HttpServlet was not found on t...

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

INF/jsp/management/news line 1 JSP Problem 在出现此错误的项目上单击鼠标右键》Build Path》Configure Build Pat...

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

版权声明:本文为转载文章,未经原博主允许不得转载。 http://blog.csdn.net/testcs_dn/article/details/36455669#comments ...

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

SHOP项目中遇到的问题-01
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)