我安装了一个tomcat实例并运行良好。现在我需要从这个运行的实例中复制另一个实例。复制并修改conf / server.xml后,无法启动新实例。(sudo /xxx/restart_tomcat.sh / xxx / www / mynewInstance) 我没有修改startenv.sh,我是否也需要修改这个文件? catalina日志是这样的:
SEVERE: Error listenerStart
Mar 31, 2015 1:02:39 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Mar 31, 2015 1:02:39 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [] registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Mar 31, 2015 1:02:39 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
Mar 31, 2015 1:02:39 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
Mar 31, 2015 1:02:39 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-19033
Mar 31, 2015 1:02:39 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2761 ms
答案 0 :(得分:0)
我已经解决了这个问题。无需修改startenv.sh。由于未连接数据库连接,新实例启动失败。