From users-return-200972-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Mon Aug 24 16:55:40 2009 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 38774 invoked from network); 24 Aug 2009 16:55:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Aug 2009 16:55:40 -0000 Received: (qmail 56259 invoked by uid 500); 24 Aug 2009 15:54:04 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 56199 invoked by uid 500); 24 Aug 2009 15:54:03 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 56188 invoked by uid 99); 24 Aug 2009 15:54:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Aug 2009 15:54:03 +0000 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.27.211] (HELO QMTA11.emeryville.ca.mail.comcast.net) (76.96.27.211) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Aug 2009 15:53:52 +0000 Received: from OMTA13.emeryville.ca.mail.comcast.net ([76.96.30.52]) by QMTA11.emeryville.ca.mail.comcast.net with comcast id YEmD1c00F17UAYkABFs8bT; Mon, 24 Aug 2009 15:52:08 +0000 Received: from [192.168.1.101] ([69.143.128.194]) by OMTA13.emeryville.ca.mail.comcast.net with comcast id YFtV1c0084BnRt98ZFtWeY; Mon, 24 Aug 2009 15:53:31 +0000 Message-ID: <4A92B778.80709@christopherschultz.net> Date: Mon, 24 Aug 2009 11:53:28 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Newbie question References: <438DEC8DB7640F499FB29AAA9774CC0D0206482D22@extxmb37.nam.nsroot.net> In-Reply-To: <438DEC8DB7640F499FB29AAA9774CC0D0206482D22@extxmb37.nam.nsroot.net> X-Enigmail-Version: 0.96a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Malladi, On 8/24/2009 10:36 AM, Malladi, Sasikanth wrote: > I'm using "Core Servlets" by Marty Hall as a guide. Which edition? It may be out of date. > I've created a servlet, HelloServlet. Well, it just says "hello". Can you post the code? > I've compiled it and put the class file into .../install_dir/webapps/ROOT/WEB-INF/classes/. > I've enabled the invoker servlet by uncommenting it in .../install_dir/conf/web.xml. This is fine for testing purposes, but you really should not use the invoker servlet. Instead, it's easy to enable your servlet in your own webapp's web.xml: Hello HelloServlet Hello /HelloServlet > I've enabled the servlet reloading in .../install_dir/conf/context.xml. You should probably not be modifying CATALINA_HOME/conf/context.xml. Instead, create a file in webapps/ROOT/META-INF/context.xml and put your configuration there. Remember not to set the "docBase" or "path" attributes in your element. > However, I can't see the servlet in http://myhost:8008/servlet/HelloServlet. > > What am I missing? I suspect you have a package/class name mismatch with your .class file and the URL you're using to access the servlet. Disable the invoker servlet, write a proper web.xml file, and post your code. That will help a lot. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqSt3gACgkQ9CaO5/Lv0PAKEACgqqCK2g+WQoJuEgtHpmwhzvUb S94AoLvUqwmqs7U7B0fFdbtmkeOVIbXK =x+CO -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org