spring boot启动报错~~~

一脸茫然 发布于 2016/09/14 16:18
阅读 10K+
收藏 0
"C:\Program Files (x86)\Java\jdk1.7.0_79\bin\java" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:55105,suspend=y,server=n -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\charsets.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\deploy.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\javaws.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\jce.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\jfr.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\jfxrt.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\jsse.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\management-agent.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\plugin.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\resources.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\rt.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\ext\access-bridge-32.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\ext\dnsns.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\ext\jaccess.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\ext\localedata.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\ext\sunec.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\ext\sunjce_provider.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\ext\sunmscapi.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\ext\sunpkcs11.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\lib\ext\zipfs.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\target\classes;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\ojdbc6.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\jxl-2.6.10.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\jxls-2.3.0.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\xpp3-1.1.4c.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\log4j-1.2.14.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\jxls-poi-1.0.9.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\commons-dbcp-1.4.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\poi-3.9-20121203.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\jxls-jexcel-1.0.6.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\jxls-reader-2.0.2.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\commons-jexl-2.1.1.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\commons-logging-1.1.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\poi-ooxml-3.9-20121203.jar;C:\Users\sino-town\IdeaProjects\JXLS_Demo\src\main\webapp\WEB-INF\lib\jfinal-2.2-bin-with-src.jar;C:\Users\sino-town\.m2\repository\junit\junit\4.11\junit-4.11.jar;C:\Users\sino-town\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\sino-town\.m2\repository\com\ibeetl\beetl\2.5.0\beetl-2.5.0.jar;C:\Users\sino-town\.m2\repository\org\antlr\antlr4-runtime\4.2\antlr4-runtime-4.2.jar;C:\Users\sino-town\.m2\repository\org\abego\treelayout\org.abego.treelayout.core\1.0.1\org.abego.treelayout.core-1.0.1.jar;C:\Users\sino-town\.m2\repository\org\antlr\antlr4-annotations\4.2\antlr4-annotations-4.2.jar;C:\Users\sino-town\.m2\repository\com\ibeetl\beetlsql\2.6.0\beetlsql-2.6.0.jar;C:\Users\sino-town\.m2\repository\mysql\mysql-connector-java\5.1.18\mysql-connector-java-5.1.18.jar;C:\Users\sino-town\.m2\repository\com\alibaba\fastjson\1.2.16\fastjson-1.2.16.jar;C:\Users\sino-town\.m2\repository\org\springframework\spring-core\4.3.2.RELEASE\spring-core-4.3.2.RELEASE.jar;C:\Users\sino-town\.m2\repository\org\springframework\spring-beans\4.3.2.RELEASE\spring-beans-4.3.2.RELEASE.jar;C:\Users\sino-town\.m2\repository\org\springframework\spring-context\4.3.2.RELEASE\spring-context-4.3.2.RELEASE.jar;C:\Users\sino-town\.m2\repository\org\springframework\spring-aop\4.3.3.BUILD-SNAPSHOT\spring-aop-4.3.3.BUILD-20160913.214512-54.jar;C:\Users\sino-town\.m2\repository\org\springframework\spring-expression\4.3.3.BUILD-SNAPSHOT\spring-expression-4.3.3.BUILD-20160913.214512-54.jar;C:\Users\sino-town\.m2\repository\org\springframework\spring-tx\4.3.2.RELEASE\spring-tx-4.3.2.RELEASE.jar;C:\Users\sino-town\.m2\repository\org\springframework\spring-web\4.3.2.RELEASE\spring-web-4.3.2.RELEASE.jar;C:\Users\sino-town\.m2\repository\org\springframework\spring-webmvc\4.3.2.RELEASE\spring-webmvc-4.3.2.RELEASE.jar;C:\Users\sino-town\.m2\repository\org\springframework\spring-jdbc\4.3.2.RELEASE\spring-jdbc-4.3.2.RELEASE.jar;C:\Users\sino-town\.m2\repository\com\alibaba\druid\1.0.25\druid-1.0.25.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\..\lib\jconsole.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\jre\..\lib\tools.jar;C:\Users\sino-town\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.8.2\jackson-core-2.8.2.jar;C:\Users\sino-town\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.8.2\jackson-databind-2.8.2.jar;C:\Users\sino-town\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.7.6\jackson-annotations-2.7.6.jar;C:\Users\sino-town\.m2\repository\org\codehaus\jackson\jackson-mapper-asl\1.9.13\jackson-mapper-asl-1.9.13.jar;C:\Users\sino-town\.m2\repository\org\codehaus\jackson\jackson-core-asl\1.9.13\jackson-core-asl-1.9.13.jar;C:\Users\sino-town\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;C:\Users\sino-town\.m2\repository\org\springframework\boot\spring-boot-starter-web\1.4.1.BUILD-SNAPSHOT\spring-boot-starter-web-1.4.1.BUILD-20160913.072636-76.jar;C:\Users\sino-town\.m2\repository\org\springframework\boot\spring-boot-starter\1.4.1.BUILD-SNAPSHOT\spring-boot-starter-1.4.1.BUILD-20160913.072636-75.jar;C:\Users\sino-town\.m2\repository\org\springframework\boot\spring-boot\1.4.1.BUILD-SNAPSHOT\spring-boot-1.4.1.BUILD-20160913.072636-76.jar;C:\Users\sino-town\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\1.4.1.BUILD-SNAPSHOT\spring-boot-autoconfigure-1.4.1.BUILD-20160913.072636-75.jar;C:\Users\sino-town\.m2\repository\org\springframework\boot\spring-boot-starter-logging\1.4.1.BUILD-SNAPSHOT\spring-boot-starter-logging-1.4.1.BUILD-20160913.072636-75.jar;C:\Users\sino-town\.m2\repository\ch\qos\logback\logback-classic\1.1.7\logback-classic-1.1.7.jar;C:\Users\sino-town\.m2\repository\ch\qos\logback\logback-core\1.1.7\logback-core-1.1.7.jar;C:\Users\sino-town\.m2\repository\org\slf4j\slf4j-api\1.7.21\slf4j-api-1.7.21.jar;C:\Users\sino-town\.m2\repository\org\slf4j\jcl-over-slf4j\1.7.21\jcl-over-slf4j-1.7.21.jar;C:\Users\sino-town\.m2\repository\org\slf4j\jul-to-slf4j\1.7.21\jul-to-slf4j-1.7.21.jar;C:\Users\sino-town\.m2\repository\org\slf4j\log4j-over-slf4j\1.7.21\log4j-over-slf4j-1.7.21.jar;C:\Users\sino-town\.m2\repository\org\yaml\snakeyaml\1.17\snakeyaml-1.17.jar;C:\Users\sino-town\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\1.4.1.BUILD-SNAPSHOT\spring-boot-starter-tomcat-1.4.1.BUILD-20160913.072636-74.jar;C:\Users\sino-town\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\8.5.4\tomcat-embed-core-8.5.4.jar;C:\Users\sino-town\.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\8.5.4\tomcat-embed-el-8.5.4.jar;C:\Users\sino-town\.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.4\tomcat-embed-websocket-8.5.4.jar;C:\Users\sino-town\.m2\repository\org\hibernate\hibernate-validator\5.2.4.Final\hibernate-validator-5.2.4.Final.jar;C:\Users\sino-town\.m2\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;C:\Users\sino-town\.m2\repository\org\jboss\logging\jboss-logging\3.3.0.Final\jboss-logging-3.3.0.Final.jar;C:\Users\sino-town\.m2\repository\com\fasterxml\classmate\1.3.1\classmate-1.3.1.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.2.3\lib\idea_rt.jar" sino.test.SampleController
Connected to the target VM, address: '127.0.0.1:55105', transport: 'socket'


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::  (v1.4.1.BUILD-SNAPSHOT)


2016-09-14 16:17:33.647  INFO 7044 --- [           main] sino.test.SampleController               : Starting SampleController on DESKTOP-7I89BME with PID 7044 (C:\Users\sino-town\IdeaProjects\JXLS_Demo\target\classes started by sino-town in C:\Users\sino-town\IdeaProjects\JXLS_Demo)
2016-09-14 16:17:33.650  INFO 7044 --- [           main] sino.test.SampleController               : No active profile set, falling back to default profiles: default
2016-09-14 16:17:33.697  INFO 7044 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4afdc4: startup date [Wed Sep 14 16:17:33 CST 2016]; root of context hierarchy
2016-09-14 16:17:34.723  INFO 7044 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$50ccbf09] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2016-09-14 16:17:35.222  INFO 7044 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2016-09-14 16:17:35.232  INFO 7044 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat
2016-09-14 16:17:35.233  INFO 7044 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.4
2016-09-14 16:17:35.348 ERROR 7044 --- [cat-startStop-1] org.apache.catalina.core.ContainerBase   : A child container failed during start


java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122) [na:1.7.0_79]
at java.util.concurrent.FutureTask.get(FutureTask.java:188) [na:1.7.0_79]
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:911) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:890) [tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) [tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1403) [tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393) [tomcat-embed-core-8.5.4.jar:8.5.4]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158) [tomcat-embed-core-8.5.4.jar:8.5.4]
... 6 common frames omitted
Caused by: org.apache.catalina.LifecycleException: Failed to start component [Pipeline[StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158) [tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5088) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) [tomcat-embed-core-8.5.4.jar:8.5.4]
... 6 common frames omitted
Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.authenticator.NonLoginAuthenticator[]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158) [tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:170) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) [tomcat-embed-core-8.5.4.jar:8.5.4]
... 8 common frames omitted
Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;
at org.apache.catalina.authenticator.AuthenticatorBase.startInternal(AuthenticatorBase.java:1085) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) [tomcat-embed-core-8.5.4.jar:8.5.4]
... 10 common frames omitted


2016-09-14 16:17:35.349 ERROR 7044 --- [           main] org.apache.catalina.core.ContainerBase   : 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) ~[na:1.7.0_79]
at java.util.concurrent.FutureTask.get(FutureTask.java:188) ~[na:1.7.0_79]
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:911) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) [tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) [tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422) [tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) [tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:791) [tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) [tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:356) [tomcat-embed-core-8.5.4.jar:8.5.4]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:97) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.<init>(TomcatEmbeddedServletContainer.java:83) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:530) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:177) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:535) [spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at sino.test.SampleController.main(SampleController.java:23) [classes/:na]
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158) [tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1403) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1393) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_79]
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:890) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) [tomcat-embed-core-8.5.4.jar:8.5.4]
... 6 common frames omitted


2016-09-14 16:17:35.352  WARN 7044 --- [           main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
2016-09-14 16:17:35.357 ERROR 7044 --- [           main] o.s.boot.SpringApplication               : Application startup failed


org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137) ~[spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:535) ~[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175) [spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at sino.test.SampleController.main(SampleController.java:23) [classes/:na]
Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:116) ~[spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.<init>(TomcatEmbeddedServletContainer.java:83) ~[spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:530) ~[spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:177) ~[spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164) ~[spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134) ~[spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
... 8 common frames omitted
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[-1]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:356) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:97) ~[spring-boot-1.4.1.BUILD-20160913.072636-76.jar:1.4.1.BUILD-SNAPSHOT]
... 13 common frames omitted
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Tomcat]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:791) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
... 15 common frames omitted
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
... 17 common frames omitted
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) ~[tomcat-embed-core-8.5.4.jar:8.5.4]
... 19 common frames omitted


Disconnected from the target VM, address: '127.0.0.1:55105', transport: 'socket'


Process finished with exit code 1

加载中
0
魔法刀客
魔法刀客

Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;

看看是javaee否版本不对

0
p
polaris_he
mvn dependency:tree看下servlet-api的版本,应该你引入了低版本的servlet-api
p
polaris_he
回复 @一脸茫然 : 需要3.1 http://docs.oracle.com/javaee/7/api/javax/servlet/ServletContext.html#getVirtualServerName--
一脸茫然
一脸茫然
版本怎么确定是多少呢?
返回顶部
顶部