BladeX-Boot打war包,放到独立tomcat,内置的tomcat还会启动,访问还是原来端口

Java 未结 1 1724
一塌糊涂
一塌糊涂 剑童 2020-03-13 19:25

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

1. BladeX-Boot打war包,放到独立tomcat,内置的tomcat还会启动,访问还是原来端口

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?

期待的结果是不启动内置的tomcat了,只用一个tomcat,一个端口就可以了,

实际上看到外部启动了tomcat,内置的tomcat也启动了



三、你正在使用的是什么产品,什么版本?在什么操作系统上?

单项目版本的2.3.0RELEASE,在W10操作系统上,配置信息如下

3.jpg

2.jpg

6.jpg



四、请提供详细的错误堆栈信息,这很重要。

13-Mar-2020 19:18:39.884 信息 [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

----启动中,读取到的环境变量:[dev],jar地址:[/D:/apache-tomcat-8.0.39/webapps/BladeX/WEB-INF/classes/]----

            ______  _             _       ___   ___

            | ___ \| |           | |      \  \ /  /

            | |_/ /| |  __ _   __| |  ___  \  V  /

            | ___ \| | / _` | / _` | / _ \   > <

            | |_/ /| || (_| || (_| ||  __/ /  .  \

            \____/ |_| \__,_| \__,_| \___|/__/ \__\


:: BladeX :: blade-api:dev :: Running SpringBoot 2.1.11.RELEASE ::


2020-03-13 19:18:44.735  INFO 76 --- [ost-startStop-1] o.s.boot.SpringApplication               : Starting application on DESKTOP-MH09CE3 with PID 76 (started by Administrator in D:\apache-tomcat-8.0.39\bin)

2020-03-13 19:18:44.743  INFO 76 --- [ost-startStop-1] o.s.boot.SpringApplication               : The following profiles are active: dev

2020-03-13 19:18:51.641  INFO 76 --- [ost-startStop-1] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!

2020-03-13 19:18:51.653  INFO 76 --- [ost-startStop-1] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.


......


2020-03-13 19:19:53.423  INFO 76 --- [ost-startStop-1] org.xnio.nio                             : XNIO NIO Implementation Version 3.3.8.Final

2020-03-13 19:19:53.652  INFO 76 --- [ost-startStop-1] o.s.b.w.e.u.UndertowServletWebServer     : Undertow started on port(s) 91 (http) with context path ''

2020-03-13 19:19:53.682  INFO 76 --- [ost-startStop-1] o.s.boot.SpringApplication               : Started application in 73.023 seconds (JVM running for 101.839)

13-Mar-2020 19:19:53.821 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive D:\apache-tomcat-8.0.39\webapps\BladeX.war has finished in 94,219 ms

13-Mar-2020 19:19:53.841 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\apache-tomcat-8.0.39\webapps\docs

2020-03-13 19:19:53.892  INFO 76 --- [         task-1] o.s.core.launch.StartEventListener       : ---[BLADE-API]---鍚 姩瀹屾垚锛屽綋鍓嶄娇鐢ㄧ殑绔彛:[91]锛岀幆澧冨彉閲?[dev]---

13-Mar-2020 19:19:53.933 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\apache-tomcat-8.0.39\webapps\docs has finished in 92 ms

五、若有更多详细信息,请在下面提供。



1条回答
  • 2020-03-14 16:10

    启动的是undertow,你需要把他也一起排除

    image.png

    0 讨论(0)
提交回复