Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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
 
Bartender
Posts: 19673
92
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!