CMS: cmsweb not coming up successfully


Doc ID    SOLN268511
Version:    3.0
Status:    Published
Published date:    21 May 2019
Created Date:    13 May 2015
Author:   
Mauricio Burgo
 

Details

Release: CMS R16.3 and later.

Any version of cmsweb.

Problem Clarification

When trying to start cmsweb (command: cmsweb start) the processes required for csmweb to work are not all coming up.
# ps -ef | grep cmsweb
root      7475     1  0 13:18 ?        00:00:00 /bin/ksh /opt/cmsweb/bin/tomcat_monitor.sh
 
catalina.out (/opt/cmsweb/tomcat6/logs) shows error:
May 7, 2015 1:18:39 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Cannot assign requested address
 
Entire log trying to initialize cmsweb is below:
 
May 7, 2015 1:18:38 PM 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: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
May 7, 2015 1:18:38 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
May 7, 2015 1:18:38 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
May 7, 2015 1:18:38 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 539 ms
May 7, 2015 1:18:38 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 7, 2015 1:18:38 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
May 7, 2015 1:18:38 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive CMSWeb.war
May 7, 2015 1:18:39 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
May 7, 2015 1:18:39 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
May 7, 2015 1:18:39 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
May 7, 2015 1:18:39 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
May 7, 2015 1:18:39 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/13  config=null
May 7, 2015 1:18:39 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 721 ms
May 7, 2015 1:18:39 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Cannot assign requested address
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353)
        at java.net.ServerSocket.bind(ServerSocket.java:336)
        at java.net.ServerSocket.<init>(ServerSocket.java:202)
        at org.apache.catalina.core.StandardServer.await(StandardServer.java:406)
        at org.apache.catalina.startup.Catalina.await(Catalina.java:676)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:628)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
May 7, 2015 1:18:39 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
May 7, 2015 1:18:39 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8443
May 7, 2015 1:18:40 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
May 7, 2015 1:18:40 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/CMSWeb] appears to have started a thread named [FileWatchdog] but has failed to stop it. This is very likely to create a memory leak.
May 7, 2015 1:18:40 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/CMSWeb] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@594ab51b]) and a value of type [flex.messaging.io.SerializationContext] (value [flex.messaging.io.SerializationContext@37b82d69]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
May 7, 2015 1:18:40 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/CMSWeb] created a ThreadLocal with key of type [com.avaya.cmsweb.logging.CMSAppender$1] (value [com.avaya.cmsweb.logging.CMSAppender$1@3bc6d11a]) and a value of type [java.lang.Boolean] (value [false]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
May 7, 2015 1:18:40 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
May 7, 2015 1:18:40 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8443

Cause

Found a bad entry in /etc/hosts causing the issue. Entry "localhost" was set to 172.0.0.1 instead of 127.0.0.1.

In one instance, the users were not connecting to CMSWeb but to a middleware application between CMSweb and the users.  Connecting to CMSWeb worked without issue.

Solution

Changed localhost entry in /etc/hosts to 127.0.0.1 (which is Software Installation, Maintenance and Troubleshooting Guide's recommendation).

With that change, "cmsweb start" have successfully started cmsweb as shown below:

# ps -ef | grep cmsweb

root     24041     1  0  May09 ?        00:00:15 /bin/ksh /opt/cmsweb/bin/tomcat_monitor.sh

root     24039     1  0  May09 ?        00:04:05 /usr/bin/java -Djava.util.logging.config.file=/opt/cmsweb/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/cmsweb/tomcat6/endorsed -classpath /opt/cmsweb/tomcat6/bin/bootstrap.jar -Dcatalina.base=/opt/cmsweb/tomcat6 -Dcatalina.home=/opt/cmsweb/tomcat6 -Djava.io.tmpdir=/opt/cmsweb/tomcat6/temp org.apache.catalina.startup.Bootstrap start

 For the issue with the middleware application, referred to the vendor of the application.


Avaya -- Proprietary. Use pursuant to the terms of your signed agreement or Avaya policy