一:如果出现下面的错误信息,如果你的项目是Maven结构的,那么一般都是你的项目的Maven Dependencies没有添加到项目的编译路径下:
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_40\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_40/bin/client;C:/Program Files/Java/jre1.8.0_40/bin;C:/Program Files/Java/jre1.8.0_40/lib/i386;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\NetSarang;F:\oracle\product\10.2.0\db_2\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\system32\windowspowershell\v1.0\;C:\Program Files\Java\jdk1.8.0_40\bin;C:\Program Files\Java\jdk1.8.0_40\bin;D:\Program Files\apache-ant-1.8.2\bin;D:\Program Files\apache-maven-3.0.5\bin;c:\program files\ibm\gsk8\lib;C:\Python27;C:\Program Files\TortoiseSVN\bin;.;D:\android-sdk-windows\platform-tools;D:\android-sdk-windows\tools;d:\Program Files\SSH Communications Security\SSH Secure Shell;C:\Program Files\MySQL\MySQL Server 5.0\bin;D:\Program Files\apache-maven-3.0.5;D:\eclipse-jee-luna-SR2-win32\eclipse;;.
五月 10, 2015 6:23:18 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:sample-web-test' did not find a matching property.
五月 10, 2015 6:23:19 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
五月 10, 2015 6:23:19 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
五月 10, 2015 6:23:19 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 849 ms
五月 10, 2015 6:23:19 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
五月 10, 2015 6:23:19 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.52
五月 10, 2015 6:23:19 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Error configuring application listener of class org.springframework.web.util.IntrospectorCleanupListener
java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4888)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
五月 10, 2015 6:23:19 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
五月 10, 2015 6:23:19 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
五月 10, 2015 6:23:20 下午 org.apache.catalina.util.SessionIdGenerator createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [344] milliseconds.
五月 10, 2015 6:23:20 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/sample-web-test] startup failed due to previous errors
五月 10, 2015 6:23:20 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.52\webapps\docs
五月 10, 2015 6:23:20 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.52\webapps\examples
五月 10, 2015 6:23:20 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
五月 10, 2015 6:23:20 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
五月 10, 2015 6:23:20 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@1e59f14')
五月 10, 2015 6:23:20 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.52\webapps\host-manager
五月 10, 2015 6:23:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.52\webapps\manager
五月 10, 2015 6:23:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\apache-tomcat-7.0.52\webapps\ROOT
五月 10, 2015 6:23:21 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
五月 10, 2015 6:23:21 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
五月 10, 2015 6:23:21 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 2028 ms
二:解决办法:
①选中项目->右键Properties->选择Deployment Assemby->选择Add->选中Java Build Path Entries->Next->选择Maven Dependencies->Finish->Apply->OK