Article ID: 9168, created on Oct 20, 2010, last review on May 3, 2014

  • Applies to:
  • Virtuozzo containers for Linux 4.6

Symptômes

L'application Tomcat 5.x installée dans un Conteneur exécutant CentOS 5 ou Red Hat Enterprise Linux 5 démarre mais ne fonctionne pas. Le fichier de log /var/log/tomcat5/catalina.out contient des informations comme celles-ci :

Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
Created MBeanServer with ID: -ltmxd2:gffj5bsn.0:localhost.localdomain:1
18-Oct-10 7:58:35 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib64/gcj-4.1.2
18-Oct-10 7:58:35 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
18-Oct-10 7:58:35 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 679 ms
18-Oct-10 7:58:35 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
18-Oct-10 7:58:35 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
18-Oct-10 7:58:35 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
18-Oct-10 7:58:37 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive test.war
18-Oct-10 7:58:37 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
18-Oct-10 7:58:37 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
18-Oct-10 7:58:37 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
18-Oct-10 7:58:37 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
18-Oct-10 7:58:38 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL:
http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
18-Oct-10 7:58:38 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080

Résolution

Pour contourner ce problème, réinstallez l'application Tomcat dans le conteneur problématique à l'aide de ces commandes :

vzpkg remove CT_ID tomcat
vzpkg install CT_ID tomcat

36627b12981f68a16405a79233409a5e d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF