Win a copy of Spring in Action (5th edition) this week in the Spring 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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: 19988
95
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!