• 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

setup configaration to run servlet on eclipse

 
Greenhorn
Posts: 9
Eclipse IDE Notepad Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Eclipse IDE Notepad Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Eclipse IDE Notepad Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic