tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daniel polonsky <danpolon...@gmail.com>
Subject listener initialized twice
Date Wed, 07 Jul 2010 08:26:08 GMT
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

    <listener>

<listener-class>com.nextnine.web.ComServerConfigListener</listener-class>
    </listener>
    <context-param>
        <param-name>cs-root</param-name>
        <param-value>Q:/CommunicationServer</param-value>
    </context-param>

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message