记录一次SpringBoot打成war包部署到tomcat启动报错

Posted 星朝

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了记录一次SpringBoot打成war包部署到tomcat启动报错相关的知识,希望对你有一定的参考价值。

启动时,报错信息如下:

28-Sep-2018 16:55:41.567 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Error during ServletContainerInitializer processing
 javax.servlet.ServletException: Failed to instantiate WebApplicationInitializer class
        at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:158)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5311)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:974)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1850)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.accessibleConstructor(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
        at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:155)
        ... 12 more

以上是关于记录一次SpringBoot打成war包部署到tomcat启动报错的主要内容,如果未能解决你的问题,请参考以下文章

将SpringBOOT项目 打成 war 包 并 部署到 Tomcat

SpringBoot项目打成war包,并部署到Tomcat服务器

我爱Java系列之---SpringBoot打成war包部署

spring boot 项目打成war包部署到服务器

Springboot项目打成war包,部署到tomcat上,正常启动访问报错404

spring boot项目打成war包部署到tomcat