Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to resolve The superclass "javax.servlet.http.HttpServlet" was not found on the Java B
How to resolve The superclass "javax.servlet.http.HttpServlet" was not found on the Java B [message #1794570] Mon, 03 September 2018 08:09 Go to next message
Peter Cheung is currently offline Peter CheungFriend
Messages: 2
Registered: September 2018
Junior Member
I'm new to Java and Eclipse. I have installed Eclipse Java EE IDE for Web Developers Version: Oxygen.3a Release (4.7.3a).

I have created a simple Dynamic Web Project which will be deployed to WebLogic Server 12.2.1.3.

I added a jsp file to the project but it got this marker The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path.

How do I resolve that marker?

[Updated on: Mon, 03 September 2018 11:33] by Moderator

Report message to a moderator

Re: How to resolve The superclass "javax.servlet.http.HttpServlet" was not found on the Ja [message #1794732 is a reply to message #1794570] Wed, 05 September 2018 17:07 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Is that type on the Java Build Path? Is the project targeting a Server? That class should be provided by the server you're using in the project.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: How to resolve The superclass "javax.servlet.http.HttpServlet" was not found on the Ja [message #1794752 is a reply to message #1794732] Thu, 06 September 2018 06:51 Go to previous message
Peter Cheung is currently offline Peter CheungFriend
Messages: 2
Registered: September 2018
Junior Member
I was able to resolve the issue by adding javax.servlet.javax.servlet-api.jar to the WebContent\WEB-INF\lib. I copied that jar file from WebLogic 12.2.1.3 server installed on a linux server. I'm not sure whether this is the correct or recommended way to resolve the issue.

If I understand correctly about targeting a server, it means that I need to have WebLogic server installed on my machine first.
Previous Topic:Why is Eclipse's Run button not working?
Next Topic:How to remove the toolbar "launch-stuff" introduced in Photon?
Goto Forum:
  


Current Time: Thu Mar 28 18:19:26 GMT 2024

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

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

Back to the top