IntelliJ IDEA启动spring boot项目出现Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]
出现的错误日志见后面的附加信息;
学习了:http://blog.csdn.net/lanmo555/article/details/51435534 发现大概是servlet-api的问题,而且在日志中发现了
启动jar包中包含D:JavaJetBrainsIntelliJIDEAlibservlet-api.jar;
该项目在sts中可以正确启动,应该是IntelliJ IDEA设置的问题;
而且该项目mvn install之后生成的jar包也可以java -jar xxx.jar正常运行;
学习了:https://www.cnblogs.com/jianzhixuan/p/6991503.html 估计以后部署在tomcat上面还需要填坑;
解决方法:
在IntelliJ IDEA中按F4,进入Project Structure,修改左侧Project、Modules,把其中的Project SDK修改为自己定义的jdk1.8;
重新启动项目就可以了;
观察现在输出的日志,里面就没有servlet-api.jar文件了。正确日志见后面附件。
错误日志:
D:Javajdk1.8.0_05injava -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=64090 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Didea.launcher.port=64091 -Didea.launcher.bin.path=D:JavaJetBrainsIntelliJIDEAin -Dfile.encoding=UTF-8 -classpath D:JavaJetBrainsIntelliJIDEAlibaether-1.1.0-all.jar;D:JavaJetBrainsIntelliJIDEAlibaether-dependency-resolver.jar;D:JavaJetBrainsIntelliJIDEAliballoy.jar;D:JavaJetBrainsIntelliJIDEAlibannotations.jar;D:JavaJetBrainsIntelliJIDEAlibasm-5.0.3.jar;D:JavaJetBrainsIntelliJIDEAlibasm-all.jar;D:JavaJetBrainsIntelliJIDEAlibasm-analysis-5.0.3.jar;D:JavaJetBrainsIntelliJIDEAlibasm-tree-5.0.3.jar;D:JavaJetBrainsIntelliJIDEAlibautomaton.jar;D:JavaJetBrainsIntelliJIDEAlibatik-all.jar;D:JavaJetBrainsIntelliJIDEAlibcprov-jdk15on-155.jar;D:JavaJetBrainsIntelliJIDEAliboot.jar;D:JavaJetBrainsIntelliJIDEAlibootstrap.jar;D:JavaJetBrainsIntelliJIDEAlibcglib-nodep-3.2.4.jar;D:JavaJetBrainsIntelliJIDEAlibcli-parser-1.1.jar;D:JavaJetBrainsIntelliJIDEAlibclojure-1.8.0.jar;D:JavaJetBrainsIntelliJIDEAlibclojure-jsr223-1.5.1.jar;D:JavaJetBrainsIntelliJIDEAlibcloud-config-client.jar;D:JavaJetBrainsIntelliJIDEAlibcommon-image-3.2.1.jar;D:JavaJetBrainsIntelliJIDEAlibcommon-io-3.2.1.jar;D:JavaJetBrainsIntelliJIDEAlibcommon-lang-3.2.1.jar;D:JavaJetBrainsIntelliJIDEAlibcommons-codec-1.9.jar;D:JavaJetBrainsIntelliJIDEAlibcommons-compress-1.10.jar;D:JavaJetBrainsIntelliJIDEAlibcommons-httpclient-3.1-patched.jar;D:JavaJetBrainsIntelliJIDEAlibcommons-imaging-1.0-RC.jar;D:JavaJetBrainsIntelliJIDEAlibcommons-logging-1.2.jar;D:JavaJetBrainsIntelliJIDEAlibcommons-net-3.3.jar;D:JavaJetBrainsIntelliJIDEAlibconstraint-layout.jar;D:JavaJetBrainsIntelliJIDEAlibcoverage-agent.jar;D:JavaJetBrainsIntelliJIDEAlibcoverage-instrumenter.jar;D:JavaJetBrainsIntelliJIDEAlibcoverage-util.jar;D:JavaJetBrainsIntelliJIDEAlibecj-4.6.2.jar;D:JavaJetBrainsIntelliJIDEAlibextensions.jar;D:JavaJetBrainsIntelliJIDEAlibexternal-system-rt.jar;D:JavaJetBrainsIntelliJIDEAlibfest-assert-1.5.0-SNAPSHOT.jar;D:JavaJetBrainsIntelliJIDEAlibfest-reflect-2.0-SNAPSHOT.jar;D:JavaJetBrainsIntelliJIDEAlibfest-swing-1.4.1-SNAPSHOT.jar;D:JavaJetBrainsIntelliJIDEAlibfest-util-1.3.0-SNAPSHOT.jar;D:JavaJetBrainsIntelliJIDEAlibfluent-hc-4.5.2.jar;D:JavaJetBrainsIntelliJIDEAlibforms_rt.jar;D:JavaJetBrainsIntelliJIDEAlibgoogle-analytics-library.jar;D:JavaJetBrainsIntelliJIDEAlibgroovy-all-2.4.12.jar;D:JavaJetBrainsIntelliJIDEAlibgson-2.8.2.jar;D:JavaJetBrainsIntelliJIDEAlibguava-21.0.jar;D:JavaJetBrainsIntelliJIDEAlibhamcrest-core-1.3.jar;D:JavaJetBrainsIntelliJIDEAlibhttpclient-4.5.2.jar;D:JavaJetBrainsIntelliJIDEAlibhttpcore-4.4.5.jar;D:JavaJetBrainsIntelliJIDEAlibhttpmime-4.5.2.jar;D:JavaJetBrainsIntelliJIDEAlibicons.jar;D:JavaJetBrainsIntelliJIDEAlibidea-jsp-openapi.jar;D:JavaJetBrainsIntelliJIDEAlibidea.jar;D:JavaJetBrainsIntelliJIDEAlibideax.jar;D:JavaJetBrainsIntelliJIDEAlibidea_rt.jar;D:JavaJetBrainsIntelliJIDEAlibimageio-core-3.2.1.jar;D:JavaJetBrainsIntelliJIDEAlibimageio-metadata-3.2.1.jar;D:JavaJetBrainsIntelliJIDEAlibimageio-tiff-3.2.1.jar;D:JavaJetBrainsIntelliJIDEAlibimgscalr-lib-4.2.jar;D:JavaJetBrainsIntelliJIDEAlibini4j-0.5.2-patched.jar;D:JavaJetBrainsIntelliJIDEAlibisorelax.jar;D:JavaJetBrainsIntelliJIDEAlibjasper21_rt.jar;D:JavaJetBrainsIntelliJIDEAlibjasper2_rt.jar;D:JavaJetBrainsIntelliJIDEAlibjavac2.jar;D:JavaJetBrainsIntelliJIDEAlibjaxen-1.1.3.jar;D:JavaJetBrainsIntelliJIDEAlibjayatana-1.2.4.jar;D:JavaJetBrainsIntelliJIDEAlibjcip-annotations.jar;D:JavaJetBrainsIntelliJIDEAlibjdkAnnotations.jar;D:JavaJetBrainsIntelliJIDEAlibjdom.jar;D:JavaJetBrainsIntelliJIDEAlibjediterm-pty-2.5.jar;D:JavaJetBrainsIntelliJIDEAlibjettison-1.3.2.jar;D:JavaJetBrainsIntelliJIDEAlibjgoodies-common-1.2.1.jar;D:JavaJetBrainsIntelliJIDEAlibjgoodies-forms.jar;D:JavaJetBrainsIntelliJIDEAlibjgoodies-looks-2.4.2.jar;D:JavaJetBrainsIntelliJIDEAlibjh.jar;D:JavaJetBrainsIntelliJIDEAlibjimfs-1.1.jar;D:JavaJetBrainsIntelliJIDEAlibjing.jar;D:JavaJetBrainsIntelliJIDEAlibjna-platform.jar;D:JavaJetBrainsIntelliJIDEAlibjna.jar;D:JavaJetBrainsIntelliJIDEAlibjps-builders-6.jar;D:JavaJetBrainsIntelliJIDEAlibjps-builders.jar;D:JavaJetBrainsIntelliJIDEAlibjps-launcher.jar;D:JavaJetBrainsIntelliJIDEAlibjps-model.jar;D:JavaJetBrainsIntelliJIDEAlibjsch-0.1.54.jar;D:JavaJetBrainsIntelliJIDEAlibjsch.agentproxy.connector-factory.jar;D:JavaJetBrainsIntelliJIDEAlibjsch.agentproxy.core.jar;D:JavaJetBrainsIntelliJIDEAlibjsch.agentproxy.jsch.jar;D:JavaJetBrainsIntelliJIDEAlibjsch.agentproxy.pageant.jar;D:JavaJetBrainsIntelliJIDEAlibjsch.agentproxy.sshagent.jar;D:JavaJetBrainsIntelliJIDEAlibjsch.agentproxy.usocket-jna.jar;D:JavaJetBrainsIntelliJIDEAlibjsch.agentproxy.usocket-nc.jar;D:JavaJetBrainsIntelliJIDEAlibjshell-frontend.jar;D:JavaJetBrainsIntelliJIDEAlibjshell-protocol.jar;D:JavaJetBrainsIntelliJIDEAlibjsp-api.jar;D:JavaJetBrainsIntelliJIDEAlibjsr173_1.0_api.jar;D:JavaJetBrainsIntelliJIDEAlibjsr305.jar;D:JavaJetBrainsIntelliJIDEAlibjunit-4.12.jar;D:JavaJetBrainsIntelliJIDEAlibjzlib-1.1.1.jar;D:JavaJetBrainsIntelliJIDEAlibkotlin-reflect.jar;D:JavaJetBrainsIntelliJIDEAlibkotlin-runtime.jar;D:JavaJetBrainsIntelliJIDEAliblog4j.jar;D:JavaJetBrainsIntelliJIDEAlibmarkdown4j-2.2.jar;D:JavaJetBrainsIntelliJIDEAlibmarkdownj-core-0.4.2-SNAPSHOT.jar;D:JavaJetBrainsIntelliJIDEAlibmaven-aether-provider-3.3.9-all.jar;D:JavaJetBrainsIntelliJIDEAlibmicroba.jar;D:JavaJetBrainsIntelliJIDEAlibmiglayout-core-5.0.jar;D:JavaJetBrainsIntelliJIDEAlibmiglayout-swing-5.0.jar;D:JavaJetBrainsIntelliJIDEAlibMultithreadedTC-1.01.jar;D:JavaJetBrainsIntelliJIDEAlib anoxml-2.2.3.jar;D:JavaJetBrainsIntelliJIDEAlib ekohtml-1.9.14.jar;D:JavaJetBrainsIntelliJIDEAlib etty-all-4.1.13.Final.jar;D:JavaJetBrainsIntelliJIDEAlibopenapi.jar;D:JavaJetBrainsIntelliJIDEAliboptimizedFileManager.jar;D:JavaJetBrainsIntelliJIDEAliboromatcher.jar;D:JavaJetBrainsIntelliJIDEAlibpicocontainer.jar;D:JavaJetBrainsIntelliJIDEAlibprotobuf-java-2.5.0.jar;D:JavaJetBrainsIntelliJIDEAlibproxy-vole-1.0.3.jar;D:JavaJetBrainsIntelliJIDEAlibpty4j-0.7.1.jar;D:JavaJetBrainsIntelliJIDEAlibpurejavacomm.jar;D:JavaJetBrainsIntelliJIDEAlib esolver.jar;D:JavaJetBrainsIntelliJIDEAlib esources.jar;D:JavaJetBrainsIntelliJIDEAlib esources_en.jar;D:JavaJetBrainsIntelliJIDEAlib hino-js-1_7R4.jar;D:JavaJetBrainsIntelliJIDEAlib ngom-20051226-patched.jar;D:JavaJetBrainsIntelliJIDEAlibserviceMessages.jar;D:JavaJetBrainsIntelliJIDEAlibservlet-api.jar;D:JavaJetBrainsIntelliJIDEAlibslf4j-api-1.7.10.jar;D:JavaJetBrainsIntelliJIDEAlibslf4j-log4j12-1.7.10.jar;D:JavaJetBrainsIntelliJIDEAlibsnakeyaml-1.17.jar;D:JavaJetBrainsIntelliJIDEAlibsnappy-in-java-0.5.1.jar;D:JavaJetBrainsIntelliJIDEAlibsqlite-jdbc-3.16.1.jar;D:JavaJetBrainsIntelliJIDEAlibstreamex-0.6.5.jar;D:JavaJetBrainsIntelliJIDEAlibstudio-profiler-grpc-1.0-jarjar.jar;D:JavaJetBrainsIntelliJIDEAlibswingx-core-1.6.2.jar;D:JavaJetBrainsIntelliJIDEAlib rang-core.jar;D:JavaJetBrainsIntelliJIDEAlib rilead-ssh2.jar;D:JavaJetBrainsIntelliJIDEAlib rove4j.jar;D:JavaJetBrainsIntelliJIDEAlibutil.jar;D:JavaJetBrainsIntelliJIDEAlibvelocity.jar;D:JavaJetBrainsIntelliJIDEAlibwadl-core.jar;D:JavaJetBrainsIntelliJIDEAlibwinp-1.23.jar;D:JavaJetBrainsIntelliJIDEAlibxbean.jar;D:JavaJetBrainsIntelliJIDEAlibxercesImpl.jar;D:JavaJetBrainsIntelliJIDEAlibxml-apis-ext.jar;D:JavaJetBrainsIntelliJIDEAlibxmlgraphics-commons-1.5.jar;D:JavaJetBrainsIntelliJIDEAlibxmlrpc-2.0.jar;D:JavaJetBrainsIntelliJIDEAlibxpp3-1.1.4-min.jar;D:JavaJetBrainsIntelliJIDEAlibxstream-1.4.8.jar;D:JavaJetBrainsIntelliJIDEAlibxz-1.5.jar;D:JavaJetBrainsIntelliJIDEAlibyjp-controller-api-redist.jar;D:JavaJetBrainsIntelliJIDEApluginsJavaEElibgradle-javaee.jar;D:JavaJetBrainsIntelliJIDEApluginsJavaEElibIntelliLang-javaee.jar;D:JavaJetBrainsIntelliJIDEApluginsJavaEElibjavaee-jps-plugin.jar;D:JavaJetBrainsIntelliJIDEApluginsJavaEElibjavaee-openapi.jar;D:JavaJetBrainsIntelliJIDEApluginsJavaEElib esources_en.jar;D:JavaJetBrainsIntelliJIDEApluginsJavaEElibwebDeployment-transport.jar;D:JavaJetBrainsIntelliJIDEApluginsPersistenceSupportlibpersistence-openapi.jar;D:JavaJetBrainsIntelliJIDEApluginsPersistenceSupportlib esources_en.jar;D:JavaJetBrainsIntelliJIDEApluginsDatabaseToolslibdatabase-openapi.jar;D:JavaJetBrainsIntelliJIDEApluginsDatabaseToolslibdekaf-single-2.0.0.339.jar;D:JavaJetBrainsIntelliJIDEApluginsDatabaseToolslib esources_en.jar;D:JavaJetBrainsIntelliJIDEApluginsDatabaseToolslibunidecode-0.0.7.jar;D:JavaJetBrainsIntelliJIDEApluginsCSSlibcss-openapi.jar;D:JavaJetBrainsIntelliJIDEApluginsCSSlib esources_en.jar;D:JavaJetBrainsIntelliJIDEApluginsumllibdiagram-api.jar;D:JavaJetBrainsIntelliJIDEApluginsSpringlibspring-aop.jar;D:JavaJetBrainsIntelliJIDEApluginsSpringlibspring-api.jar;D:JavaJetBrainsIntelliJIDEApluginsSpringlibspring-eclipse.jar;D:JavaJetBrainsIntelliJIDEApluginsSpringlibspring-graph.jar;D:JavaJetBrainsIntelliJIDEApluginsSpringlibspring-web.jar;D:Javajdk1.8.0_05jrelibcharsets.jar;D:Javajdk1.8.0_05jrelibdeploy.jar;D:Javajdk1.8.0_05jrelibextaccess-bridge-64.jar;D:Javajdk1.8.0_05jrelibextcldrdata.jar;D:Javajdk1.8.0_05jrelibextdnsns.jar;D:Javajdk1.8.0_05jrelibextjaccess.jar;D:Javajdk1.8.0_05jrelibextjfxrt.jar;D:Javajdk1.8.0_05jrelibextlocaledata.jar;D:Javajdk1.8.0_05jrelibext ashorn.jar;D:Javajdk1.8.0_05jrelibextsunec.jar;D:Javajdk1.8.0_05jrelibextsunjce_provider.jar;D:Javajdk1.8.0_05jrelibextsunmscapi.jar;D:Javajdk1.8.0_05jrelibextsunpkcs11.jar;D:Javajdk1.8.0_05jrelibextzipfs.jar;D:Javajdk1.8.0_05jrelibjavaws.jar;D:Javajdk1.8.0_05jrelibjce.jar;D:Javajdk1.8.0_05jrelibjfr.jar;D:Javajdk1.8.0_05jrelibjfxswt.jar;D:Javajdk1.8.0_05jrelibjsse.jar;D:Javajdk1.8.0_05jrelibmanagement-agent.jar;D:Javajdk1.8.0_05jrelibplugin.jar;D:Javajdk1.8.0_05jrelib esources.jar;D:Javajdk1.8.0_05jrelib t.jar;D:JavaIdeaProjectslearn argetclasses;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkootspring-boot-starter-web1.5.9.RELEASEspring-boot-starter-web-1.5.9.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkootspring-boot-starter1.5.9.RELEASEspring-boot-starter-1.5.9.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkootspring-boot1.5.9.RELEASEspring-boot-1.5.9.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkootspring-boot-autoconfigure1.5.9.RELEASEspring-boot-autoconfigure-1.5.9.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkootspring-boot-starter-logging1.5.9.RELEASEspring-boot-starter-logging-1.5.9.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgslf4jjcl-over-slf4j1.7.25jcl-over-slf4j-1.7.25.jar;E:apache-maven-3.3.9-binLocal_repositoryorgslf4jjul-to-slf4j1.7.25jul-to-slf4j-1.7.25.jar;E:apache-maven-3.3.9-binLocal_repositoryorgslf4jlog4j-over-slf4j1.7.25log4j-over-slf4j-1.7.25.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-core4.3.13.RELEASEspring-core-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgyamlsnakeyaml1.17snakeyaml-1.17.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkootspring-boot-starter-tomcat1.5.9.RELEASEspring-boot-starter-tomcat-1.5.9.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgapache omcatembed omcat-embed-core8.5.23 omcat-embed-core-8.5.23.jar;E:apache-maven-3.3.9-binLocal_repositoryorgapache omcat omcat-annotations-api8.5.23 omcat-annotations-api-8.5.23.jar;E:apache-maven-3.3.9-binLocal_repositoryorgapache omcatembed omcat-embed-el8.5.23 omcat-embed-el-8.5.23.jar;E:apache-maven-3.3.9-binLocal_repositoryorgapache omcatembed omcat-embed-websocket8.5.23 omcat-embed-websocket-8.5.23.jar;E:apache-maven-3.3.9-binLocal_repositoryorghibernatehibernate-validator5.3.6.Finalhibernate-validator-5.3.6.Final.jar;E:apache-maven-3.3.9-binLocal_repositoryjavaxvalidationvalidation-api1.1.0.Finalvalidation-api-1.1.0.Final.jar;E:apache-maven-3.3.9-binLocal_repositoryorgjbossloggingjboss-logging3.3.1.Finaljboss-logging-3.3.1.Final.jar;E:apache-maven-3.3.9-binLocal_repositorycomfasterxmlclassmate1.3.4classmate-1.3.4.jar;E:apache-maven-3.3.9-binLocal_repositorycomfasterxmljacksoncorejackson-databind2.8.10jackson-databind-2.8.10.jar;E:apache-maven-3.3.9-binLocal_repositorycomfasterxmljacksoncorejackson-annotations2.8.0jackson-annotations-2.8.0.jar;E:apache-maven-3.3.9-binLocal_repositorycomfasterxmljacksoncorejackson-core2.8.10jackson-core-2.8.10.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-web4.3.13.RELEASEspring-web-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-aop4.3.13.RELEASEspring-aop-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-beans4.3.13.RELEASEspring-beans-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-context4.3.13.RELEASEspring-context-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-webmvc4.3.13.RELEASEspring-webmvc-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-expression4.3.13.RELEASEspring-expression-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar com.intellij.rt.execution.application.AppMainV2 com.stono.learn.LearnApplication log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.. ____ _ __ _ _
/ / ' __ _ () __ __ _
( ( )__ | '_ | '| | ' / ` |
/ )| |)| | | | | || (| | ) ) ) )
' || .__|| ||| |__, | / / / /
=|_|======|/=////
:: Spring Boot :: (v1.5.9.RELEASE)十二月 30, 2017 8:04:09 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Tomcat]
十二月 30, 2017 8:04:09 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.5.23
十二月 30, 2017 8:04:10 上午 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[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:939)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
... 6 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [Pipeline[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5117)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.authenticator.NonLoginAuthenticator[]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:182)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 8 more
Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;
at org.apache.catalina.authenticator.AuthenticatorBase.startInternal(AuthenticatorBase.java:1141)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more十二月 30, 2017 8:04:10 上午 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[Tomcat].StandardHost[localhost]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:367)
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:99)
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.<init>(TomcatEmbeddedServletContainer.java:84)
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:554)
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:179)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
at com.stono.learn.LearnApplication.main(LearnApplication.java:10)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMainV2.main(AppMainV2.java:131)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:948)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 moreProcess finished with exit code 1
正确日志:
D:Javajdk1.8.0_05injava -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=65221 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:D:JavaJetBrainsIntelliJIDEAlibidea_rt.jar=65222:D:JavaJetBrainsIntelliJIDEAin -Dfile.encoding=UTF-8 -classpath D:Javajdk1.8.0_05jrelibcharsets.jar;D:Javajdk1.8.0_05jrelibdeploy.jar;D:Javajdk1.8.0_05jrelibextaccess-bridge-64.jar;D:Javajdk1.8.0_05jrelibextcldrdata.jar;D:Javajdk1.8.0_05jrelibextdnsns.jar;D:Javajdk1.8.0_05jrelibextjaccess.jar;D:Javajdk1.8.0_05jrelibextjfxrt.jar;D:Javajdk1.8.0_05jrelibextlocaledata.jar;D:Javajdk1.8.0_05jrelibext ashorn.jar;D:Javajdk1.8.0_05jrelibextsunec.jar;D:Javajdk1.8.0_05jrelibextsunjce_provider.jar;D:Javajdk1.8.0_05jrelibextsunmscapi.jar;D:Javajdk1.8.0_05jrelibextsunpkcs11.jar;D:Javajdk1.8.0_05jrelibextzipfs.jar;D:Javajdk1.8.0_05jrelibjavaws.jar;D:Javajdk1.8.0_05jrelibjce.jar;D:Javajdk1.8.0_05jrelibjfr.jar;D:Javajdk1.8.0_05jrelibjfxswt.jar;D:Javajdk1.8.0_05jrelibjsse.jar;D:Javajdk1.8.0_05jrelibmanagement-agent.jar;D:Javajdk1.8.0_05jrelibplugin.jar;D:Javajdk1.8.0_05jrelib esources.jar;D:Javajdk1.8.0_05jrelib t.jar;D:JavaIdeaProjectslearn argetclasses;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkootspring-boot-starter-web1.5.9.RELEASEspring-boot-starter-web-1.5.9.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkootspring-boot-starter1.5.9.RELEASEspring-boot-starter-1.5.9.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkootspring-boot1.5.9.RELEASEspring-boot-1.5.9.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkootspring-boot-autoconfigure1.5.9.RELEASEspring-boot-autoconfigure-1.5.9.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkootspring-boot-starter-logging1.5.9.RELEASEspring-boot-starter-logging-1.5.9.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgslf4jjcl-over-slf4j1.7.25jcl-over-slf4j-1.7.25.jar;E:apache-maven-3.3.9-binLocal_repositoryorgslf4jjul-to-slf4j1.7.25jul-to-slf4j-1.7.25.jar;E:apache-maven-3.3.9-binLocal_repositoryorgslf4jlog4j-over-slf4j1.7.25log4j-over-slf4j-1.7.25.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-core4.3.13.RELEASEspring-core-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgyamlsnakeyaml1.17snakeyaml-1.17.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkootspring-boot-starter-tomcat1.5.9.RELEASEspring-boot-starter-tomcat-1.5.9.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgapache omcatembed omcat-embed-core8.5.23 omcat-embed-core-8.5.23.jar;E:apache-maven-3.3.9-binLocal_repositoryorgapache omcat omcat-annotations-api8.5.23 omcat-annotations-api-8.5.23.jar;E:apache-maven-3.3.9-binLocal_repositoryorgapache omcatembed omcat-embed-el8.5.23 omcat-embed-el-8.5.23.jar;E:apache-maven-3.3.9-binLocal_repositoryorgapache omcatembed omcat-embed-websocket8.5.23 omcat-embed-websocket-8.5.23.jar;E:apache-maven-3.3.9-binLocal_repositoryorghibernatehibernate-validator5.3.6.Finalhibernate-validator-5.3.6.Final.jar;E:apache-maven-3.3.9-binLocal_repositoryjavaxvalidationvalidation-api1.1.0.Finalvalidation-api-1.1.0.Final.jar;E:apache-maven-3.3.9-binLocal_repositoryorgjbossloggingjboss-logging3.3.1.Finaljboss-logging-3.3.1.Final.jar;E:apache-maven-3.3.9-binLocal_repositorycomfasterxmlclassmate1.3.4classmate-1.3.4.jar;E:apache-maven-3.3.9-binLocal_repositorycomfasterxmljacksoncorejackson-databind2.8.10jackson-databind-2.8.10.jar;E:apache-maven-3.3.9-binLocal_repositorycomfasterxmljacksoncorejackson-annotations2.8.0jackson-annotations-2.8.0.jar;E:apache-maven-3.3.9-binLocal_repositorycomfasterxmljacksoncorejackson-core2.8.10jackson-core-2.8.10.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-web4.3.13.RELEASEspring-web-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-aop4.3.13.RELEASEspring-aop-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-beans4.3.13.RELEASEspring-beans-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-context4.3.13.RELEASEspring-context-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-webmvc4.3.13.RELEASEspring-webmvc-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgspringframeworkspring-expression4.3.13.RELEASEspring-expression-4.3.13.RELEASE.jar;E:apache-maven-3.3.9-binLocal_repositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar com.stono.learn.LearnApplication SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.. ____ _ __ _ _
/ / ' __ _ () __ __ _
( ( )__ | '_ | '| | ' / ` |
/ )| |)| | | | | || (| | ) ) ) )
' || .__|| ||| |__, | / / / /
=|_|======|/=////
:: Spring Boot :: (v1.5.9.RELEASE)十二月 30, 2017 8:41:02 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Tomcat]
十二月 30, 2017 8:41:02 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.5.23
十二月 30, 2017 8:41:02 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring embedded WebApplicationContext
十二月 30, 2017 8:41:18 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'dispatcherServlet'