Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 5137 invoked from network); 7 Jul 2010 08:27:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jul 2010 08:27:05 -0000 Received: (qmail 26795 invoked by uid 500); 7 Jul 2010 08:27:02 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 26619 invoked by uid 500); 7 Jul 2010 08:26:58 -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 26610 invoked by uid 99); 7 Jul 2010 08:26:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jul 2010 08:26:57 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of danpolonsky@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-ew0-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jul 2010 08:26:49 +0000 Received: by ewy5 with SMTP id 5so8630468ewy.18 for ; Wed, 07 Jul 2010 01:26:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=unLjzD9I5xyFcIOhFziSxzOaYkk91NmqI1T4MVdakko=; b=lgEJox19dL3oCNiYky9lw1GMgBegizsBTv7e4VxLASzBQOiTtZrwNZNLLqeexCqK74 WxmBaXYbZGwZBVi6K4y7v+lsXGFYern8id6fClJGAPBACT1EsDm+4Yevk7z5LUrVNR73 n8hSUs36igtkquysvMaAFLsIx3URgvgc63K3E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=Rg4UP1WkDWbkwikp5RBRKc/5GR1y9f/yJQoMP/yvHAI+Y8nTqwUHFCTwUiZkkq8zFA KkneWug8Ht1/CdrPho4TKO7qdhxDguk3+rPpmtBwYm17ccKNvHqusglQJUOGzYuDS+Sr HjoziuO33vQSbWObKYdkayN19cK7bH5tMhGqc= Received: by 10.213.15.129 with SMTP id k1mr3448535eba.60.1278491189000; Wed, 07 Jul 2010 01:26:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.21.210 with HTTP; Wed, 7 Jul 2010 01:26:08 -0700 (PDT) From: daniel polonsky Date: Wed, 7 Jul 2010 11:26:08 +0300 Message-ID: Subject: listener initialized twice To: users@tomcat.apache.org Content-Type: multipart/alternative; boundary=0015174becca2b39d6048ac7ede9 X-Virus-Checked: Checked by ClamAV on apache.org --0015174becca2b39d6048ac7ede9 Content-Type: text/plain; charset=ISO-8859-1 Hi We have a web application running on Tomcat as a service and because of historical reasons this web app is using ROOT folder (it is ugly but i can't change it). Recently we have added and initializing listener that (implements ServletContextListener) here its definition in web.xml com.nextnine.web.ComServerConfigListener cs-root Q:/CommunicationServer This web app runs fine on 2003 server, but when i try to run it on server 2008 it fails to initialize listener (see the log below). *tomcat log* Jul 7, 2010 10:43:39 AM org.apache.coyote.http11.Http11NioProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-192.168.201.50-8080 Jul 7, 2010 10:43:39 AM org.apache.coyote.http11.Http11NioProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-192.168.201.50-443 Jul 7, 2010 10:43:40 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Jul 7, 2010 10:43:40 AM org.apache.coyote.http11.Http11NioProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-192.168.201.50-8080 Jul 7, 2010 10:43:41 AM org.apache.coyote.http11.Http11NioProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-192.168.201.50-443 Jul 7, 2010 10:43:43 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\NextNine\CommunicationServer\apache-tomcat-6.0.20\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem Jul 7, 2010 10:43:43 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector INFO: Using a shared selector for servlet write/read Jul 7, 2010 10:43:43 AM org.apache.coyote.http11.Http11NioProtocol init INFO: Initializing Coyote HTTP/1.1 on http-192.168.201.50-8080 Jul 7, 2010 10:43:43 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector INFO: Using a shared selector for servlet write/read Jul 7, 2010 10:43:43 AM org.apache.coyote.http11.Http11NioProtocol init INFO: Initializing Coyote HTTP/1.1 on http-192.168.201.50-443 Jul 7, 2010 10:43:43 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1589 ms Jul 7, 2010 10:43:43 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 7, 2010 10:43:44 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 Jul 7, 2010 10:43:45 AM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Jul 7, 2010 10:43:45 AM org.apache.catalina.core.StandardContext start SEVERE: Context [] startup failed due to previous errors Jul 7, 2010 10:43:45 AM org.apache.coyote.http11.Http11NioProtocol start INFO: Starting Coyote HTTP/1.1 on http-192.168.201.50-8080 Jul 7, 2010 10:43:45 AM org.apache.coyote.http11.Http11NioProtocol start INFO: Starting Coyote HTTP/1.1 on http-192.168.201.50-443 Jul 7, 2010 10:43:45 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jul 7, 2010 10:43:45 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/31 config=null Jul 7, 2010 10:43:45 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1721 ms *in development * on server 2003 when running under tomcat 6.0.16, i am getting the following info INFO: The listener "com.nextnine.web.ComServerConfigListener" is already configured for this context. The duplicate definition has been ignored. while when running on same machine under tomcat 6.0.26 the console is clean if it may help i can send the whole project structure as a zip thx in advance Daniel --0015174becca2b39d6048ac7ede9--