• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

abt error in jsf  RSS feed

 
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
 
Saloon Keeper
Posts: 20510
115
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!