• Post Reply Bookmark Topic Watch Topic
  • New Topic

http.HttpServlet was not found  RSS feed

 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • 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: 4537
128
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • 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: 107
  • Mark post as helpful
  • send pies
  • 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: 107
  • Mark post as helpful
  • send pies
  • 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: 4537
128
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • 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: 4537
128
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • 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: 19014
80
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i found servlet-api missing !

podt thread / solved
 
What a show! What atmosphere! What fun! What a tiny ad!
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!