Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 11730 invoked from network); 23 Jan 2006 19:51:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jan 2006 19:51:22 -0000 Received: (qmail 78700 invoked by uid 500); 23 Jan 2006 19:51:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 78686 invoked by uid 500); 23 Jan 2006 19:51:06 -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 78675 invoked by uid 99); 23 Jan 2006 19:51:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2006 11:51:06 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of dhall@utrs.com designates 146.145.216.229 as permitted sender) Received: from [146.145.216.229] (HELO mail1.utrs.com) (146.145.216.229) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2006 11:51:05 -0800 Received: from Darrenh7485 [146.145.216.235] by mail1.utrs.com with ESMTP (SMTPD-9.00) id A39506A8; Mon, 23 Jan 2006 14:50:45 -0500 From: "Darren Hall" To: "'Tomcat Users List'" Subject: RE: (newb) Tomcat servlet mapping problem Date: Mon, 23 Jan 2006 14:46:01 -0500 Message-ID: <002801c62055$a39926f0$a100a8c0@utrschad> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <497fac690601230855q784016f1oee7a06d11181b466@mail.gmail.com> Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > On 1/23/06, Darren Hall wrote: > > > > From: Darren Hall [mailto:dhall@utrs.com] > > > > Subject: RE: (newb) Tomcat servlet mapping problem > > > > > > > > Is there a way I can map these servlets (in the web.xml file) so > > > > that Tomcat can see them and execute them? > > > >=20 > As far as I can see, it just works. Whether it's correct or not, it > does seem work in Tomcat 5.5.12 and I know it worked in 5.0.28 too. So > this is probably not the cause of your problem. Try putting one > servlet in a package to see if that makes a difference, before you try > to change them all. >=20 > Here's a servlet declaration that I just tested: > > Test > Test > > > Test > /test > >=20 > -- > Len ok, the start of this thread got lost... let me try and do a brief refresher... I'm working with Tomcat 5.0, Apache 2, and a whole bunch of servlets = that I inherited. The website is a combination of static HTML and java. 95% of = the java code is implemented in servlets (that write out the dynamic HTML) = and NONE of the Java code is in packages. The HTML on the site, when referring to servlets, uses relative paths = like
". In order to remove the = invoker servlet, I need to map all the servlets on the site through a web.xml = file. Initially, I was getting a "resource unavailable" error from Tomcat, but = it now appears as if my servlet mapping was wrong. (my app lived in the ${catalina.home}/webapp/servlet directory, and my web.xml was mapping a servlet to /servlet/[servlet-name]. I fixed this by removing the '/servlet' in the tag, and I = now get a stack trace with a "ClassDefNotFound" [servlet-name] error. This = error occurs when I point at Tomcat directly, so I know the error has nothing = to do with Apache. I now have a stripped down web.xml file that looks like = this (minus the xml and DOCTYPE directives): ... FLCUpEvDisplayServlet FLCUpEvDisplayServlet FLCUpEvDisplayServlet /FLCUpEvDisplayServlet Now everytime I hit the servlet, I get the "ClassDefNotFound" error, and after that I see an entry in the log file: 2006-01-23 11:35:53 StandardContext[/servlet]Marking servlet FLCUpEvDisplayServlet as unavailable 2006-01-23 11:35:53 StandardContext[/servlet]Error loading = WebappClassLoader delegate: false repositories: /WEB-INF/classes/ after which I get a "resource is not available" error again, until I = stop and restart Tomcat. So, my question is... why am I getting the "ClassDefNotFound" error, and = how do I correct it (or can I, given my current configuration)? Thanks Darren --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org