Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 982 invoked from network); 29 May 2007 16:38:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 May 2007 16:38:27 -0000 Received: (qmail 43660 invoked by uid 500); 29 May 2007 16:38:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 43641 invoked by uid 500); 29 May 2007 16:38:18 -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 43630 invoked by uid 99); 29 May 2007 16:38:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2007 09:38:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of barry.l.propes@citigroup.com designates 199.67.179.106 as permitted sender) Received: from [199.67.179.106] (HELO mail.citigroup.com) (199.67.179.106) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2007 09:38:12 -0700 Received: from imbarc-nj02.nj.ssmb.com (imbarc-nj02.nj.ssmb.com [150.110.178.211]) by imbaspam-ny06.iplex.ssmb.com (8.13.8/8.13.8/SSMB_EXT/ev: 16778 $) with ESMTP id l4TGbkXE025806 for ; Tue, 29 May 2007 16:37:50 GMT Received: from mailhub-nj03-1.nj.ssmb.com (mailhub-nj03-2.nj.ssmb.com [150.110.235.234]) by imbarc-nj02.nj.ssmb.com (8.13.7/8.13.7/SSMB_QQQ_IN/1.1) with ESMTP id l4TGbe1S003151 for ; Tue, 29 May 2007 16:37:40 GMT Received: from exnjsm12.nam.nsroot.net (EXNJSM12.nam.nsroot.net [169.193.44.32]) by mailhub-nj03-1.nj.ssmb.com (8.13.7/8.13.7/CG_HUB) with ESMTP id l4TGbbOu028318 for ; Tue, 29 May 2007 16:37:39 GMT Received: from exnjmb23.nam.nsroot.net ([169.193.40.18]) by exnjsm12.nam.nsroot.net with Microsoft SMTPSVC(5.0.2195.6713); Tue, 29 May 2007 12:37:24 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.0.6619.12 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: 404 message when trying to test a servlet Date: Tue, 29 May 2007 12:40:42 -0400 Message-ID: <3A55348B50FD2A40AAA40ABA16C6B6D60ABA816F@EXNJMB23.nam.nsroot.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 404 message when trying to test a servlet Thread-Index: Acef+1QaAGh5ECZoQnWSR/2q+/trawCEfxywAAB0ZQA= From: "Propes, Barry L " To: "Tomcat Users List" X-OriginalArrivalTime: 29 May 2007 16:37:24.0526 (UTC) FILETIME=[A2F0FCE0:01C7A20F] X-Scanned-By: MIMEDefang 2.52 on 172.27.136.25 X-Virus-Checked: Checked by ClamAV on apache.org servlet mapping entails which directory you would like your classes to = be or to be named, and where the actual servlet will be. Also, will it be mapped to a different name? That's typically a good = idea, from what I've read. i..e here's a blurb from the web.xml file what servlet mapping would = look like. chngctrl.ChangeControlUserAcctServletSPCall /chngctrl/ChangeControlUsersSP.jsp =20 that JSP you see is a "fake jsp" the file doesn't exist but that's where = the action file from the form points. It actually calls the servlet = instead, under the hood. But further up the page, you have to declare the servlet name, i.e. =20 = chngctrl.ChangeControlUserAcctServletSPCall = chngctrl.ChangeControlUserAcctServletSPCall =20 you could make a different name for your class from your servlet if you = wanted, but I think most people don't...probably too confusing in the = long run. -----Original Message----- From: Dean [mailto:dwagstaff@nctv.com] Sent: Tuesday, May 29, 2007 11:23 AM To: 'Tomcat Users List' Subject: RE: 404 message when trying to test a servlet Thanks for the info. However, I am new to tomcat and servlets and as = such am still somewhat unclear as to the resolution to this problem. Can you clarify. What exactly is servlet - mapping? Thanks, D -----Original Message----- From: news [mailto:news@sea.gmane.org] On Behalf Of Bill Barker Sent: Saturday, May 26, 2007 8:06 PM To: users@tomcat.apache.org Subject: Re: 404 message when trying to test a servlet "Dean" wrote in message=20 news:9B.C0.08653.55DC8564@mxo5.broadbandsupport.net... > Greetings, > > > > I suspect the class file may be in the wrong directory. I get the = message > /basic-servlet/servlet/CurrencyConverter , which is confusing in that = the > class file is in the following directory C:\Program Files\Apache = Software > Foundation\Tomcat 4.1\webapps\basic-servlet\WEB-INF\classes. The html = > page > is being found ok but when I do a submit and it tries to bring up the > servlet I get the above. > The invoker servlet has been disabled in the default config for ages=20 (because it is evil :). You can enable it at your own risk in = conf/web.xml, but that isn't recommended. Use an explicit servlet-mapping instead. Having classes in the default package will prevent you from upgrading = later=20 on. You really should put your class in a package. > > > I really appreciate any help you can give. > > > > P.s. when I start tomcat I only get the following messages > > Starting service Tomcat-Standalone > > Apache Tomcat/4.1.36-LE-jdk14 > > > > I am able to access http://localhost:8080/index.jsp > > > > Sincerely, > > > > D > > > >=20 --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org