最近在重新学习spring,建立工程启动时,发现web容器总是循环加载:

2014-1-2 11:50:18 org.apache.catalina.loader.WebappClassLoader modified
信息:     Additional JARs have been added : 'jstl.jar'
2014-1-2 11:50:18 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [/summer] has started
2014-1-2 11:50:18 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2014-1-2 11:50:18 org.apache.catalina.core.ApplicationContext log
信息: Shutting down log4j
2014-1-2 11:50:18 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/summer] appears to have started a thread named [Thread-8] but has failed to stop it. This is very likely to create a memory leak.
2014-1-2 11:50:18 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\Ailk\Jworkspace\summer\WebRoot\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2014-1-2 11:50:18 org.apache.catalina.core.ApplicationContext log
信息: Set web app root system property: 'webapp.root' = [D:\Ailk\Jworkspace\summer\WebRoot\]
2014-1-2 11:50:18 org.apache.catalina.core.ApplicationContext log
信息: Initializing log4j from [D:\Ailk\Jworkspace\summer\WebRoot\WEB-INF\log4j.properties]
2014-1-2 11:50:18 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.

 

发现,循环加载总是试图载入jstl.jar,找到这个jar包一看,才发现jar文件是损坏的。这才导致了容器总是试图加载这个jar。

重新下载这个jar后,问题解决。

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐