Получение следующих ошибок при запуске моего приложения загрузки Spring, которое включает зависимости JPA, Spring Web, Spring Security, Sql и Thymeleaf - PullRequest
0 голосов
/ 03 августа 2020

java .util.concurrent.ExecutionException: org. apache .catalina.LifecycleException: не удалось запустить компонент [NonLoginAuthenticator [StandardEngine [Tomcat] .StandardHost [localhost] .TomcatEmbeddedContext []]] в java. util.concurrent.FutureTask.report (FutureTask. java: 122) [na: 1.8.0_241] в java .util.concurrent.FutureTask.get (FutureTask. java: 192) [na: 1.8.0_241 ] в орг. apache .catalina.core.ContainerBase.startInternal (ContainerBase. java: 916) [tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina. core.StandardHost.startInternal (StandardHost. java: 841) [tomcat-embed-core-9.0.37.jar: 9.0.37] в организации apache .catalina.util.LifecycleBase.start (LifecycleBase. java: 183) [tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina.core.ContainerBase $ StartChild.call (ContainerBase. java: 1384) [tomcat-embed -core-9.0.37.jar: 9.0.37] в орг. apache .catalina.core.ContainerBase $ StartChild.call (ContainerBase. java: 1374) [tomcat-embed-core-9.0.37.jar : 9.0.37] в java .util.concurrent.Future Task.run (FutureTask. java: 266) [na: 1.8.0_241] в орг. apache .tomcat.util.threads.InlineExecutorService.execute (InlineExecutorService. java: 75) [tomcat-embed-core -9.0.37.jar: 9.0.37] в java .util.concurrent.AbstractExecutorService.submit (AbstractExecutorService. java: 134) [na: 1.8.0_241] в org. apache .catalina.core. ContainerBase.startInternal (ContainerBase. java: 909) [tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina.core.StandardEngine.startInternal (StandardEngine. java: 262) [tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina.util.LifecycleBase.start (LifecycleBase. java: 183) [tomcat-embed-core-9.0 .37.jar: 9.0.37] в орг. apache .catalina.core.StandardService.startInternal (StandardService. java: 421) [tomcat-embed-core-9.0.37.jar: 9.0.37] в org. apache .catalina.util.LifecycleBase.start (LifecycleBase. java: 183) [tomcat-embed-core-9.0.37.jar: 9.0.37] в org. apache .catalina.core. StandardServer.startInternal (StandardServer. java: 930) [tomcat-embed-core-9.0.37.jar: 9.0.37 ] в орг. apache .catalina.util.LifecycleBase.start (LifecycleBase. java: 183) [tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina. startup.Tomcat.start (Tomcat. java: 486) [tomcat-embed-core-9.0.37.jar: 9.0.37] в org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize (TomcatWebServer. java: 123) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.web.embedded.tomcat.TomcatWebServer. (TomcatWebServer. java: 104) [ spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer (TomcatServletWebServerFactory. java -437) [boot 2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer (TomcatServletWebServerFactory. java: 191) [spring -boot-2.3.2.REL 2.3.2.RELEASE] в org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer (ServletWebServerApplicationContext . java: 178) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefre sh (ServletWebServerApplicationContext. java: 158) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.context.support.AbstractApplicationContext.refre sh (AbstractApplicationContext. java: 545) [spring- context-5.2.8.RELEASE.jar: 5.2.8.RELEASE] в org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refre sh (ServletWebServerApplicationContext. java: 143) [spring-boot-2.3 .2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.SpringApplication.refre sh (SpringApplication. java: 758) [spring-boot-2.3.2.RELEASE.jar: 2.3. 2.RELEASE] в org.springframework.boot.SpringApplication.refre sh (SpringApplication. java: 750) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework. boot.SpringApplication.refreshContext (SpringApplication. java: 397) [spring-boot-2.3.2. RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.SpringApplication.run (SpringApplication. java: 315) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org .springframework.boot.SpringApplication.run (SpringApplication. java: 1237) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.SpringApplication.run (SpringApplication. java: 1226) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в com.example.demo.MoneyMakerAppApplication.main (MoneyMakerAppApplication. java: 10) [classes /: na] Причина автор: org. apache .catalina.LifecycleException: Не удалось запустить компонент [NonLoginAuthenticator [StandardEngine [Tomcat] .StandardHost [localhost] .TomcatEmbeddedContext []]] в организации apache .catalina.util.LifecycleBase.handleSubClassException (LifecycleBase.handleSubClass . java: 440) [tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina.util.LifecycleBase.start (LifecycleBase. java: 198) [tomcat- embed-core-9.0.37.jar: 9.0.37] в организации apache .catalina.core.StandardPipeline.startInternal (StandardPipeline. * 1 094 *: 176) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] в org. apache .catalina.util.LifecycleBase.start (LifecycleBase. java: 183) [tomcat-embed -core-9.0.37.jar: 9.0.37] в орг. apache .catalina.core.StandardContext.startInternal (StandardContext. java: 5056) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina.util.LifecycleBase.start (LifecycleBase. java: 183) [tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina.core.ContainerBase $ StartChild.call (ContainerBase. java: 1384) [tomcat-embed-core-9.0.37.jar: 9.0.37] в организации apache .catalina.core.ContainerBase $ StartChild .call (ContainerBase. java: 1374) [tomcat-embed-core-9.0.37.jar: 9.0.37] в java .util.concurrent.FutureTask.run (FutureTask. java: 266) [ na: 1.8.0_241] в орг. apache .tomcat.util.threads.InlineExecutorService.execute (InlineExecutorService. java: 75) [tomcat-embed-core-9.0.37.jar: 9.0.37] в java .util.concurrent.AbstractExecutorService.submit (AbstractExecutorService. java: 134) [na: 1.8.0_241] в организации apache .catalina.core.Conta inerBase.startInternal (ContainerBase. java: 909) [tomcat-embed-core-9.0.37.jar: 9.0.37] ... 30 общих кадров пропущены Причина: java .lang.NoSuchMethodError: javax.servlet .ServletContext.getVirtualServerName () Ljava / lang / String; в орг. apache .catalina.authenticator.AuthenticatorBase.startInternal (AuthenticatorBase. java: 1321) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina. util.LifecycleBase.start (LifecycleBase. java: 183) [tomcat-embed-core-9.0.37.jar: 9.0.37] ... 40 общих фреймов опущены

2020-08-03 10 : 42: 41.369 ОШИБКА 7792 --- [основная] организация apache .catalina.core.ContainerBase: сбой дочернего контейнера при запуске

java .util.concurrent.ExecutionException: org. apache .catalina.LifecycleException: сбой дочернего контейнера при запуске в java .util.concurrent.FutureTask.report (FutureTask. java: 122) ~ [na: 1.8.0_241] в java .util.concurrent. FutureTask.get (FutureTask. java: 192) ~ [na: 1.8.0_241] в организации apache .catalina.core.ContainerBase.startInternal (ContainerBase. java: 916) ~ [tomcat-embed-core -9.0.37.jar: 9.0.37] в орг. apache .catalina.core.StandardEngine.startInternal (StandardEngine. java: 262) [tomcat-embed-core-9.0.37.jar: 9.0.37 ] в орг. apache .catalina.util.LifecycleBase.s tart (LifecycleBase. java: 183) [tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina.core.StandardService.startInternal (StandardService. java: 421) [tomcat-embed-core-9.0.37.jar: 9.0.37] в org. apache .catalina.util.LifecycleBase.start (LifecycleBase. java: 183) [tomcat-embed-core-9.0.37 .jar: 9.0.37] в орг. apache .catalina.core.StandardServer.startInternal (StandardServer. java: 930) [tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina.util.LifecycleBase.start (LifecycleBase. java: 183) [tomcat-embed-core-9.0.37.jar: 9.0.37] в организации apache .catalina.startup.Tomcat. start (Tomcat. java: 486) [tomcat-embed-core-9.0.37.jar: 9.0.37] в org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize (TomcatWebServer. java: 123) [spring-boot-2.3. 2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.web.embedded.tomcat.TomcatWebServer. (TomcatWebServer. java: 104) [spring-boot-2.3.2.RELEASE.jar: 2.3 .2.RELEASE] в org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer (TomcatServletWebServerFactory. java: 437) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE.jar org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer (TomcatServletWebServerFactory. java: 191) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE.spring. web.servlet.context.ServletWebServerApplicationContext.createWebServer (ServletWebServerApplicationContext. java: 178) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.web.servlet. ServletWebServerApplicationContext.onRefre sh (ServletWebServerApplicationContext. java: 158) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.context.support.AbstractApprelication * 1147 Аннотация ApplicationContext. java: 545) [spring-context-5.2.8.RELEASE.jar: 5.2.8.RELEASE] в org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refre sh (ServletWebServerApplicationContext. java: 143) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.SpringApplication.refre sh (SpringApplication. java: 758) [spring-boot -2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.SpringApplication.refre sh (SpringApplication. java: 750) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.SpringApplication.refreshContext (SpringApplication. java: 397) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot .SpringApplication.run (SpringApplication. java: 315) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.SpringApplication.run (SpringApplication. java: 1237 ) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в org.springframework.boot.SpringApplication.run (SpringApplication. java : 1226) [spring-boot-2.3.2.RELEASE.jar: 2.3.2.RELEASE] в com.example.demo.MoneyMakerAppApplication.main (MoneyMakerAppApplication. java: 10) [classes /: na] Причина: org. apache .catalina.LifecycleException: сбой дочернего контейнера во время запуска в org. apache .catalina.core.ContainerBase.startInternal (ContainerBase. java: 928) ~ [tomcat-embed-core-9.0.37 .jar: 9.0.37] в org. apache .catalina.core.StandardHost.startInternal (StandardHost. java: 841) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] в org . apache .catalina.util.LifecycleBase.start (LifecycleBase. java: 183) [tomcat-embed-core-9.0.37.jar: 9.0.37] в организации apache .catalina.core.ContainerBase $ StartChild.call (ContainerBase. java: 1384) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina.core.ContainerBase $ StartChild.call (ContainerBase. java: 1374) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] в java .util.concurrent.FutureTask.run (FutureTask. java: 266) ~ [na: 1.8 .0_241] в орг. apache .tomcat.util.threads.InlineExecutorService.execute (InlineExecutor Служба. java: 75) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] в java .util.concurrent.AbstractExecutorService.submit (AbstractExecutorService. java: 134) ~ [na : 1.8.0_241] в организации apache .catalina.core.ContainerBase.startInternal (ContainerBase. java: 909) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] ... 22 общие фреймы пропущены Причина: java .util.concurrent.ExecutionException: org. apache .catalina.LifecycleException: не удалось запустить компонент [NonLoginAuthenticator [StandardEngine [Tomcat] .StandardHost [localhost] .TomcatEmbeddedContext []]] в java .util.concurrent.FutureTask.report (FutureTask. java: 122) ~ [na: 1.8.0_241] в java .util.concurrent.FutureTask.get (FutureTask. java: 192) ~ [ na: 1.8.0_241] в организации apache .catalina.core.ContainerBase.startInternal (ContainerBase. java: 916) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] ... 30 общих кадров пропущено Причина: org. apache .catalina.LifecycleException: не удалось запустить компонент [NonLoginAuthenticator [StandardEngine [Tomcat] .StandardHost [localhost]. TomcatEmbeddedContext []]] в организации apache .catalina.util.LifecycleBase.handleSubClassException (LifecycleBase. java: 440) [tomcat-embed-core-9.0.37.jar: 9.0.37] в организации apache .catalina.util.LifecycleBase.start (LifecycleBase. java: 198) [tomcat-embed-core-9.0.37.jar: 9.0.37] в организации apache .catalina.core.StandardPipeline.startInternal ( StandardPipeline. java: 176) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] в org. apache .catalina.util.LifecycleBase.start (LifecycleBase. java: 183) [ tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina.core.StandardContext.startInternal (StandardContext. java: 5056) ~ [tomcat-embed-core-9.0.37 .jar: 9.0.37] в org. apache .catalina.util.LifecycleBase.start (LifecycleBase. java: 183) [tomcat-embed-core-9.0.37.jar: 9.0.37] в org. apache .catalina.core.ContainerBase $ StartChild.call (ContainerBase. java: 1384) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] в организации apache .catalina.core .ContainerBase $ StartChild.call (ContainerBase. java: 1374) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] в * 120 5 * .util.concurrent.FutureTask.run (FutureTask. java: 266) ~ [na: 1.8.0_241] в организации apache .tomcat.util.threads.InlineExecutorService.execute (InlineExecutorService. java: 75) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] в java .util.concurrent.AbstractExecutorService.submit (AbstractExecutorService. java: 134) ~ [na: 1.8.0_241] в org. apache .catalina.core.ContainerBase.startInternal (ContainerBase. java: 909) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] ... 30 общих фреймов пропущены Причина: java .lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName () Ljava / lang / String; в орг. apache .catalina.authenticator.AuthenticatorBase.startInternal (AuthenticatorBase. java: 1321) ~ [tomcat-embed-core-9.0.37.jar: 9.0.37] в орг. apache .catalina. util.LifecycleBase.start (LifecycleBase. java: 183) [tomcat-embed-core-9.0.37.jar: 9.0.37] ... 40 общих фреймов опущены

2020-08-03 10 : 42: 41.370 INFO 7792 --- [main] o. apache .catalina.core.StandardService: Остановка службы [Tomcat] 2020-08-03 10: 42: 41.397 WARN 7792 --- [main] ConfigServletWebServerApplicationContext: Exception обнаружено во время инициализации контекста - отмена попытки refre sh: org.springframework.context.ApplicationContextException: невозможно запустить веб-сервер; вложенное исключение - org.springframework.boot.web.server.WebServerException: не удалось запустить встроенный Tomcat 2020-08-03 10: 42: 41.407 INFO 7792 --- [основной] ConditionEvaluationReportLoggingListener:

Ошибка при запуске ApplicationContext. Чтобы отобразить отчет об условиях, повторно запустите приложение с включенной отладкой. 2020-08-03 10: 42: 41.415 ОШИБКА 7792 --- [main] osbdLoggingFailureAnalysisReporter:

ПРИЛОЖЕНИЕ НЕ ЗАПУСКАЕТСЯ

Описание:

Была сделана попытка вызвать метод, который не существует. Попытка была предпринята из следующего расположения:

org.apache.catalina.authenticator.AuthenticatorBase.startInternal(AuthenticatorBase.java:1321)

Следующий метод не существовал:

javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;

Класс метода javax.servlet.ServletContext доступен из следующих расположений :

jar:file:/C:/Program%20Files/Java/jdk1.8.0_241/jre/lib/ext/servlet-api.jar!/javax/servlet/ServletContext.class
jar:file:/C:/Users/Rohit%20Roy/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.37/tomcat-embed-core-9.0.37.jar!/javax/servlet/ServletContext.class

Иерархия классов была загружена из следующих мест:

javax.servlet.ServletContext: file:/C:/Program%20Files/Java/jdk1.8.0_241/jre/lib/ext/servlet-api.jar

Действие:

Исправьте путь к классам вашего приложения, чтобы он содержал одиночный, совместимая версия javax.servlet.ServletContext

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...