• Post Reply Bookmark Topic Watch Topic
  • New Topic

abt error in jsf

 
Ajeeth Kannan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why do I get this error while creating the jsf project in eclipse?

The superclass "javax.servlet.http.HttpServlet" was not found on the Java
Build Path
jsferror.png
[Thumbnail for jsferror.png]
 
Ajeeth Kannan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I m in an urgency. please... can some one help me!!!

Thank you
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Ajeeth!

We're not a good place to get answers in a hurry. Since we don't get paid, people show up if and when it is convenient, rather than on a fixed schedule.

This isn't really a JSF problem, it's an IDE problem. The short answer is that the HttpServlet class isn't on the build path because you didn't setup your project to include it on your build path.

Eclipse does not come with a built-in J2EE server or J2EE libraries. You have to add them to Eclipse according to whatever server type(s) you are planning to work with - Tomcat, JBoss/WildFly, WebSphere, or whatever. The HttpServlet class will come included with that server and you must configure your project to reference it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!