-
Notifications
You must be signed in to change notification settings - Fork 14
Description
idea 断点调试基座静态方式加载业务模块。
base-web-single-host-bootstrap
- 创建biz目录
2.编译打包biz
3.idea基座启动增加业务模块
4.idea中运行基座启动报错
025-03-08 19:25:17.342 DEBUG 1156 --- [rk-biz-ops-0-T2] o.s.b.d.LoggingFailureAnalysisReporter : Application failed to start due to an exception org.springframework.boot.web.embedded.tomcat.ConnectorStartFailedException: Connector configured to listen on port 8080 failed to start at com.alipay.sofa.ark.springboot.web.ArkTomcatWebServer.checkConnectorHasStarted(ArkTomcatWebServer.java:231) ~[sofa-ark-springboot-starter-2.2.16.jar:na] at com.alipay.sofa.ark.springboot.web.ArkTomcatWebServer.checkThatConnectorsHaveStarted(ArkTomcatWebServer.java:223) ~[sofa-ark-springboot-starter-2.2.16.jar:na] at com.alipay.sofa.ark.springboot.web.ArkTomcatWebServer.start(ArkTomcatWebServer.java:206) ~[sofa-ark-springboot-starter-2.2.16.jar:na] at org.springframework.boot.web.servlet.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:43) ~[spring-boot-2.7.16.jar:2.7.16] at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:179) ~[spring-context-5.3.30.jar:5.3.30] at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54) ~[spring-context-5.3.30.jar:5.3.30] at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:357) ~[spring-context-5.3.30.jar:5.3.30] at java.lang.Iterable.forEach(Iterable.java:75) ~[na:1.8.0_351] at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:156) ~[spring-context-5.3.30.jar:5.3.30] at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:124) ~[spring-context-5.3.30.jar:5.3.30] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938) ~[spring-context-5.3.30.jar:5.3.30] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) ~[spring-context-5.3.30.jar:5.3.30] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) ~[spring-boot-2.7.16.jar:2.7.16] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731) ~[spring-boot-2.7.16.jar:2.7.16] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) ~[spring-boot-2.7.16.jar:2.7.16] at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) ~[spring-boot-2.7.16.jar:2.7.16] at com.alipay.sofa.web.biz2.Biz2Application.main(Biz2Application.java:39) [biz2-web-single-host-0.0.1-SNAPSHOT-20250308192308137-unpack/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_351] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_351] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_351] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_351] at com.alipay.sofa.ark.bootstrap.MainMethodRunner.run(MainMethodRunner.java:55) [sofa-ark-archive-2.2.16.jar!/:na] at com.alipay.sofa.ark.container.model.BizModel.doStart(BizModel.java:353) [sofa-ark-container-2.2.16.jar!/:na] at com.alipay.sofa.ark.container.model.BizModel.start(BizModel.java:323) [sofa-ark-container-2.2.16.jar!/:na] at com.alipay.sofa.ark.api.ArkClient.doInstallBiz(ArkClient.java:195) [sofa-ark-api-2.2.16.jar:na] at com.alipay.sofa.ark.api.ArkClient.installBiz(ArkClient.java:169) [sofa-ark-api-2.2.16.jar:na] at com.alipay.sofa.ark.api.ArkClient.doInstallOperation(ArkClient.java:388) [sofa-ark-api-2.2.16.jar:na] at com.alipay.sofa.ark.api.ArkClient.installOperation(ArkClient.java:370) [sofa-ark-api-2.2.16.jar:na] at com.alipay.sofa.koupleless.arklet.core.ops.strategy.InstallOnlyStrategy.install(InstallOnlyStrategy.java:52) [arklet-core-1.4.1.jar:na] at com.alipay.sofa.koupleless.arklet.core.ops.UnifiedOperationServiceImpl.install(UnifiedOperationServiceImpl.java:75) [arklet-core-1.4.1.jar:na] at com.alipay.sofa.koupleless.arklet.core.ops.UnifiedOperationServiceImpl.safeBatchInstall(UnifiedOperationServiceImpl.java:86) [arklet-core-1.4.1.jar:na] at com.alipay.sofa.koupleless.arklet.core.ops.UnifiedOperationServiceImpl.lambda$batchInstall$0(UnifiedOperationServiceImpl.java:116) [arklet-core-1.4.1.jar:na] at java.util.concurrent.CompletableFuture$AsyncSupply.run$$$capture(CompletableFuture.java:1604) ~[na:1.8.0_351] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java) ~[na:1.8.0_351] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_351] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_351] at java.lang.Thread.run(Thread.java:750) ~[na:1.8.0_351] 2025-03-08 19:25:17.345 ERROR 1156 --- [rk-biz-ops-0-T2] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured. Action: Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port. 2025-03-08 19:25:17.356 INFO 1156 --- [rk-biz-ops-0-T2] .m.h.CancelTimersOnUninstallEventHandler : [CancelTimersOnUninstallEventHandler] Module name: biz2-web-single-host , BizClassLoader: com.alipay.sofa.ark.container.service.classloader.BizClassLoader@3f8461da . 2025-03-08 19:25:17.356 INFO 1156 --- [rk-biz-ops-0-T2] .m.h.CancelTimersOnUninstallEventHandler : [CancelTimersOnUninstallEventHandler] No managed timer found for module: biz2-web-single-host , just return. 2025-03-08 19:25:17.356 INFO 1156 --- [rk-biz-ops-0-T2] nExecutorServicesOnUninstallEventHandler : [ShutdownExecutorServicesOnUninstallEventHandler] Module name: biz2-web-single-host , BizClassLoader: com.alipay.sofa.ark.container.service.classloader.BizClassLoader@3f8461da . 2025-03-08 19:25:17.357 INFO 1156 --- [rk-biz-ops-0-T2] nExecutorServicesOnUninstallEventHandler : [ShutdownExecutorServicesOnUninstallEventHandler] No managed executor service for module: biz2-web-single-host , just return. 2025-03-08 19:25:17.357 INFO 1156 --- [rk-biz-ops-0-T2] .ForceStopThreadsOnUninstallEventHandler : [ForceStopThreadsOnUninstallEventHandler] Module name: biz2-web-single-host , BizClassLoader: com.alipay.sofa.ark.container.service.classloader.BizClassLoader@3f8461da . 2025-03-08 19:25:17.357 INFO 1156 --- [rk-biz-ops-0-T2] .ForceStopThreadsOnUninstallEventHandler : [ForceStopThreadsOnUninstallEventHandler] No managed thread found for module: biz2-web-single-host , just return. java.lang.reflect.InvocationTargetException 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 com.alipay.sofa.ark.bootstrap.MainMethodRunner.run(MainMethodRunner.java:55) at com.alipay.sofa.ark.container.model.BizModel.doStart(BizModel.java:353) at com.alipay.sofa.ark.container.model.BizModel.start(BizModel.java:323) at com.alipay.sofa.ark.api.ArkClient.doInstallBiz(ArkClient.java:195) at com.alipay.sofa.ark.api.ArkClient.installBiz(ArkClient.java:169) at com.alipay.sofa.ark.api.ArkClient.doInstallOperation(ArkClient.java:388) at com.alipay.sofa.ark.api.ArkClient.installOperation(ArkClient.java:370) at com.alipay.sofa.koupleless.arklet.core.ops.strategy.InstallOnlyStrategy.install(InstallOnlyStrategy.java:52) at com.alipay.sofa.koupleless.arklet.core.ops.UnifiedOperationServiceImpl.install(UnifiedOperationServiceImpl.java:75) at com.alipay.sofa.koupleless.arklet.core.ops.UnifiedOperationServiceImpl.safeBatchInstall(UnifiedOperationServiceImpl.java:86) at com.alipay.sofa.koupleless.arklet.core.ops.UnifiedOperationServiceImpl.lambda$batchInstall$0(UnifiedOperationServiceImpl.java:116) at java.util.concurrent.CompletableFuture$AsyncSupply.run$$$capture(CompletableFuture.java:1604) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java) 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:750) Caused by: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'; nested exception is org.springframework.boot.web.embedded.tomcat.ConnectorStartFailedException: Connector configured to listen on port 8080 failed to start at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182) at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54) at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:357) at java.lang.Iterable.forEach(Iterable.java:75) at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:156) at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:124) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) at com.alipay.sofa.web.biz2.Biz2Application.main(Biz2Application.java:39) ... 20 more Caused by: org.springframework.boot.web.embedded.tomcat.ConnectorStartFailedException: Connector configured to listen on port 8080 failed to start at com.alipay.sofa.ark.springboot.web.ArkTomcatWebServer.checkConnectorHasStarted(ArkTomcatWebServer.java:231) at com.alipay.sofa.ark.springboot.web.ArkTomcatWebServer.checkThatConnectorsHaveStarted(ArkTomcatWebServer.java:223) at com.alipay.sofa.ark.springboot.web.ArkTomcatWebServer.start(ArkTomcatWebServer.java:206) at org.springframework.boot.web.servlet.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:43) at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:179) ... 32 more 2025-03-08 19:25:17.378 INFO 1156 --- [ main] arklet : batch install cost 129272 ms 2025-03-08 19:25:17.379 INFO 1156 --- [ main] arklet : file:///D:\workspacke\work-gitee\samples-main\springboot-samples\web\tomcat\base-web-single-host\base-web-single-host-bootstrap\biz\biz1-web-single-host-0.0.1-SNAPSHOT-ark-biz.jar, FAILED, internal exception: null, BatchDeployResult 2025-03-08 19:25:17.380 INFO 1156 --- [ main] arklet : file:///D:\workspacke\work-gitee\samples-main\springboot-samples\web\tomcat\base-web-single-host\base-web-single-host-bootstrap\biz\biz2-web-single-host-0.0.1-SNAPSHOT-ark-biz.jar, FAILED, internal exception: null, BatchDeployResult 2025-03-08 19:25:17.406 ERROR 1156 --- [ main] o.s.boot.SpringApplication : Application run failed java.lang.IllegalStateException: batch deploy failed! at com.google.common.base.Preconditions.checkState(Preconditions.java:513) ~[guava-33.4.0-jre.jar:na] at com.alipay.sofa.koupleless.plugin.manager.listener.StaticBatchInstallEventListener.batchDeployFromLocalDir(StaticBatchInstallEventListener.java:70)


