Closed 343585776 closed 10 months ago
已经纳入迭代啦~
放在 SOFABoot 4.0 兼容治理中统一跟进。
可能原因是 jdk 17 tomcat 使用了jakata,在支持 jdk17 里修复该问题,详细查看https://github.com/sofastack/sofa-serverless/tree/master/samples/springboot3-samples
我使用jdk17也遇到同样的问题,应该是这个 servlet 包名调整了,导致ArkTomcatServletWebServerFactory 没配置成功依然还是走的TomcatServletWebServerFactory
Describe the bug
升级SofaBoot至4.0.0&SofaArk至2.2.0,动态加载,遇到web单host模式下提示"Address already in use" 更改biz包server.port后可以正常加载 目前宿主包与biz包无法同一端口下正常运行
SofaBoot版本 :3.19.1 -> 4.0.0 SofaArk版本 :2.1.3 -> 2.2.0
参考的教程地址:https://github.com/sofastack-guides/sofa-ark-dynamic-guides
涉及到的变更如下:
sofa-ark-dynamic-guides/pom.xml
变更为
sofa-ark-dynamic-guides/dynamic-stock-mng/pom.xml
变更为
sofa-ark-dynamic-guides/dynamic-provider/pom.xml
移除
以上变更参照了如下文档:
因为未查找到更多升级的配置资料,暂时不清楚是因为配置有误还是存在bug
期待验证并升级教程示例sofa-ark-dynamic-guides至最新版本