Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 94811 invoked from network); 22 Jul 2008 17:14:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jul 2008 17:14:53 -0000 Received: (qmail 21330 invoked by uid 500); 22 Jul 2008 17:14:42 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 20436 invoked by uid 500); 22 Jul 2008 17:14:41 -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 20425 invoked by uid 99); 22 Jul 2008 17:14:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2008 10:14:40 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.43] (HELO n59.bullet.mail.sp1.yahoo.com) (98.136.44.43) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 22 Jul 2008 17:13:44 +0000 Received: from [216.252.122.216] by n59.bullet.mail.sp1.yahoo.com with NNFMP; 22 Jul 2008 17:12:51 -0000 Received: from [69.147.65.174] by t1.bullet.sp1.yahoo.com with NNFMP; 22 Jul 2008 17:12:51 -0000 Received: from [127.0.0.1] by omp509.mail.sp1.yahoo.com with NNFMP; 22 Jul 2008 17:12:51 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 422658.41032.bm@omp509.mail.sp1.yahoo.com Received: (qmail 99977 invoked by uid 60001); 22 Jul 2008 17:12:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=HhqXQYFF/kdjZGmLLsHmkjDgtKJQZ5GukBG5bYVlRGHPY5BWEtv48UsqJPLG0TPvhJoP70lLyL4RT0O4RakRY389Vtsv9p9uzgp7eCG2LJExyXTjqlOISkdi2Ah7KkDS0fm9SBGZ1r37jW1iMgVPslogwlUhN5qX78/qKY+umO8=; Received: from [154.20.98.145] by web45910.mail.sp1.yahoo.com via HTTP; Tue, 22 Jul 2008 10:12:50 PDT X-Mailer: YahooMailWebService/0.7.218 Date: Tue, 22 Jul 2008 10:12:50 -0700 (PDT) From: Fu-Tung Cheng Reply-To: futung.cheng@yahoo.com Subject: RE: ContextListener executes twice To: Tomcat Users List In-Reply-To: <0AAE5AB84B013E45A7B61CB66943C17213BB2F5E42@USEA-EXCH7.na.uis.unisys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <281922.99821.qm@web45910.mail.sp1.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Might have to do with this: Any declared listener will be reported as declared twice due to this bug http://www.mail-archive.com/dev@tomcat.apache.org/msg23408.html Fu-Tung --- On Tue, 7/22/08, Caldarale, Charles R wrote: > From: Caldarale, Charles R > Subject: RE: ContextListener executes twice > To: "Tomcat Users List" > Date: Tuesday, July 22, 2008, 4:51 PM > > From: Riaz, Bob [mailto:Bob.Riaz@Pearson.com] > > Subject: RE: ContextListener executes twice > > > > > 1) Where is your webapp deployed? > > On my dev machine - localhost. Is that what you mean? > > No, what directory is it in? Is it a .war or an expanded > webapp? > > > > 2) Do you have a META-INF/context.xml file inside > your webapp? > > encoding="UTF-8"?> > > > > The path attribute is illegal here. You don't really > need a at all. > > > > 3) Do you have a > conf/Catalina/[host]/[appName].xml file? > > encoding="UTF-8"?> > > > > docBase="C:/..Path/NetBeansProjects/MyWebApp/build/web" > path="/ > > MyWebApp "/> > > The above will override the invalid one in > META-INF/context.xml. > > > > 4) What is the appBase setting for each of your > elements > > > in conf/server.xml? > > appBase="webapps" > > Do you happen to have a copy of your webapp deployed under > Tomcat's webapps directory? If so, that would account > for the double initialization. > > Does the problem occur when you run Tomcat independently of > NetBeans, or only if run through NetBeans? > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR > OTHERWISE PROPRIETARY MATERIAL and is thus for use only by > the intended recipient. If you received this in error, > please contact the sender and delete the e-mail and its > attachments from all computers. > > --------------------------------------------------------------------- > 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