Why the org.apache.catalina.core.StandardContext reload program will not stop re

2013-10-18 9:50:26 org.apache.catalina.core.StandardContext reload
Information: Reloading Context with name [/SzcaAc] has started
2013-10-18 9:50:26 org.apache.catalina.core.ApplicationContext log
Information: Closing Spring root WebApplicationContext
2013-10-18 9:50:26 org.hibernate.impl.SessionFactoryImpl close
Information: closing
2013-10-18 9:50:26 org.apache.catalina.core.ApplicationContext log
Information: Shutting down log4j
2013-10-18 9:50:26 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
Serious: The web application [/SzcaAc] registered the JDBC 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.
2013-10-18 9:50:26 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Serious: The web application [/SzcaAc] appears to have started a thread named [Thread-30] but has failed to stop it. This is very likely to create a memory leak.
2013-10-18 9:50:26 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Serious: The web application [/SzcaAc] appears to have started a thread named [Timer-7] but has failed to stop it. This is very likely to create a memory leak.
2013-10-18 9:50:26 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Serious: The web application [/SzcaAc] appears to have started a thread named [Timer-8] but has failed to stop it. This is very likely to create a memory leak.
2013-10-18 9:50:26 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
Serious: The web application [/SzcaAc] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [com.sun.faces.util.Util$1@395294]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2013-10-18 9:50:26 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
Serious: The web application [/SzcaAc] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@15c9cb8]) and a value of type [com.opensymphony.xwork2.inject.ContainerImpl] (value [com.opensymphony.xwork2.inject.ContainerImpl@1350d59]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2013-10-18 9:50:27 org.apache.catalina.loader.WebappClassLoader validateJarFile
Information: validateJarFile(D:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\SzcaAc\WEB-INF\lib\geronimo-servlet_3.0_spec-1.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2013-10-18 9:50:32 org.apache.catalina.core.ApplicationContext log
Information: No Spring WebApplicationInitializer types detected on classpath
2013-10-18 9:50:32 org.apache.catalina.core.ApplicationContext log
Information: Set web app root system property: 'webApp.root' = [D:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\SzcaAc\]
2013-10-18 9:50:32 org.apache.catalina.core.ApplicationContext log
Information: Initializing log4j from [D:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\SzcaAc\WEB-INF\log4j.properties]
2013-10-18 9:50:32 org.apache.catalina.core.ApplicationContext log
Information: Initializing Spring root WebApplicationContext
SLF4J: The requested version 1.6 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8]
SLF4J: See for further details.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/SzcaAc/WEB-INF/lib/slf4j-jdk14-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/SzcaAc/WEB-INF/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See for an explanation.
2013-10-18 9:50:33 org.apache.catalina.core.StandardContext listenerStart
Exception sending context initialized event: to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/beans.xml]; nested exception is java.lang.OutOfMemoryError: PermGen space
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:527)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:441)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3954)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1345)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2895)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1173)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1681)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at org.apache.cxf.configuration.spring.AbstractBeanDefinitionParser.parseChildElements(AbstractBeanDefinitionParser.java:115)
at org.apache.cxf.configuration.spring.AbstractBeanDefinitionParser.doParse(AbstractBeanDefinitionParser.java:71)
at org.apache.cxf.frontend.spring.ServerFactoryBeanDefinitionParser.doParse(ServerFactoryBeanDefinitionParser.java:88)
at org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.parseInternal(AbstractSingleBeanDefinitionParser.java:85)
at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:59)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1431)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1421)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:184)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)

Started by Amos at November 10, 2016 - 8:16 PM

The project has a timed task execution, when the project started, every four hours after the execution time, the present situation is started after the completion of the project execution, again, do not know why? Please have a look, thank you!

Posted by Amos at November 11, 2016 - 8:31 PM

What program timing task for you?

Posted by Nancy at November 18, 2016 - 8:51 PM

The web.xml configuration
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<display-name>ASK123</display-name>

<context-param>
<param-name>webAppRootKey</param-name>
<param-value>webApp.root</param-value>
</context-param>
<!-- used to load the spring configuration files>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/beans.xml
</param-value>
</context-param>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4j.properties</param-value>
</context-param>
<!The --Spring refresh the default Log4j configuration file for millisecond unit interval, -->
<context-param>
<param-name>log4jRefreshInterval</param-name>
<param-value>60000</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>com.szca.ac.sys.CharsetFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>ignore</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<!In addition, login authentication login pages will all be filter detection. If you do not log on to return to the CAlogin.jsp landing page:>

<filter>
<filter-name>loginFilter</filter-name>
<filter-class>com.szca.ac.sys.LoginFilter</filter-class>
<init-param>
<param-name>loginPage</param-name>
<param-value>/newac/login.jsp</param-value>
</init-param>
<init-param>
<param-name>loginUPage</param-name>
<param-value>/newac/Ulogin/Ulogin.jsp</param-value>
</init-param>
<init-param>
<param-name>loginAction</param-name>
<param-value>/login/managersocertlogin.action</param-value>
</init-param>
<init-param>
<param-name>loginUAction</param-name>
<param-value>/Ulogin/userssocertlogin.action</param-value>
</init-param>
</filter>
<!--Filter to set character encoding to GBK-->
<filter-mapping>
<filter-name>loginFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>loginFilter</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>loginFilter</filter-name>
<url-pattern>*.html</url-pattern>
</filter-mapping>

<!- OpenSessionInViewFilter filter configuration, handle affairs -->
<!OpenSessionInViewFilter filter: -->
<filter>
<filter-name>lazyLoadingFilter</filter-name>
<filter-class>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>lazyLoadingFilter</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>

<!Here we should pay special attention to, this is at the core of class FilterDispatcher - loading struts>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<!-- <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> -->
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>

<!CXF configuration:>
<servlet>
<servlet-name>startupservlet</servlet-name>
<servlet-class>com.szca.ac.struts.StartupServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet> <servlet>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>
org.apache.cxf.transport.servlet.CXFServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>startselectservlet</servlet-name>
<servlet-class>com.szca.ac.sys.SystemRouse</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>Ulogin/index.jsp</welcome-file>
</welcome-file-list>


<!JfreeChart configuration:>
<servlet>
<servlet-name>DisplayChart</servlet-name>
<servlet-class>org.jfree.chart.servlet.DisplayChart</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DisplayChart</servlet-name>
<url-pattern>/servlet/DisplayChart</url-pattern>
</servlet-mapping>

<session-config>
<session-timeout>30</session-timeout>
</session-config>

</web-app>

Posted by Amos at November 30, 2016 - 8:56 PM

<servlet>
<servlet-name>startupservlet</servlet-name>
<servlet-class>com.szca.ac.struts.StartupServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

Posted by Amos at December 11, 2016 - 9:18 PM

<servlet>
<servlet-name>startupservlet</servlet-name>
<servlet-class>com.szca.ac.struts.StartupServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

Posted by Amos at December 13, 2016 - 9:19 PM