tomcat服务器webapp启动时无限加载

时间:2015-05-25 04:03:13

标签: java tomcat tooltwist

当我从ToolTwist 8.1升级到ToolTwist 8.5时,我遇到了一个奇怪的错误。

错误是tomcat服务器webapp启动时的无限负载。

我认为加载配置没有错误,因为我看到Tooltwist Startup在控制台上开始,这意味着已经启动了tooltwist库。

所以这是关于问题的控制台日志。

>>>>>>>>>>>>>>>>>> Tooltwist Startup Commencing <<<<<<<<<<<<<<<<<<
>>>>>>   This is tooltwist.misc.LoadConfigsServlet.
>>>>>>   Obtaining env-entry for TOOLTWIST_HOME from JNDI (e.g. web.xml)
>>>>>>   * Found /projects/8.5/curia/site-conf
>>>>>>   Will reconfigure logback if config file found
log4j:WARN No appenders could be found for logger (com.amazonaws.jmx.MBeans).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
>>>>>>   * Looking for (local file: /projects/8.5/curia/site-conf/conf/logback.xml)
>>>>>>   * Found - reconfiguring logback.
>>>>>>   Loading filemap if it's not already loaded
>>>>>>   * Filemap loaded.
>>>>>>   Will log test messages immediately after the next line (debug, info, trace, warn, and error)
>>>>>>>>>>>>>>>>>> Tooltwist Startup Finished <<<<<<<<<<<<<<<<<<<<<

2015-05-25 12:07:12,073 DEBUG t.m.LoadConfigsServlet -    test debug message.
2015-05-25 12:07:12,076 INFO  t.m.LoadConfigsServlet -    test info message.
2015-05-25 12:07:12,077 WARN  t.m.LoadConfigsServlet -    test warn message.
2015-05-25 12:07:12,077 ERROR t.m.LoadConfigsServlet -    test error message.
2015-05-25 12:07:12,078 DEBUG t.c.s.CloudmallInitServlet - >>>>>>   * Found /projects/8.5/curia/site-conf
2015-05-25 12:07:12,078 DEBUG t.c.s.CloudmallInitServlet - >>>>>>   Getting the access token from TEA.
2015-05-25 12:07:12,319 DEBUG t.w.WbdCache - Loading webdesign projects from: /projects/8.5/curia/webdesign/
2015-05-25 12:07:12,320 INFO  t.w.WbdCache - Adding webdesign project noah-webdesign
2015-05-25 12:07:12,324 INFO  t.w.WbdCache - Loading extension projects from: /projects/8.5/curia/
2015-05-25 12:07:12,324 INFO  t.w.WbdCache - Adding extension project bootstrap-tooltwist
2015-05-25 12:07:12,324 INFO  t.w.WbdCache - Adding extension project cloudmall
2015-05-25 12:07:12,325 DEBUG t.w.WbdCache - Ignoring project (contains no directory named 'widgets'): /projects/8.5/curia/config_plugin
2015-05-25 12:07:12,325 DEBUG t.w.WbdCache - Ignoring project (contains no directory named 'widgets'): /projects/8.5/curia/deployed-server
2015-05-25 12:07:12,325 DEBUG t.w.WbdCache - Ignoring project (contains no directory named 'widgets'): /projects/8.5/curia/RemoteSystemsTempFiles
2015-05-25 12:07:12,325 DEBUG t.w.WbdCache - Ignoring project (contains no directory named 'widgets'): /projects/8.5/curia/Servers
2015-05-25 12:07:12,325 DEBUG t.w.WbdCache - Ignoring project (contains no directory named 'widgets'): /projects/8.5/curia/site-conf
2015-05-25 12:07:12,325 INFO  t.w.WbdCache - Adding extension project tooltwist
2015-05-25 12:07:12,325 INFO  t.w.WbdCache - Adding extension project ttsec-standaloneDesigner
2015-05-25 12:07:12,325 INFO  t.w.WbdCache - Adding extension project ttStd
2015-05-25 12:07:12,325 DEBUG t.w.WbdCache - Ignoring project (contains no directory named 'widgets'): /projects/8.5/curia/ttsvr
2015-05-25 12:07:12,325 INFO  t.w.WbdCache - Adding extension project ttWbd
2015-05-25 12:07:12,325 DEBUG t.w.WbdCache - Ignoring project (contains no directory named 'widgets'): /projects/8.5/curia/webdesign
2015-05-25 12:07:12,328 INFO  t.w.WbdCache - Registering interceptor: interceptor.multiTenantByUrl.xml
2015-05-25 12:07:12,343 INFO  t.w.WbdCache - Registering interceptor: interceptor.multitenant.xml
2015-05-25 12:07:12,343 INFO  t.w.WbdCache - Registering interceptor: interceptor.navpoint.xml
2015-05-25 12:07:12,362 INFO  t.w.WbdCache - Initializing interceptor (class=tooltwist.cloudmall.interceptors.NavpointInterceptor)
2015-05-25 12:07:12,362 DEBUG t.c.i.NavpointInterceptor - init() start...
2015-05-25 12:07:12,363 INFO  t.w.WbdCache - - interceptor registered.
2015-05-25 12:07:13,559 DEBUG t.c.x.BaseXDS - =====> GetAccessTokenXDS - START
2015-05-25 12:07:13,705 DEBUG t.c.x.BaseXDS - =====> GetAccessTokenXDS - END  | 147ms
2015-05-25 12:07:13,709 DEBUG t.c.b.c.ConverterHelper - Parsing:  to integer.
2015-05-25 12:07:13,714 DEBUG t.c.s.CloudmallInitServlet - >>>>>>   Setting the access token to redis.
2015-05-25 12:07:13,715 DEBUG t.c.b.ProjectToken - setAccessTokenToRedis() start...
2015-05-25 12:07:13,716 DEBUG t.c.x.BaseXDS - =====> SetAccessTokenToRedisXDS - START
2015-05-25 12:07:13,721 DEBUG t.c.x.BaseXDS - =====> SetAccessTokenToRedisXDS - END  | 5ms
2015-05-25 12:07:13,721 DEBUG t.c.s.CloudmallInitServlet - >>>>>>   Setting the hostname for server environment
2015-05-25 12:07:13,727 DEBUG t.c.s.CloudmallInitServlet - >>>>>>   Setting the category to redis.
2015-05-25 12:07:13,734 DEBUG t.c.x.BaseXDS - =====> GetAccessTokenFromRedisXDS - START
2015-05-25 12:07:13,738 DEBUG t.c.x.BaseXDS - =====> GetAccessTokenFromRedisXDS - END  | 4ms
2015-05-25 12:07:13,745 DEBUG t.c.x.BaseXDS - =====> SetMenuCategoryListXDS - START
2015-05-25 12:07:13,796 DEBUG t.c.x.BaseXDS - =====> SetMenuCategoryListXDS - END  | 51ms
2015-05-25 12:07:13,796 DEBUG t.c.s.CloudmallInitServlet - >>>>>>   Setting the catalogue to redis.
2015-05-25 12:07:13,801 DEBUG t.c.x.BaseXDS - =====> SetMenuCatalogueListXDS - START
2015-05-25 12:07:13,808 DEBUG t.c.x.BaseXDS - =====> SetMenuCatalogueListXDS - END  | 7ms
2015-05-25 12:07:13,809 DEBUG t.c.s.CloudmallInitServlet - >>>>>>   Setting the tenant to redis.
2015-05-25 12:07:13,810 DEBUG t.c.b.TenantMisc - setTenantToRedis() start...
2015-05-25 12:07:13,811 DEBUG t.c.x.BaseXDS - =====> SetTenantToRedisXDS - START
2015-05-25 12:07:13,817 DEBUG t.c.x.BaseXDS - =====> SetTenantToRedisXDS - END  | 6ms
May 25, 2015 12:07:13 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/ttsvr] is completed
May 25, 2015 12:07:23 PM org.apache.catalina.loader.WebappClassLoader modified
INFO:     Additional JARs have been added
May 25, 2015 12:07:23 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/ttsvr] has started
May 25, 2015 12:07:23 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/ttsvr] appears to have started a thread named [java-sdk-http-connection-reaper] but has failed to stop it. This is very likely to create a memory leak.

TIA

1 个答案:

答案 0 :(得分:2)

如果您认为代码/配置没有错误,您是否尝试检查server.xml和web.xml的正确配置?

另外,在您的server.xml上,请检查上下文标记上的可重新加载是否设置为false。这将阻止catalina持续检查更改并防止它再次重新加载webapps。我认为问题在于那里。

Here是文档的链接