Java Spring Boot - Error: Embedded Tomcat

Java Spring Boot Standalone Error: org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:192). The following method did not exist
        
            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()
            The calling method's class, org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory, was loaded from the following location:
            jar:file:/path-m2-repo/org/springframework/boot/spring-boot/2.7.1/spring-boot-2.7.1.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:/path-web-server/apache-tomcat-9.0.5/lib/tomcat-coyote.jar!/org/apache/tomcat/util/modeler/Registry.class
            jar:file:/path-web-server/apache-tomcat-8.5.28/lib/tomcat-coyote.jar!/org/apache/tomcat/util/modeler/Registry.class
            jar:file:/path-m2-repo/org/apache/tomcat/embed/tomcat-embed-core/9.0.64/tomcat-embed-core-9.0.64.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: file:/path-web-server/apache-tomcat-9.0.5/lib/tomcat-coyote.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
        
      
Fix
Kiểm tra lại target runtime của project
1. Uncheck Apache Tomcat -> Apply
2. Remove Apache Tomcat -> Apply

Nhận xét

Bài đăng phổ biến từ blog này

IBM BPM - Date

BPM WebSphere - Create Datasource (Connect to DB via JDBC)

IBM BPM - Error: Save error