No, I wasn't. Now I have added it and it works fine now. Thank you, Milan
-----Original Message----- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 6:27 PM To: Tomcat Users List Subject: RE: Servlets (total beginner) Have you added the <servlet> and <servlet-mapping> elements to your web.xml file for this servlet? -----Original Message----- From: Milan Tomic [mailto:[EMAIL PROTECTED] Sent: 22 November 2005 17:18 To: 'Tomcat Users List' Subject: Servlets (total beginner) I have compiled my first servlet and copied it into apache-tomcat-5.5.12\webapps\servlets-examples\WEB-INF\classes but when I navigate my browser to http://localhost:8080/servlets-examples/DemoServlet or http://localhost:8080/servlets-examples/servlet/DemoServlet I got an HTTP 404 error message. Other servlets from Tomcat examples (same folder) works just fine. What am I doing wrong? Do I have to edit web.xml in order to inform Tomcat that I have deployed new servlet? While testing JSPs I didn't had to do this for new JSP page. Btw, is there a good tutorial (or tool) about configuring web.xml file? <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> ------------------------------------------------------- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- </FONT> <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLACK> Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. </FONT> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]