Article ID: 9168, created on Feb 17, 2012, last review on Apr 30, 2014

  • Applies to:
  • Virtuozzo containers for Linux 4.6

Symptoms

运行着 CentOS 5 or Red Hat Enterprise Linux 5 的Container里的 Tomcat 5.x 应用程序有启动但不能正常工作. 日志文件 /var/log/tomcat5/catalina.out 里包含如下类似的信息:

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

Resolution

为了解决这个为题,需要在出问题的Container上重新部署安装 Tomcat 应用程序模板,执行如下指令:

vzpkg remove CT_ID tomcat
vzpkg install CT_ID tomcat

36627b12981f68a16405a79233409a5e d02f9caf3e11b191a38179103495106f e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article