Tomcat启动失败
现象:
The required Server component failed to start so Tomcat is unable to start.也就是说却少容器组件。
Server Tomcat v7.0 Server at localhost failed to start
六月 07, 2017 11:33:49 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server} Setting property 'start-timeout' to '120' did not find a matching property. 六月 07, 2017 11:33:49 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server} Setting property 'stop-timeout' to '120' did not find a matching property. 六月 07, 2017 11:33:49 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:yuanchuangyun-libra-web' did not find a matching property. 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server version: Apache Tomcat/7.0.57 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server built: Nov 3 2014 08:39:16 UTC 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server number: 7.0.57.0 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS Name: Windows NT (unknown) 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS Version: 6.2 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Architecture: amd64 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: JAVA_HOME: C:Program FilesJavajdk1.7.0jre 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM Version: 1.7.0-b147 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM Vendor: Oracle Corporation 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_BASE: D:workspacegit.metadata.pluginsorg.eclipse.wst.server.coretmp2 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_HOME: D:apache-tomcat-7.0.57 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:4105 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dmaven.multiModuleProjectDirectory=$M2_HOME 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Xms2048m 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Xmx6128m 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Xms2046m 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Xmx4096m 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.base=D:workspacegit.metadata.pluginsorg.eclipse.wst.server.coretmp2 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.home=D:apache-tomcat-7.0.57 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dwtp.deploy=D:workspacegit.metadata.pluginsorg.eclipse.wst.server.core mp2wtpwebapps 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Djava.endorsed.dirs=D:apache-tomcat-7.0.57endorsed 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dfile.encoding=UTF-8 六月 07, 2017 11:33:50 上午 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: C:Program FilesJavajdk1.7.0in;C:WINDOWSSunJavain;C:WINDOWSsystem32;C:WINDOWS;C:Program FilesJavajdk1.7.0jrein;C:Program FilesDockerDockerResourcesin;C:Python27;C:Python27Scripts;C:Program Files (x86)Common FilesNetSarang;C:Program Files (x86)InteliCLS Client;C:Program FilesInteliCLS Client;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsIPT;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;C:Program Files (x86)ATI TechnologiesATI.ACECore-Static;C:Program Files (x86)Common Fileslenovoeasyplussdkin;C:ProgramDataLenovoReadyApps;C:Program FilesTortoiseSVNin;C:Program Files (x86)Notepad++;D:Batch;C:Program Files (x86)Microsoft SQL Server100ToolsBinn;C:Program FilesMicrosoft SQL Server100ToolsBinn;C:mysql-5.6.28-winx64in;C:Program Files odejs;C:Program FilesGitcmd;C:Program Filesapache-maven-3.3.3in;C:Program Files (x86)SkypePhone;C:Program Files (x86)Microsoft SDKsWindowsv7.0ABinx64;C:Program FilesMicrosoftWeb Platform Installer;C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0;C:Program FilesMySQLMySQL Workbench 6.3 CE;%localappdata%MicrosoftWindowsApps;C:Program Files (x86)Windows Kits10Windows Performance Toolkit;C:Program Files (x86)MySQLMySQL Utilities;C:Program Files (x86)MySQLMySQL UtilitiesDoctrine extensions for PHP;C:Program Files (x86)Gourcecmd;C:WINDOWSsystem32configsystemprofile.dnxin;C:Program FilesMicrosoft DNXDnvm;C:Program FilesMicrosoft SQL Server120ToolsBinn;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program FilesTortoiseGitin;C:Program Files (x86)Microsoft SQL Server100ToolsBinnVSShellCommon7IDE;C:Program Files (x86)Microsoft SQL Server100DTSBinn;C:Program FilesRedis;C:Program FilesJavajdk1.7.0in;C:Program FilesSQL Anywhere 16in64;C:Program FilesSQL Anywhere 16in32;C:Program FilesMicrosoft SQL Server100DTSBinn;C:Program Files (x86)Microsoft Visual StudioCommonToolsWinNT;C:Program Files (x86)Microsoft Visual StudioCommonTools;C:Program Files (x86)Nmap;C:Python27Libsite-packages;C:Python27;C:libwww;C:UsersAdministratorAppDataLocalMicrosoftWindowsApps;;. 六月 07, 2017 11:33:50 上午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-90"] 六月 07, 2017 11:33:50 上午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-543"] 六月 07, 2017 11:33:50 上午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-bio-9010"] 六月 07, 2017 11:33:50 上午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 1241 ms 六月 07, 2017 11:33:50 上午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Catalina 六月 07, 2017 11:33:50 上午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.57 六月 07, 2017 11:33:51 上午 org.apache.catalina.core.ContainerBase startInternal 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) ... 7 more Caused by: java.lang.NoClassDefFoundError: Lorg/slf4j/Logger; at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2308) at java.lang.Class.getDeclaredFields(Class.java:1760) at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106) at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:109) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:64) at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:415) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:892) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5380) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 7 more Caused by: java.lang.ClassNotFoundException: org.slf4j.Logger at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) ... 21 more 六月 07, 2017 11:33:51 上午 org.apache.catalina.core.ContainerBase startInternal 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.startup.Catalina.start(Catalina.java:689) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 7 more 六月 07, 2017 11:33:51 上午 org.apache.catalina.startup.Catalina start 严重: The required Server component failed to start so Tomcat is unable to start. org.apache.catalina.LifecycleException: Failed to start component [StandardServer[9006]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.startup.Catalina.start(Catalina.java:689) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 7 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 9 more Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 11 more 六月 07, 2017 11:33:51 上午 org.apache.coyote.AbstractProtocol pause 信息: Pausing ProtocolHandler ["http-bio-90"] 六月 07, 2017 11:33:51 上午 org.apache.coyote.AbstractProtocol pause 信息: Pausing ProtocolHandler ["http-bio-543"] 六月 07, 2017 11:33:51 上午 org.apache.coyote.AbstractProtocol pause 信息: Pausing ProtocolHandler ["ajp-bio-9010"] 六月 07, 2017 11:33:51 上午 org.apache.catalina.core.StandardService stopInternal 信息: Stopping service Catalina 六月 07, 2017 11:33:51 上午 org.apache.coyote.AbstractProtocol destroy 信息: Destroying ProtocolHandler ["http-bio-90"] 六月 07, 2017 11:33:51 上午 org.apache.coyote.AbstractProtocol destroy 信息: Destroying ProtocolHandler ["http-bio-543"] 六月 07, 2017 11:33:51 上午 org.apache.coyote.AbstractProtocol destroy 信息: Destroying ProtocolHandler ["ajp-bio-9010"]
原因:POM文件