sofa ark 2.0 多web静态合并启动报错
Your question
4:03:31.017 [SOFA-ARK-telnet-server-worker-0-T1] INFO io.netty.handler.logging.LoggingHandler - [id: 0xc0a03728, L:/0:0:0:0:0:0:0:0:1234] ACTIVE
. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )__ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' || .__|| ||| |_, | / / / /
=========||==============|/=////
:: Spring Boot :: (v2.7.3)
2022-10-14 14:03:32.229 INFO 12484 --- [ main] com.example.MasterApplication : Starting MasterApplication v1.0-SNAPSHOT using Java 1.8.0_162 on DEEP-2019RICWZF with PID 12484 (D:\workspace_2022\web-ark-parent\web-ark-master\target\web-ark-master-1.0-SNAPSHOT-ark-executable.jar started by Administrator in D:\workspace_2022\web-ark-parent\web-ark-master\target) 2022-10-14 14:03:32.233 INFO 12484 --- [ main] com.example.MasterApplication : No active profile set, falling back to 1 default profile: "default" 2022-10-14 14:03:33.575 WARN 12484 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.NoSuchMethodError: org.apache.tomcat.util.modeler.Registry.disableRegistry()V 2022-10-14 14:03:33.586 INFO 12484 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2022-10-14 14:03:33.630 ERROR 12484 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:192)
The following method did not exist:
org.apache.tomcat.util.modeler.Registry.disableRegistry()V
The calling method's class, org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory, was loaded from the following location:
jar:file:/D:/workspace_2022/web-ark-parent/web-ark-master/target/web-ark-master-1.0-SNAPSHOT-ark-executable.jar!/SOFA-ARK/biz/web-ark-master-1.0-SNAPSHOT-ark-biz.jar!/lib/spring-boot-2.7.3.jar!/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.class
The called method's class, org.apache.tomcat.util.modeler.Registry, is available from the following locations:
jar:file:/D:/workspace_2022/web-ark-parent/web-ark-master/target/web-ark-master-1.0-SNAPSHOT-ark-executable.jar!/SOFA-ARK/biz/web-ark-master-1.0-SNAPSHOT-ark-biz.jar!/lib/tomcat-embed-core-9.0.65.jar!/org/apache/tomcat/util/modeler/Registry.class
The called method's class hierarchy was loaded from the following locations:
org.apache.tomcat.util.modeler.Registry: jar:file:/D:/workspace_2022/web-ark-parent/web-ark-master/target/web-ark-master-1.0-SNAPSHOT-ark-executable.jar!/SOFA-ARK/plugin/web-ark-plugin-2.0.5.jar!/lib/tomcat-embed-core-9.0.12.jar!/
Action:
Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory and org.apache.tomcat.util.modeler.Registry
Your scenes
describe your use scenes (why need this feature)
Your advice
describe the advice or solution you'd like
Environment
- SOFAArk version: 2.0.4
- JVM version (e.g.
java -version): - OS version (e.g.
uname -a): - Maven version:
- IDE version:
能提供一个sofa ark2.0 多web静态合并的实例吗,soaf ark1.0.0没有问题正常运行