Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Eclipse Web Tools Platform Project (WTP) » JSP error - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Buil
JSP error - The superclass "javax.servlet.http.HttpServlet" was not found on the Java Buil [message #1853581] Fri, 08 July 2022 21:31 Go to next message
Jon M is currently offline Jon MFriend
Messages: 2
Registered: July 2022
Junior Member
When I create any JSP file, I get the error "The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path". I'm using Tomcat 10, so the proper class would be "jakarta.servlet.http.HttpServlet". I didn't have this error previously and nothing changed with my project, but I did update Eclipse which might have caused the problem. I reverted to my previous installs but the error persisted. My current Eclipse version is 2022-06 (4.24.0).
Re: JSP error - The superclass "javax.servlet.http.HttpServlet" was not found on the Java [message #1853584 is a reply to message #1853581] Sat, 09 July 2022 04:33 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Which version of the Dynamic Web Module facet is set on your project? For jakarta.servlet.http.HttpServlet, it should be 5.0.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: JSP error - The superclass "javax.servlet.http.HttpServlet" was not found on the Java [message #1853588 is a reply to message #1853584] Sat, 09 July 2022 14:07 Go to previous messageGo to next message
Jon M is currently offline Jon MFriend
Messages: 2
Registered: July 2022
Junior Member
Not sure how it got changed, but that was the issue. It was set to 3.0. Thank you for the help.
Re: JSP error - The superclass "javax.servlet.http.HttpServlet" was not found on the Java [message #1853826 is a reply to message #1853581] Tue, 19 July 2022 10:40 Go to previous message
Juan Neumann is currently offline Juan NeumannFriend
Messages: 2
Registered: July 2022
Junior Member
Add a runtime first and select project properties. Then check the server name from the 'Runtimes' tab
Previous Topic:I find that the speed of pasting "${a}" and "${a" in JSP file is very slow
Next Topic:How to configure Eclipse for tag auto- completion?
Goto Forum:
  


Current Time: Thu Apr 25 01:43:23 GMT 2024

Powered by FUDForum. Page generated in 0.03369 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top