TakeshiUeta
@TakeshiUeta

Are you sure you want to delete the question?

Leaving a resolved question undeleted may help others!

TomcatでSpring-Bootで作成したWEBアプリがデプロイできない。

解決したいこと

お世話になっております。
AWSのTomcatからwarを設置してデプロイしようとしましたが以下のような例外が発生して困っております。
解決する方法があればお教え頂けると幸いです。

発生している問題・エラー

・LifecycleException
・LinkageError

スクリーンショット 2023-09-06 170526.png

該当箇所のログです。

Caused by: org.apache.catalina.LifecycleException: Failed to stop component [WebappLoader[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5881)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 32 more
Caused by: java.lang.LinkageError: loader org.apache.catalina.loader.WebappClassLoader @4477ba88 attempted duplicate class definition for org.apache.catalina.loader.JdbcLeakPrevention. (org.apache.catalina.loader.JdbcLeakPrevention is in unnamed module of loader org.apache.catalina.loader.WebappClassLoader @4477ba88, parent loader java.net.URLClassLoader @cc34f4d)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc(WebappClassLoaderBase.java:2300)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:2223)
        at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:2123)
        at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:663)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 34 more

自分で試したこと

コンパイルエラーだろうな。ということはうっすらと分かるのですが、具体的にどの部分を直せばよいのか分かりません。
初学者のためお分かりの方がいらっしゃったらご教授頂けると幸いです。
追加情報が必要であれば提出も致します。何卒よろしくお願い申し上げます。

以下ログ全文です

Sep 06, 2023 5:13:49 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost'
Sep 06, 2023 5:13:49 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Global resources are available
Sep 06, 2023 5:13:49 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2023 5:14:07 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: undeploy: Undeploying web application at '/ExerciseSystem-0.0.1-SNAPSHOT'
Sep 06, 2023 5:14:08 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2023 5:19:55 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost'
Sep 06, 2023 5:19:55 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Global resources are available
Sep 06, 2023 5:19:55 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2023 5:20:38 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2023 5:20:44 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application '/ExerciseSystem-0.0.1-SNAPSHOT'
Sep 06, 2023 5:20:44 AM org.apache.catalina.core.ApplicationContext log
SEVERE: FAIL - Application at context path /ExerciseSystem-0.0.1-SNAPSHOT could not be started
org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1312)
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:690)
        at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:216)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [WebappLoader[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5881)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 32 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.util.concurrent.ConcurrentMap java.util.ResourceBundle.cacheList accessible: module java.base does not "opens java.util" to unnamed module @7ab2bfe1
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesResourceBundles(WebappClassLoaderBase.java:3028)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:2255)
        at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:2123)
        at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:663)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 34 more

Sep 06, 2023 5:20:44 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2023 5:21:00 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application '/ExerciseSystem-0.0.1-SNAPSHOT'
Sep 06, 2023 5:21:00 AM org.apache.catalina.core.ApplicationContext log
SEVERE: FAIL - Application at context path /ExerciseSystem-0.0.1-SNAPSHOT could not be started
org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1312)
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:690)
        at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:216)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [WebappLoader[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5881)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 32 more
Caused by: java.lang.LinkageError: loader org.apache.catalina.loader.WebappClassLoader @4477ba88 attempted duplicate class definition for org.apache.catalina.loader.JdbcLeakPrevention. (org.apache.catalina.loader.JdbcLeakPrevention is in unnamed module of loader org.apache.catalina.loader.WebappClassLoader @4477ba88, parent loader java.net.URLClassLoader @cc34f4d)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc(WebappClassLoaderBase.java:2300)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:2223)
        at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:2123)
        at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:663)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 34 more

Sep 06, 2023 5:21:00 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application '/ExerciseSystem-0.0.1-SNAPSHOT'
Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
SEVERE: FAIL - Application at context path /ExerciseSystem-0.0.1-SNAPSHOT could not be started
org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1312)
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:690)
        at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:216)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [WebappLoader[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5881)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 32 more
Caused by: java.lang.LinkageError: loader org.apache.catalina.loader.WebappClassLoader @4477ba88 attempted duplicate class definition for org.apache.catalina.loader.JdbcLeakPrevention. (org.apache.catalina.loader.JdbcLeakPrevention is in unnamed module of loader org.apache.catalina.loader.WebappClassLoader @4477ba88, parent loader java.net.URLClassLoader @cc34f4d)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc(WebappClassLoaderBase.java:2300)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:2223)
        at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:2123)
        at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:663)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 34 more

Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application '/ExerciseSystem-0.0.1-SNAPSHOT'
Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
SEVERE: FAIL - Application at context path /ExerciseSystem-0.0.1-SNAPSHOT could not be started
org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1312)
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:690)
        at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:216)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [WebappLoader[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5881)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 32 more
Caused by: java.lang.LinkageError: loader org.apache.catalina.loader.WebappClassLoader @4477ba88 attempted duplicate class definition for org.apache.catalina.loader.JdbcLeakPrevention. (org.apache.catalina.loader.JdbcLeakPrevention is in unnamed module of loader org.apache.catalina.loader.WebappClassLoader @4477ba88, parent loader java.net.URLClassLoader @cc34f4d)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc(WebappClassLoaderBase.java:2300)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:2223)
        at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:2123)
        at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:663)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 34 more

Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application '/ExerciseSystem-0.0.1-SNAPSHOT'
Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
SEVERE: FAIL - Application at context path /ExerciseSystem-0.0.1-SNAPSHOT could not be started
org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1312)
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:690)
        at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:216)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [WebappLoader[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5881)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 32 more
Caused by: java.lang.LinkageError: loader org.apache.catalina.loader.WebappClassLoader @4477ba88 attempted duplicate class definition for org.apache.catalina.loader.JdbcLeakPrevention. (org.apache.catalina.loader.JdbcLeakPrevention is in unnamed module of loader org.apache.catalina.loader.WebappClassLoader @4477ba88, parent loader java.net.URLClassLoader @cc34f4d)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc(WebappClassLoaderBase.java:2300)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:2223)
        at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:2123)
        at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:663)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 34 more

Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application '/ExerciseSystem-0.0.1-SNAPSHOT'
Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
SEVERE: FAIL - Application at context path /ExerciseSystem-0.0.1-SNAPSHOT could not be started
org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1312)
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:690)
        at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:216)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [WebappLoader[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5881)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 32 more
Caused by: java.lang.LinkageError: loader org.apache.catalina.loader.WebappClassLoader @4477ba88 attempted duplicate class definition for org.apache.catalina.loader.JdbcLeakPrevention. (org.apache.catalina.loader.JdbcLeakPrevention is in unnamed module of loader org.apache.catalina.loader.WebappClassLoader @4477ba88, parent loader java.net.URLClassLoader @cc34f4d)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc(WebappClassLoaderBase.java:2300)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:2223)
        at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:2123)
        at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:663)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 34 more

Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application '/ExerciseSystem-0.0.1-SNAPSHOT'
Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
SEVERE: FAIL - Application at context path /ExerciseSystem-0.0.1-SNAPSHOT could not be started
org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1312)
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:690)
        at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:216)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [WebappLoader[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5881)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 32 more
Caused by: java.lang.LinkageError: loader org.apache.catalina.loader.WebappClassLoader @4477ba88 attempted duplicate class definition for org.apache.catalina.loader.JdbcLeakPrevention. (org.apache.catalina.loader.JdbcLeakPrevention is in unnamed module of loader org.apache.catalina.loader.WebappClassLoader @4477ba88, parent loader java.net.URLClassLoader @cc34f4d)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc(WebappClassLoaderBase.java:2300)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:2223)
        at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:2123)
        at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:663)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 34 more

Sep 06, 2023 5:21:01 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2023 5:21:02 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application '/ExerciseSystem-0.0.1-SNAPSHOT'
Sep 06, 2023 5:21:02 AM org.apache.catalina.core.ApplicationContext log
SEVERE: FAIL - Application at context path /ExerciseSystem-0.0.1-SNAPSHOT could not be started
org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1312)
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:690)
        at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:216)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [WebappLoader[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5881)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 32 more
Caused by: java.lang.LinkageError: loader org.apache.catalina.loader.WebappClassLoader @4477ba88 attempted duplicate class definition for org.apache.catalina.loader.JdbcLeakPrevention. (org.apache.catalina.loader.JdbcLeakPrevention is in unnamed module of loader org.apache.catalina.loader.WebappClassLoader @4477ba88, parent loader java.net.URLClassLoader @cc34f4d)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc(WebappClassLoaderBase.java:2300)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:2223)
        at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:2123)
        at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:663)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 34 more

Sep 06, 2023 5:21:02 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2023 5:21:03 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application '/ExerciseSystem-0.0.1-SNAPSHOT'
Sep 06, 2023 5:21:03 AM org.apache.catalina.core.ApplicationContext log
SEVERE: FAIL - Application at context path /ExerciseSystem-0.0.1-SNAPSHOT could not be started
org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1312)
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:690)
        at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:216)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [WebappLoader[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5881)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 32 more
Caused by: java.lang.LinkageError: loader org.apache.catalina.loader.WebappClassLoader @4477ba88 attempted duplicate class definition for org.apache.catalina.loader.JdbcLeakPrevention. (org.apache.catalina.loader.JdbcLeakPrevention is in unnamed module of loader org.apache.catalina.loader.WebappClassLoader @4477ba88, parent loader java.net.URLClassLoader @cc34f4d)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc(WebappClassLoaderBase.java:2300)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:2223)
        at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:2123)
        at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:663)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 34 more

Sep 06, 2023 5:21:03 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Sep 06, 2023 5:21:03 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: start: Starting web application '/ExerciseSystem-0.0.1-SNAPSHOT'
Sep 06, 2023 5:21:03 AM org.apache.catalina.core.ApplicationContext log
SEVERE: FAIL - Application at context path /ExerciseSystem-0.0.1-SNAPSHOT could not be started
org.apache.catalina.LifecycleException: Failed to stop component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:137)
        at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1312)
        at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:690)
        at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:216)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:607)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [WebappLoader[/ExerciseSystem-0.0.1-SNAPSHOT]]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5881)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 32 more
Caused by: java.lang.LinkageError: loader org.apache.catalina.loader.WebappClassLoader @4477ba88 attempted duplicate class definition for org.apache.catalina.loader.JdbcLeakPrevention. (org.apache.catalina.loader.JdbcLeakPrevention is in unnamed module of loader org.apache.catalina.loader.WebappClassLoader @4477ba88, parent loader java.net.URLClassLoader @cc34f4d)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc(WebappClassLoaderBase.java:2300)
        at org.apache.catalina.loader.WebappClassLoaderBase.clearReferences(WebappClassLoaderBase.java:2223)
        at org.apache.catalina.loader.WebappClassLoaderBase.stop(WebappClassLoaderBase.java:2123)
        at org.apache.catalina.loader.WebappLoader.stopInternal(WebappLoader.java:663)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
        ... 34 more
0

2Answer

ExerciseSystem-0.0.1-SNAPSHOT

演習システムのスナップショットが正しくインストールされていないのでは?

演習システムが必要ないなら、アプリケーション一覧より右ボタン[起動]を押し、ダメなら諦らめて、ボタン【配備解除】を押しましょう。

javaのメモリ割り当てやcatalinaの起動方法に誤りがないですか?

1Like

Comments

  1. @TakeshiUeta

    Questioner

    ご回答ありがとうございます。
    起動しても同じだったので【配備解除】しました。

    Tomcatの起動方法に関しては以下を参考にして
    https://qiita.com/kunrenyouAcount/items/3b17275e9b1f9de8d990

    systemctl start httpd.service
    systemctl start tomcat.service
    

    で行いました。

    javaのメモリ割り当てやcatalinaの起動方法に関しては

    ・メモリ割り当てが間違っている場合・・・どこを確認すればよろしいでしょうか?
    ・catalinaの起動方法・・・Tomcatを起動するとcatalinaも起動するという認識なのですが誤っていますでしょうか?

    本当に申し訳ありません。当方何分分からないことが多く、具体的にお教え頂ければ幸いです。

  2. 配備解除 してもダメですか?

    systemctl start tomcat.service

    の記述の ExecStartにcatalinaのシェルがあるのでその記述、更に、シェルの中身?

    find / -name tomcat.service

    systemctl start httpd.service

    tomcat単独でwebサービスを実行できますが。

    ごめんなさい、ちょっと高度なサンプルがヒットしました。

  3. @TakeshiUeta

    Questioner

    お時間頂きありがとうございます。

    演習システムは【example】【sample】の事だと思い、配備解除しましたが、やはり起動できませんでした。

    スクリーンショット 2023-09-06 192940.png

  4. 配備解除されていません。以前アプリケーション一覧に掲載されています?

    更に6個のアプリケーションが4個に減っています?なぜ?

    ExerciseSystem-0.0.1-SNAPSHOT

    演習、Exercise の誤訳でしょうか?
    ExerciseSystemでエラーになっています。

    また,実行中がfalseなのはExerciseSystemです。

  5. @TakeshiUeta

    Questioner

    もしかしたらWARそのものに問題があるかもしれません。
    ちなみlibの中身はこちらになります。

    スクリーンショット 2023-09-06 194453.png

  6. @TakeshiUeta

    Questioner

    演習システムがなんなのか分からず戸惑ってしまいました。すみません💦
    演習=practiceではなくExerciseだったんですね・・・。
    てっきりtomcatにデフォルトで入っているアプリの事かと思ってしまいました。

    デプロイしたいのはそのExerciseSystemなのです・・・。

  7. 演習=practice 勉強になりました。

    ExerciseSystem-0.0.1-SNAPSHOT

    SNAPSHOTでないExerciseSystem-0.0.1はインストールできないのですか?

    SNAPSHOTした環境と異なる?
    javaである以上warが正常にコンパイルしたら何処でも動くはずです?

    SNAPSHOTしたjava環境のバージョンは一致してますか?

    メモリ定義は次のurlを一読ください。

  8. @TakeshiUeta

    Questioner

    I will post a screenshot of the local Java version and the AWS Java version.

    local

    スクリーンショット 2023-09-06 201434.png

    AWS

    スクリーンショット 2023-09-06 201847.png

    I was able to compile it when I packaged it with Eclipes, but I couldn't do it when I used the mvn command in the terminal, so that may also be related.

  9. oracle社の openjdkの最新バージョンは20.0.2ですが,スナップショット環境もデプロイ環境もバージョン17.0.1で一致しているでよいでしょうか?

    Apache Mavenのコンパイルもバージョン17.0.1で一致して、開発環境で動作しているでよろしいでしょうか?

    尚、Eclipesも17.0.1で一致しているなら、コンパイルwarでトライすることができますか?

  10. @TakeshiUeta

    Questioner

    Regarding ExerciseSystem-0.0.1 which is not SNAPSHOT
    When I checked the Tomcat directory, it was unzipped, so I recognized that it was done, but is it correct?

    The Java version of Apache Maven is 1.8.0_181.
    I wonder if this is the reason why you can't compile with the mvn command.

    Since the deployment environment is version 17.0.8, is this the reason why it is not possible to deploy?

    スクリーンショット 2023-09-06 204642.png

  11. 参考になるかわかりませんが、java8に合わせて下さい。

    健闘をお祈りいたします。

  12. @TakeshiUeta

    Questioner

    Thank you very much for your time.
    I would like to use it as a reference.

できました!
JavaバージョンとTomcatのバージョンが対応していなかったようです。
私のWEBのバージョンが17だったのでTomcat9で入れなおしてみるとデプロイできました。
HalHaradaさんありがとうございました。

1Like

Your answer might help someone💌