maven新建web项目提示The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 在pom.xml中添加下面代码来下载servlet-api: <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId>…
在maven web项目中的index.jsp中的错误信息如下: The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 从错误信息可以看出来,找不到该类,也就是说找不到相应jar包. 所以解决方法就是引用相应jar包即可. 前提: 需要设置Server Runtime, Window -> Perferences -> Server -> Runtime…
具体表现为: 使用Eclipse+Maven建立了一个Javaweb工程,JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path. 解决方法: 在pom.xml中的 <build></build>中 添加: <plugins> <!-- 编码和编译和JDK版本 --> <plug…
用Eclipse创建了一个maven web程序,使用tomcat8.5作为服务器,可以正常启动,但是却报如下错误 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 网上查找相关资料发现是忘记在properties-java build path--library中配置server runtime--tomcat了. 操作步骤Add Library-Server Ru…
Description Resource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path index.jsp /ssm-crud/WebRoot line 1 JSP Problem 解决办法如下所示: 在add Library时,没有server runtime,就是用MyEclipse server library 然后ne…
在eclipse 中使用maven 创建java web项目,启动服务器遇到提示:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 一般解决方案:在pom.xml中添加依赖关系: <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet…
Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 新建jsp页面老提示: Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" was…