org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServle

***************************
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:183)

The following method did not exist:

    org.apache.tomcat.util.modeler.Registry.disableRegistry()V

The method's class, org.apache.tomcat.util.modeler.Registry, is available from the following locations:

    jar:file:/D:/eclipse-jee-oxygen-2-win32-x86_64/apache-tomcat-7.0.67/lib/tomcat-coyote.jar!/org/apache/tomcat/util/modeler/Registry.class
    jar:file:/D:/localRepository/org/apache/tomcat/embed/tomcat-embed-core/9.0.53/tomcat-embed-core-9.0.53.jar!/org/apache/tomcat/util/modeler/Registry.class

The class hierarchy was loaded from the following locations:

    org.apache.tomcat.util.modeler.Registry: file:/D:/eclipse-jee-oxygen-2-win32-x86_64/apache-tomcat-7.0.67/lib/tomcat-coyote.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of org.apache.tomcat.util.modeler.Registry


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.5.5)

2023-08-05 01:35:05.661  INFO 7920 --- [           main] com.macro.mall.MallAdminApplication      : Starting MallAdminApplication using Java 1.8.0_341 on ThinkPad-T440p-ZWF with PID 7920 (E:\Workspace_gihub\mall-master\mall-admin\target\classes started by Administrator in E:\Workspace_gihub\mall-master\mall-admin)
2023-08-05 01:35:05.675 DEBUG 7920 --- [           main] com.macro.mall.MallAdminApplication      : Running with Spring Boot v2.5.5, Spring v5.3.10
2023-08-05 01:35:05.675  INFO 7920 --- [           main] com.macro.mall.MallAdminApplication      : The following profiles are active: dev
2023-08-05 01:35:29.822  INFO 7920 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode
2023-08-05 01:35:29.827  INFO 7920 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2023-08-05 01:35:32.806  INFO 7920 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 2925 ms. Found 0 Redis repository interfaces.
2023-08-05 01:35:36.550  INFO 7920 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'swaggerConfig' of type [com.macro.mall.config.SwaggerConfig$$EnhancerBySpringCGLIB$$4f10600c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2023-08-05 01:35:37.517  WARN 7920 --- [           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
2023-08-05 01:35:37.542  INFO 7920 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-08-05 01:35:38.052 ERROR 7920 --- [           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:183)

The following method did not exist:

    org.apache.tomcat.util.modeler.Registry.disableRegistry()V

The method's class, org.apache.tomcat.util.modeler.Registry, is available from the following locations:

    jar:file:/D:/eclipse-jee-oxygen-2-win32-x86_64/apache-tomcat-7.0.67/lib/tomcat-coyote.jar!/org/apache/tomcat/util/modeler/Registry.class
    jar:file:/D:/localRepository/org/apache/tomcat/embed/tomcat-embed-core/9.0.53/tomcat-embed-core-9.0.53.jar!/org/apache/tomcat/util/modeler/Registry.class

The class hierarchy was loaded from the following locations:

    org.apache.tomcat.util.modeler.Registry: file:/D:/eclipse-jee-oxygen-2-win32-x86_64/apache-tomcat-7.0.67/lib/tomcat-coyote.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of org.apache.tomcat.util.modeler.Registry

 

==

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat是一个错误消息,表示无法启动嵌入式Tomcat服务器。这个错误通常是由于配置问题或依赖冲突引起的。根据提供的引用内容,可以看到在DailyApplication类中,使用了Spring Boot框架来启动应用程序,并且可能存在一些配置或依赖问题导致Tomcat无法启动。 为了解决这个问题,可以尝试以下几个步骤: 1. 检查应用程序的配置文件,确保Tomcat相关的配置正确无误。特别是检查端口号、上下文路径等配置项是否正确设置。 2. 检查应用程序的依赖项,确保没有冲突或版本不兼容的情况。可以尝试更新相关依赖的版本,或者排除冲突的依赖。 3. 检查应用程序的日志文件,查看是否有其他错误或异常信息。可以根据错误日志中提供的详细信息来定位问题所在。 4. 如果以上步骤都没有解决问题,可以尝试在Spring Boot的启动类中添加更多的日志输出,以便更好地定位问题。 总之,org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat错误通常是由于配置问题或依赖冲突引起的。通过检查配置、依赖和日志,可以解决这个问题。 #### 引用[.reference_title] - *1* *3* [Unable to start web server... nested exception is org.springframework.boot.web.server.WebServerExcepti](https://blog.csdn.net/m0_54853146/article/details/123100116)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [一招搞定:nested exception is org.springframework.boot.web.server.WebServerException Unable to s](https://blog.csdn.net/xiri_/article/details/111085062)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值