tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Metz <>
Subject new user: servlets dont run in new apps
Date Tue, 07 Jan 2003 21:35:09 GMT
what simple thing am i missing ?
(probably something in the documentation, but i havent
found it so far)

cannot get servlets to run in a NEW webapp. the ones that
come with tomcat work ok, except for the sample servlet in the
Developer's Guide. this built-in one doesnt run either:
(gives: HTTP Status 404
  The requested resource (/tomcat-docs/appdev/sample/web/hello) is not

As for my new apps:
- a simple html page in webapps\george runs ok

- a tomcat example jsp i modified and dropped into webapps/george/Jsp
runs fine.
   called thusly:

- i successfully copied/renamed/modified/compiled and ran a servlet
 examples\WEB-INF\classes,  even referenced it successfully in
 examples\WEB-INF\web.xml like so :


 works like a champ when called thusly:

 BUT same GeorgeHello class servlet placed under
 wont run. gives the dreaded 404

HTTP Status 404
The requested resource (/george/servlet/GeorgeHello) is not available

Have same problem with David Flanagan's (OReilly) javaexamples2
app (installed it from a .war file, tomcat extracted it).
JSPs run fine, servlets dont.

(george app directories were set up manually, but carefully.
 have checked permissions/properties on the directories several
 times. look the same as the examples app to me. )


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message