However, the whole idea is to sidestep this step and run servlets before even really getting involved with deployment descriptors detail (I'll get there!).
And I quote:
"The invoker servlet lets you run servlets without first making changes to your Web application's deployment descriptor (i.e., the WEB-INF/web.xml file). Instead, you just drop your servlet into WEB-INF/classes and use the URL http://host/servlet/ServletName (or http://host/webAppName/servlet/ServletName once you start using your own Web applications; see Section 2.11 of the book <http://volume1.coreservlets.com/> for details on Web apps). The invoker servlet is extremely convenient when you are learning and even when you are doing your initial development."
The good news is that I rechecked again, and there are two modifications required for Tomcat 5's xml regarding the invoker. And it works!
Thank you again.
-nat
Filip Hanik (lists) wrote:
you need to configure your HelloWorldServlet in webapps/ROOT/WEB-INF/web.xml
-----Original Message----- From: Nathan Gross [mailto:[EMAIL PROTECTED] Sent: Sunday, February 29, 2004 2:02 PM To: [EMAIL PROTECTED] Subject: 5.0.19. [Newbie] Why it doesnt run my HelloServlet
Hi. I am new to j2ee app server technology (although I wrote my own non-j2ee rmi version, until I realized that I am not so smart after all, and gave-up on re-inventing the wheel) and decided to take a quick into tutorial at: http://www.coreservlets.com/Apache-Tomcat-Tutorial/ . I followed it to the tee, and although it runs jsp's just fine, I cannot get to load the sample HelloServlet, it returns 404. I copied the tutor's server.xml but to no avail. I have the HelloServlet.class in the \jakarta-tomcat-5.0.19\webapps\ROOT\WEB-INF\classes directory. Should I discard this convenient methodology and just build and deploy complete apps? Thank you all; -nat I attched my conf/server and conf/web xml files. I don't know how your email receives this. If not appropiate, please excuse. Thank you.
--- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.594 / Virus Database: 377 - Release Date: 2/24/2004
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
