我有一个旧的" webapp v2.3"我已在本地部署到Tomcat v6.0.44的应用程序 但我无法将此应用程序部署到OpenShift Tomcat v6.0.44,我收到以下错误:
C:\Users\username>rhc tail apps
==> app-root/logs/jbossews.log <==
SEVERE: The web application [/equip2call] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
Sep 27, 2015 3:01:20 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/equip2call] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.
Sep 27, 2015 3:01:20 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/equip2call] appears to have started a thread named [Timer-2] but has failed to stop it. This is very likely to create a memory leak.
[equip2call] INFO [main] Logger.info(51) | Logging using commons-logging.
Sep 27, 2015 3:01:21 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-127.6.120.1-8080
Sep 27, 2015 3:01:21 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 27697 ms
我的web.xml骨架:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
...
</web-app>
有什么建议吗?
答案 0 :(得分:0)
只需将数据库连接URL从localhost更改为{OPENSHIFT_MYSQL_DB_HOST}
即可自行解决问题