Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Eclipse Web Tools Platform Project (WTP) » [RESOLVED]The superclass "javax.servlet.http.HttpServlet" was not found(Eclipse is not finding jsp_api.jar in the tomcat 9 server)
[RESOLVED]The superclass "javax.servlet.http.HttpServlet" was not found [message #1781865] Wed, 14 February 2018 00:35 Go to next message
Jim Anderson is currently offline Jim AndersonFriend
Messages: 72
Registered: October 2014
Member
I have created a Enterprise Application Project in Eclipse Oxygen JEE and brought some JSP source code into the project. I'm getting error messages from my JSP files that all say,

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


I searched the internet and found a few references to this problem, e.g. https://stackoverflow.com/questions/22756153/the-superclass-javax-servlet-http-httpservlet-was-not-found-on-the-java-build.

I found that the problem is due to Eclipse's failure to find jsp_api.jar in tomcat, but the recommended solutions did not work. These suggestions included selecting the project and enter preferences --> project facets --> runtime environment and rebuilding and adding jsp_api.jar to the build path.

I tried these, but have not been successful.

Is there something else to try?

Jim

[Updated on: Thu, 15 February 2018 15:39]

Report message to a moderator

Re: [RESOLVED]The superclass "javax.servlet.http.HttpServlet" was not found [message #1781997 is a reply to message #1781865] Thu, 15 February 2018 15:41 Go to previous message
Jim Anderson is currently offline Jim AndersonFriend
Messages: 72
Registered: October 2014
Member
I added the tomcat/lib/servlet-api.jar file to my build path. This is the jar file that contains "javax.servlet.http.HttpServlet".
Previous Topic:Why I cannot run Eclipse?
Next Topic:How to use EclipseLink to implement multi-tenancy
Goto Forum:
  


Current Time: Tue Sep 18 17:07:08 GMT 2018

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

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

Back to the top