Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 65401 invoked from network); 17 Dec 2008 13:54:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Dec 2008 13:54:21 -0000 Received: (qmail 97202 invoked by uid 500); 17 Dec 2008 13:54:30 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 97147 invoked by uid 500); 17 Dec 2008 13:54:30 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 97136 invoked by uid 99); 17 Dec 2008 13:54:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2008 05:54:30 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [63.246.7.73] (HELO mail.springsource.com) (63.246.7.73) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2008 13:54:16 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.springsource.com (Postfix) with ESMTP id 713833BF01C0 for ; Wed, 17 Dec 2008 07:53:54 -0600 (CST) X-Virus-Scanned: amavisd-new at X-Spam-Score: -1.667 X-Spam-Level: Received: from mail.springsource.com ([127.0.0.1]) by localhost (mail.springsource.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vA4jBfdaVxER for ; Wed, 17 Dec 2008 07:53:49 -0600 (CST) Received: from macbook.local (unknown [213.1.210.34]) by mail.springsource.com (Postfix) with ESMTP id 8DB853BF0146 for ; Wed, 17 Dec 2008 07:53:49 -0600 (CST) Message-ID: <4949046C.6060204@apache.org> Date: Wed, 17 Dec 2008 13:53:48 +0000 From: Mark Thomas User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Tomcat errors References: <21053265.post@talk.nabble.com> In-Reply-To: <21053265.post@talk.nabble.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO X-Old-Spam-Status: No, score=-1.667 tagged_above=-10 required=6.6 tests=[AWL=0.832, BAYES_00=-2.599, RDNS_NONE=0.1] dalilama wrote: > I'm trying to get to know tomcat 6. I am experimenting with editing one of > the java classes in apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes > > I have replaced the contents of HelloWorldExample.java with my own code > which server a web page . One of the lines of code is: > public void doGet(HttpServletRequest req, HttpServletResponse res) > > The code compiles fine and runs fine. > Now I want to add some code which might throw an exception so I modify the > above line to read : > public void doGet(HttpServletRequest req, HttpServletResponse res) throws > IOException, ServletException > > The file again compiles without problem. But now when I start the tomcat > instance I see the following errors in the logs : > > Dec 17, 2008 1:23:02 PM org.apache.catalina.core.StandardContext > listenerStart > SEVERE: Error configuring application listener of class > listeners.ContextListener > java.lang.NoClassDefFoundError: > javax/servlet/ServletContextAttributeListener > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > > The "javax/servlet/ServletContextAttributeListener" is definately there and > the location is included in the environmental variable "CLASSPATH" > > Now the tomcat server is totally disfunctional and gives me HTTP STatus 404 > when I do to the servlet demo page. That is a question for the users list, not the dev list. Mark > > > George --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org