• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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.
 
Paper beats rock. Scissors beats tiny ad.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic