Bladex部署War启动报错

Blade 未结 1 659
1377763492
1377763492 剑童 2021-04-25 10:47

一、该问题的重现步骤是什么?

Bladex部署War包的流程是啥?


1、启动类修改

image.png

2、pom文件修改

<packaging>war</packaging>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    <exclusions>
        <exclusion>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <version>3.0.0</version>
            <configuration>
                <failOnMissingWebXml>false</failOnMissingWebXml>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
            </configuration>
        </plugin>
    </plugins>
</build>


3、War包打包成功,但是启动报错

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 启动加载程序时出错

                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:916)

                at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)

                at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

                at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)

                at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486)

                at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:106)

                at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:87)

                at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:440)

                at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:193)

                at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180)

                at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153)

                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)

                at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)

                at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)

                at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405)

                at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)

                at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152)

                at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132)

                at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92)

                at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)

                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5128)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)

                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)

                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)

                at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)

                at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1848)

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

                at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

                at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)

                at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)

                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)

                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)

                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)

                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)

                at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)

                at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)

                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)

                at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)

                at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

                at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)

                at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.startup.Catalina.start(Catalina.java:738)

                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:498)

                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)

                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)

        Caused by: org.apache.catalina.LifecycleException: 启动加载程序时出错

                at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:420)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4990)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)

                at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

                at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)

                ... 70 more

        Caused by: java.lang.ClassNotFoundException: org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader

                at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

                at java.lang.Class.forName0(Native Method)

                at java.lang.Class.forName(Class.java:264)

                at org.apache.catalina.loader.WebappLoader.createClassLoader(WebappLoader.java:510)

                at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:396)

                ... 79 more

25-Apr-2021 10:27:01.258 严重 [main] org.apache.catalina.core.ContainerBase.startInternal 子容器启动失败

        java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 子容器启动失败

                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:916)

                at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486)

                at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:106)

                at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:87)

                at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:440)

                at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:193)

                at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180)

                at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153)

                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)

                at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)

                at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)

                at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405)

                at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)

                at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152)

                at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132)

                at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92)

                at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)

                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5128)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)

                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)

                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)

                at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)

                at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1848)

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

                at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

                at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)

                at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)

                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)

                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)

                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)

                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)

                at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)

                at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)

                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)

                at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)

                at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

                at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)

                at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.startup.Catalina.start(Catalina.java:738)

                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:498)

                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)

                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)

        Caused by: org.apache.catalina.LifecycleException: 子容器启动失败

                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:928)

                at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)

                at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

                at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)

                ... 62 more

        Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 启动加载程序时出错

                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:916)

                ... 70 more

        Caused by: org.apache.catalina.LifecycleException: 启动加载程序时出错

                at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:420)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4990)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)

                at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

                at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)

                ... 70 more

        Caused by: java.lang.ClassNotFoundException: org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader

                at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

                at java.lang.Class.forName0(Native Method)

                at java.lang.Class.forName(Class.java:264)

                at org.apache.catalina.loader.WebappLoader.createClassLoader(WebappLoader.java:510)

                at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:396)

                ... 79 more

25-Apr-2021 10:27:01.269 信息 [main] org.apache.coyote.AbstractProtocol.pause 暂停ProtocolHandler["http-nio-80"]

25-Apr-2021 10:27:01.270 信息 [main] org.apache.catalina.core.StandardService.stopInternal 正在停止服务[Tomcat]

25-Apr-2021 10:27:01.272 信息 [main] org.apache.coyote.AbstractProtocol.destroy 正在摧毁协议处理器 ["http-nio-80"]

2021-04-25 10:27:01.275  WARN 10396 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

2021-04-25 10:27:01.305  INFO 10396 --- [           main] ConditionEvaluationReportLoggingListener :


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2021-04-25 10:27:01.325 ERROR 10396 --- [           main] o.s.boot.SpringApplication               : Application run failed


org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:156) ~[spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]

        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405) ~[spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152) [spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132) [spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92) [spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172) [spring-web-5.2.12.RELEASE.jar:5.2.12.RELEASE]

        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5128) [catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37]

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717) [catalina.jar:9.0.37]

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690) [catalina.jar:9.0.37]

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) [catalina.jar:9.0.37]

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978) [catalina.jar:9.0.37]

        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1848) [catalina.jar:9.0.37]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_181]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_181]

        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.37]

        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112) [na:1.8.0_181]

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773) [catalina.jar:9.0.37]

        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427) [catalina.jar:9.0.37]

        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576) [catalina.jar:9.0.37]

        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309) [catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) [catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) [catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366) [catalina.jar:9.0.37]

        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936) [catalina.jar:9.0.37]

        at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) [catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37]

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) [catalina.jar:9.0.37]

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) [catalina.jar:9.0.37]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_181]

        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.37]

        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) [na:1.8.0_181]

        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) [catalina.jar:9.0.37]

        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) [catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37]

        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421) [catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37]

        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) [catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37]

        at org.apache.catalina.startup.Catalina.start(Catalina.java:738) [catalina.jar:9.0.37]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_181]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_181]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_181]

        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_181]

        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342) [bootstrap.jar:9.0.37]

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473) [bootstrap.jar:9.0.37]

Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:125) ~[spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:87) ~[spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:440) ~[spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:193) ~[spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180) ~[spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153) ~[spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        ... 49 common frames omitted

Caused by: org.apache.catalina.LifecycleException: 瀛愬鍣ㄥ惎鍔ㄥけ璐?

        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:928) [catalina.jar:9.0.37]

        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) [catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37]

        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421) [catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37]

        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) [catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37]

        at org.apache.catalina.startup.Tomcat.start(Tomcat.java:486) ~[catalina.jar:9.0.37]

        at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:106) ~[spring-boot-2.2.12.RELEASE.jar:2.2.12.RELEASE]

        ... 54 common frames omitted

Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 瀛愬鍣ㄥ惎鍔ㄥけ璐?

        at java.util.concurrent.FutureTask.report(FutureTask.java:122) [na:1.8.0_181]

        at java.util.concurrent.FutureTask.get(FutureTask.java:192) [na:1.8.0_181]

        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916) [catalina.jar:9.0.37]

        ... 62 common frames omitted

Caused by: org.apache.catalina.LifecycleException: 瀛愬鍣ㄥ惎鍔ㄥけ璐?

        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:928) [catalina.jar:9.0.37]

        at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) [catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37]

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) [catalina.jar:9.0.37]

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) [catalina.jar:9.0.37]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_181]

        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.37]

        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) [na:1.8.0_181]

        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) [catalina.jar:9.0.37]

        ... 62 common frames omitted

Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 鍚姩鍔犺浇绋嬪簭鏃跺嚭閿?

        at java.util.concurrent.FutureTask.report(FutureTask.java:122) [na:1.8.0_181]

        at java.util.concurrent.FutureTask.get(FutureTask.java:192) [na:1.8.0_181]

        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916) [catalina.jar:9.0.37]

        ... 70 common frames omitted

Caused by: org.apache.catalina.LifecycleException: 鍚姩鍔犺浇绋嬪簭鏃跺嚭閿?

        at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:420) ~[catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37]

        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4990) [catalina.jar:9.0.37]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37]

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) [catalina.jar:9.0.37]

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) [catalina.jar:9.0.37]

        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_181]

        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.37]

        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) [na:1.8.0_181]

        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) [catalina.jar:9.0.37]

        ... 70 common frames omitted

Caused by: java.lang.ClassNotFoundException: org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader

        at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_181]

        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_181]

        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_181]

        at java.lang.Class.forName0(Native Method) ~[na:1.8.0_181]

        at java.lang.Class.forName(Class.java:264) ~[na:1.8.0_181]

        at org.apache.catalina.loader.WebappLoader.createClassLoader(WebappLoader.java:510) ~[catalina.jar:9.0.37]

        at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:396) ~[catalina.jar:9.0.37]

        ... 79 common frames omitted


d


25-Apr-2021 10:27:01.405 严重 [main] org.apache.catalina.startup.HostConfig.deployWAR 部署 Web 应用程序 archive [D:\develop\apache-tomcat-9.0.37\webapps\dindo-gateway.war] 时出错

        java.lang.IllegalStateException: 启动子级时出错

                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:720)

                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)

                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)

                at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)

                at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1848)

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

                at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

                at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)

                at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)

                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)

                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)

                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)

                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)

                at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)

                at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)

                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)

                at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)

   

1条回答
  • 2021-04-26 10:19

    商业版答疑规则见:https://sns.bladex.cn/article-14990.html

    请将账号邮箱修改为下单购买授权的qq邮箱便可咨询商业版疑问

    修改完邮箱后请将此贴删除并重新发一贴


    0 讨论(0)
提交回复