Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 66120 invoked from network); 12 Feb 2005 05:34:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Feb 2005 05:34:06 -0000 Received: (qmail 6634 invoked by uid 500); 12 Feb 2005 05:33:51 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 6621 invoked by uid 500); 12 Feb 2005 05:33:51 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 6607 invoked by uid 99); 12 Feb 2005 05:33:51 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from thunder.netspace.net.au (HELO mail.netspace.net.au) (203.10.110.71) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 11 Feb 2005 21:33:50 -0800 Received: from marco66c7fu5mo (220-253-5-196.VIC.netspace.net.au [220.253.5.196]) by mail.netspace.net.au (Postfix) with ESMTP id C645043258 for ; Sat, 12 Feb 2005 16:33:45 +1100 (EST) From: "Marco Mastrocinque" To: Subject: The requested resource (/myApp/servlet/TestingServlet) is not available. Date: Sat, 12 Feb 2005 16:33:45 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcUQxGt6oBzPCdXsT4aA6LqBeKqfEA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-Id: <20050212053345.C645043258@mail.netspace.net.au> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi All, I'm new to Tomcat and Servlets, I'm having a problem with one of my first Servlets: This is my program: import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; public class TestingServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println(""); out.println(""); out.println("Servlet Testing"); out.println(""); out.println(""); out.println("Welcome to the Servlet Testing Center"); out.println(""); out.println(""); } } This is my web.xml file: Testing TestingServlet I'm using Tomcat version 5.0.28. I create the Directory structure under Tomcat, underneath the webapps subdirectory: myApp | WEB-INF | classes I compile the file TestingServlet.java using javac -classpath C:\tomcat\common\lib\servlet-api.jar TestingServlet.jar Place the file TestingServelt.jar in the classes subdirectory. Place the file web.xml file in the WEB-INF subdirectory. I start Tomcat. The manager application says it there, and it seems to be okay. I type in the address bar of IE the following http://locahost:8080/myApp/servlet/TestingServlet I get the following message, from Tomcat The requested resource (/myApp/servlet/TestingServlet) is not available. I know it should be pretty simple, but sometimes the simplest things are the hardest to correct! Any suggestions most appreciated. Thanks Marco Mastrocinque --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org