aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes setup configaration to run servlet on eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "setup configaration to run servlet on eclipse" Watch "setup configaration to run servlet on eclipse" New topic
Author

setup configaration to run servlet on eclipse

partha malik
Greenhorn

Joined: Mar 19, 2012
Posts: 9


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

Joined: Jun 06, 2007
Posts: 2718
    
    6

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.


SCJP, SCWCD.
|Asking Good Questions|
partha malik
Greenhorn

Joined: Mar 19, 2012
Posts: 9


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

Joined: Oct 31, 2011
Posts: 498

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.


PM Me If You Want to get Urgent Help on Java Programming
partha malik
Greenhorn

Joined: Mar 19, 2012
Posts: 9

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setup configaration to run servlet on eclipse