Eclipse起動時の大量エラー
解決したいこと
Springbootを使用してローカルサーバーを立て、Tomcatを起動しようとしたのですが、エラーが大量に出て「localhostは起動に失敗しました」と出てしまいます。
コンソールにはエラー内容が大量出ており、何をどこから直したらよいのか分からなかったため教えてください。。
①エラー概要抜粋(Caused by)
「~」はat org.apache~などが記載されていますが長すぎるため省略しました。
Caused by: java.net.ConnectException: ConnectException invoking http://localhost:28080/hoge: Connection refused: connect
~
Caused by: java.net.ConnectException: Connection refused: connect
~
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
ERROR 2021-07-07 19:51:14,523 [main] Application run failed
java.lang.IllegalStateException: Failed to execute CommandLineRunner
~
Caused by: javax.ws.rs.ProcessingException: java.net.ConnectException: ConnectException invoking http://localhost:28080/hoge Connection refused: connect
~
Caused by: java.net.ConnectException: ConnectException invoking http://localhost:28080/hoge: Connection refused: connect
~
19:51:14.532 [main] ERROR org.apache.catalina.core.ContainerBase - 子コンテナーを開始できません。
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: コンポーネント[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/hoge]]の開始に失敗しました。
~
Caused by: org.apache.catalina.LifecycleException: コンポーネント[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/hoge]]の開始に失敗しました。
~
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'newJobListGetService' defined in file [C:\ProgramData\hoge]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
~
Caused by: java.lang.ExceptionInInitializerError
~
Caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key hoge
~
19:51:14.599 [main] ERROR org.apache.catalina.core.ContainerBase - 子コンテナーを開始できません。
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: コンポーネント[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/hoge]]の開始に失敗しました。
~
②エラー概要抜粋(catalina)
エラー後半に「catalina」という記載が多くあったので別枠で記載いたします。
19:51:14.656 [main] ERROR org.apache.catalina.core.ContainerBase - 子コンテナーを開始できません。
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 子コンテナーを開始できません。
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?]
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) [catalina.jar:9.0.20]
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) [catalina.jar:9.0.20]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.20]
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421) [catalina.jar:9.0.20]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.20]
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932) [catalina.jar:9.0.20]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.20]
at org.apache.catalina.startup.Catalina.start(Catalina.java:633) [catalina.jar:9.0.20]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344) [bootstrap.jar:9.0.20]
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475) [bootstrap.jar:9.0.20]
Caused by: org.apache.catalina.LifecycleException: 子コンテナーを開始できません。
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:921) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) ~[catalina.jar:9.0.20]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367) ~[catalina.jar:9.0.20]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-util.jar:9.0.20]
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) ~[?:?]
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902) ~[catalina.jar:9.0.20]
... 13 more
Caused by: org.apache.tomcat.util.MultiThrowable
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:913) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) ~[catalina.jar:9.0.20]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367) ~[catalina.jar:9.0.20]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-util.jar:9.0.20]
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) ~[?:?]
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902) ~[catalina.jar:9.0.20]
... 13 more
19:51:14.657 [main] ERROR org.apache.catalina.startup.Catalina - 必要なサーバーコンポーネントを開始できなかったため、Tomcat を開始できませんでした。
org.apache.catalina.LifecycleException: 子コンテナーを開始できません。
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:921) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) ~[catalina.jar:9.0.20]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421) ~[catalina.jar:9.0.20]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932) ~[catalina.jar:9.0.20]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[catalina.jar:9.0.20]
at org.apache.catalina.startup.Catalina.start(Catalina.java:633) [catalina.jar:9.0.20]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344) [bootstrap.jar:9.0.20]
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475) [bootstrap.jar:9.0.20]
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 子コンテナーを開始できません。
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?]
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) ~[catalina.jar:9.0.20]
... 13 more
Caused by: org.apache.catalina.LifecycleException: 子コンテナーを開始できません。
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:921) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) ~[catalina.jar:9.0.20]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367) ~[catalina.jar:9.0.20]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-util.jar:9.0.20]
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) ~[?:?]
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902) ~[catalina.jar:9.0.20]
... 13 more
Caused by: org.apache.tomcat.util.MultiThrowable
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:913) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) ~[catalina.jar:9.0.20]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377) ~[catalina.jar:9.0.20]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367) ~[catalina.jar:9.0.20]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-util.jar:9.0.20]
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) ~[?:?]
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902) ~[catalina.jar:9.0.20]
... 13 more
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/C:/ProgramData/hoge/lib/catalina.jar) to field java.io.ObjectStreamClass$Caches.localDescs
WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
曖昧な質問で申しわけありませんが、よろしくお願いいたします。
0