Tomcat启动老是报 org.springframework.web.context.ContextLoaderListener错误?
八月 01, 2017 11:21:03 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.72
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Sep 14 2016 12:12:26 UTC
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.72.0
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 8
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 6.2
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: D:\ Professional\MyEclipse 2014\binary\com.sun.java.jdk7.win32.x86_64_1.7.0.u45\jre
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.7.0_45-b18
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\program files\Apache Software Foundation\Tomcat 7.0
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\program files\Apache Software Foundation\Tomcat 7.0
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:60481
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\program files\Apache Software Foundation\Tomcat 7.0
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\program files\Apache Software Foundation\Tomcat 7.0
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\program files\Apache Software Foundation\Tomcat 7.0/common/endorsed
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=D:\program files\Apache Software Foundation\Tomcat 7.0\temp
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.library.path=D:\ Professional\MyEclipse 2014\binary\com.sun.java.jdk7.win32.x86_64_1.7.0.u45\bin;D:\program files\Apache Software Foundation\Tomcat 7.0\bin
八月 01, 2017 11:21:03 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dsun.io.useCanonCaches=false
八月 01, 2017 11:21:03 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\ Professional\MyEclipse 2014\binary\com.sun.java.jdk7.win32.x86_64_1.7.0.u45\bin;D:\program files\Apache Software Foundation\Tomcat 7.0\bin
八月 01, 2017 11:21:04 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
八月 01, 2017 11:21:04 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
八月 01, 2017 11:21:04 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1503 ms
八月 01, 2017 11:21:04 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
八月 01, 2017 11:21:04 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.72
八月 01, 2017 11:21:08 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
八月 01, 2017 11:21:08 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:504)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:486)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:113)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5034)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
八月 01, 2017 11:21:08 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
八月 01, 2017 11:21:08 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
八月 01, 2017 11:21:08 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [] startup failed due to previous errors
八月 01, 2017 11:21:08 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\program files\Apache Software Foundation\Tomcat 7.0\webapps\docs
八月 01, 2017 11:21:09 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\program files\Apache Software Foundation\Tomcat 7.0\webapps\docs has finished in 219 ms
八月 01, 2017 11:21:09 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\program files\Apache Software Foundation\Tomcat 7.0\webapps\manager
八月 01, 2017 11:21:09 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\program files\Apache Software Foundation\Tomcat 7.0\webapps\manager has finished in 168 ms
八月 01, 2017 11:21:09 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\program files\Apache Software Foundation\Tomcat 7.0\webapps\MicroMessage
八月 01, 2017 11:21:10 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
八月 01, 2017 11:21:10 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\program files\Apache Software Foundation\Tomcat 7.0\webapps\MicroMessage has finished in 1,611 ms
八月 01, 2017 11:21:10 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\program files\Apache Software Foundation\Tomcat 7.0\webapps\ssh
八月 01, 2017 11:21:19 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
八月 01, 2017 11:21:19 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
八月 01, 2017 11:21:19 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
[SpringTransaction] 2017-08-01 23:21:19 Root WebApplicationContext: initialization started
[SpringTransaction] 2017-08-01 23:21:19 Refreshing Root WebApplicationContext: startup date [Tue Aug 01 23:21:19 CST 2017]; root of context hierarchy
[SpringTransaction] 2017-08-01 23:21:19 Loading XML bean definitions from class path resource [applicationContext.xml]
[SpringTransaction] 2017-08-01 23:21:20 Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@784d15de: defining beans []; root of factory hierarchy
[SpringTransaction] 2017-08-01 23:21:20 Root WebApplicationContext: initialization completed in 1232 ms
[SpringTransaction] 2017-08-01 23:21:21 Parsing configuration file [struts-default.xml]
[SpringTransaction] 2017-08-01 23:21:21 Parsing configuration file [struts-plugin.xml]
[SpringTransaction] 2017-08-01 23:21:21 Parsing configuration file [struts.xml]
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (spring) for (com.opensymphony.xwork2.ObjectFactory)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.factory.ActionFactory)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.factory.ResultFactory)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.factory.ConverterFactory)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.factory.InterceptorFactory)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.factory.ValidatorFactory)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionFileProcessor)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterCreator)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterHolder)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)
[SpringTransaction] 2017-08-01 23:21:21 Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser)
[SpringTransaction] 2017-08-01 23:21:21 Initializing Struts-Spring integration...
[SpringTransaction] 2017-08-01 23:21:21 Setting autowire strategy to name
[SpringTransaction] 2017-08-01 23:21:21 ... initialized Struts-Spring integration successfully
八月 01, 2017 11:21:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\program files\Apache Software Foundation\Tomcat 7.0\webapps\ssh has finished in 11,115 ms
八月 01, 2017 11:21:21 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
八月 01, 2017 11:21:21 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
八月 01, 2017 11:21:21 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 17880 ms
web.xml配置
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<!-- Spring的框架的核心监听器 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:applicationContext.xml
</param-value>
</context-param>
<!-- Struts2框架的核心过滤器的配置 -->
<filter>
<filter-name>Struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<display-name>ssh</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>