Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setup configaration to run servlet on eclipse

 
partha malik
Greenhorn
Posts: 9
Chrome Eclipse IDE Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,
i m getting problem to run servlet.i m not sure i set up apache-tomcat-5.5.35 properly.as when i type http://localhost:8080/ in browser it gives error HTTP Status 404 .
and when i m creating new servlet in eclipse it shows error as "cant resolve httpservlet","cant resolve httpservletrequest" etc etc.i m quite new in j2ee and i want to clear scwcd within 2 month.plese help me to set up and i dont have administrative access on the system. thnks
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Welcome to Javaranch

partha malik wrote:http://localhost:8080/ in browser it gives error HTTP Status 404 .

There can be many reasons why this happens.
Your Tomcat server is not listening on port 8080.
Your server is down, it has not started.
Your firewall is blocking port 8080,etc

partha malik wrote:when i m creating new servlet in eclipse it shows error as "cant resolve httpservlet","cant resolve httpservletrequest"

This is because you have not added the Tomcat libraries to Eclipse.

partha malik wrote:and i dont have administrative access on the system

That might put limitations on the Tomcat installation/configuration.
 
partha malik
Greenhorn
Posts: 9
Chrome Eclipse IDE Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hi,
thanks for your reply....
how can i add tomcat library to eclipse please let me know if i need to downlode any file....???
can you please describe the whole configaration details... that will be helpful for me....i can do it in my personal laptop....there no issue about admin access.
 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
partha malik wrote:
hi,
thanks for your reply....
how can i add tomcat library to eclipse please let me know if i need to downlode any file....???
can you please describe the whole configaration details... that will be helpful for me....i can do it in my personal laptop....there no issue about admin access.


In Eclipse, go to Project Properties, select Server Runtime, click Add new server, you will see Apache Tomcat as an option. After the server is added, Eclipse automatically references the server's JAR files to project's classpath.
 
partha malik
Greenhorn
Posts: 9
Chrome Eclipse IDE Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am using older version of eclipse here no tomcat option but i made it.i create a new library and add the jar manually then i add this library to the project and now it is working fine.
thanks for your reply Nam Ha Minh and Amit Ghorpade.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic