• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

http.HttpServlet was not found

 
Ranch Hand
Posts: 210
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I develop a Java EE application, I encounter an eclipse configuration problem Oxygen!
here is the error message:

Multiple annotations found at this line:
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build
Path
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build
Path  


all my JSPs are in error.
I suppose I forgot elements in eclipse?

Greetings
Philippe
 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, do you have the Java EE version of Eclipse?

If so, try right-clicking the project and select Targeted Runtimes.  
 
Philippe Ponceblanc
Ranch Hand
Posts: 210
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Knute Snortum wrote:First, do you have the Java EE version of Eclipse?

If so, try right-clicking the project and select Targeted Runtimes.  



Version: Oxygen Release (4.7.0)

i don(r understand >>try right-clicking the project and select Targeted Runtimes

i don't found  Targeted Runtime
 
Philippe Ponceblanc
Ranch Hand
Posts: 210
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Philippe Ponceblanc wrote:

Knute Snortum wrote:First, do you have the Java EE version of Eclipse?

If so, try right-clicking the project and select Targeted Runtimes.  



Version: Oxygen Release (4.7.0)

i don(r understand >>try right-clicking the project and select Targeted Runtimes

i don't found  Targeted Runtime



Question ???

what should I do to declare the resources: jdbc, servlets, tomcat 9.0.2 into classpath Variables exactely
 
Knute Snortum
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Philippe Ponceblanc wrote:Version: Oxygen Release (4.7.0)

i don(r understand >>try right-clicking the project and select Targeted Runtimes

i don't found  Targeted Runtime


You probably don't have the Java EE Developers package.  Do you want to develop EE applications?  If so, you should probably post your question to this forum.
 
Knute Snortum
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Philippe Ponceblanc wrote:what should I do to declare the resources: jdbc, servlets, tomcat 9.0.2 into classpath Variables exactely


I can answer this for non-EE applications.  Are you going to develop an EE app?
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
J(2)EE libraries are defined on the project properties Build Path tab. In my case, I built a user library named TOMCAT and added Tomcat's servlet-api.jar and jsp-api.jar to it. My Tomcat webapp projects then include this library on their Build Path.

If you use the custom project builders/facets on Eclipse and it's a version with the JEE plugins installed (e.g., the Eclipse J2EE spin), then they probably do something similar behind the scenes. Also, I've noted that Maven has the ability to hook into the build path. And most of my serious projects have Maven build capabilities.
 
Philippe Ponceblanc
Ranch Hand
Posts: 210
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i found servlet-api missing !

podt thread / solved
 
reply
    Bookmark Topic Watch Topic
  • New Topic