Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 41099 invoked from network); 4 Oct 2005 14:20:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Oct 2005 14:20:28 -0000 Received: (qmail 77470 invoked by uid 500); 4 Oct 2005 14:20:11 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 77422 invoked by uid 500); 4 Oct 2005 14:20:11 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 77410 invoked by uid 99); 4 Oct 2005 14:20:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2005 07:20:10 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [207.155.248.59] (HELO dreadnought.xo.com) (207.155.248.59) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2005 07:20:12 -0700 Received: from [192.168.0.103] (67.107.112.238.ptr.us.xo.net [67.107.112.238]) by dreadnought.xo.com id KAA01163; Tue, 4 Oct 2005 10:19:45 -0400 (EDT) [ConcentricHost SMTP Relay 1.17] Errors-To: Subject: Re: Easy Servlet Question From: Ben Souther To: tomcat-user@jakarta.apache.org In-Reply-To: <4341DFB4.10208@foomonkey.com> References: <4341DFB4.10208@foomonkey.com> Content-Type: text/plain Organization: F.W. Davison & Co, Inc. Message-Id: <1128435584.23715.15.camel@bsouther> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Tue, 04 Oct 2005 10:19:44 -0400 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have some demo apps on http://simple.souther.us that you can run. They're all war files so all you have to do is download to your webapps directory. SimpleServlet.war is your basic "Hello, World" app in a servlet. On Mon, 2005-10-03 at 21:49, Andrew Pierce wrote: > Hello. I realize this is about the stupidest question I could ask but, > I've scoured the web, etc. and cannot get an easy example of making > servlets actually work with Tomcat. > > I have written a few "Hello World" servlets and gotten them to work with > Resin but I cannot get even the most simple servlet to work with Tomcat. > > I create the servlet code such as the one found here: > > http://www.caucho.com/resin-3.0/servlet/tutorial/helloworld/index.xtp > > I compile the servlet and place the .class file in the > $CATALINA_HOME/webapps//WEB-INF/classes directory. > > Then I modify the $CATALINA_HOME/webapps/app/WEB-INF/web.xml to include > the declarations for the servlet. > > I stop and restart Tomcat and alas, all I get is 404 when I try to > access the servlet with a url like > http://localhost:8080//HelloServlet. > > I know this has got to VERY simple. Thanks in advance. > Andrew > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org -- Ben Souther F.W. Davison & Co. CONFIDENTIALITY NOTICE: This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, distribution or copying is prohibited. If you are not the intended recipient, please contact our office by email or by telephone at (508) 747-7261 and immediately destroy all copies of the original message. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org