• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Please help, servlets are not working

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just started working with servlets today, I tried the first example at "chapter 1" at Hanumant Deshmukh's book (SCWCD Exam Study Kit), I made everything as discribed in the book, but it keeps giving me an error of "resource not found".
I use TomCat 4.1 as suggested by the book auther.
 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tamer,
Things to be looked very carefully:

In Web.xml:
Servlet tag is correct. (class name etc)
Servlet mapping tag is given correctly.

Also make sure that servlet class is present in the correct directory under web-inf. Check the URL you are using to access the servlet.
Restart the server, after you do any corrections.
It should work. There is no magic in that, unless there is some silly error.
[ October 08, 2004: Message edited by: Manoj Gundawar ]
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some books still use examples that require the "invoker" servlet. If the url you are using has "/servlet/" in it, that is where your problem probably lies. Read the Ranch FAQ on the Invoker.
Bill
 
Have you no shame? Have you no decency? Have you no tiny ad?
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic