• 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

help..

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all
i have
1. downloaded jakarta-tomcat3.2.1
2. i have made a simple servlet program and an html file to call that program
2. i start tomcat with startup command
3. now i called html file i made by http://localhost:8080/examples/servlets/myhtml.html . this works
But when i want to call the servlet file through this html file it gives 404 error.
i have not downloaded any web server and i was doing this on internet explorer. so do u have to download some more software(web server ) if u want servlet to run.
i tried keeping my .class file in web-inf directory but failed.
where am i going wrong. please guide me.
thanx
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you execute the Tomcat examples?
Study the way the class and html files are organized for the Tomcat examples.
 
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Place your .class files in
<tomcat_home>/webapps/root/web-inf/classes
Place your .html files in
<tomcat_home>/webapps/root
Now try to call the file using:
http://localhost:8080/htmlfile
This worked for me !!
bye,
Tualha Khan
 
Amit Trivedi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx all
now problem has been solved
reply
    Bookmark Topic Watch Topic
  • New Topic