Что за исключение выдает Tomcat при попытке запуска war-файла?
после установки сервера Tomcat и добавления war файла в его папку webappes, при попытке запустить данный файл с дэш-боарда появляется следующее сообщение об ошибке:
ОШИБКА - Приложение по контекстному пути [/The........Project] не запустилось
ОШИБКА - Встретилось исключение [org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/The........Project]]]
... 13 more
13-Oct-2023 17:42:01.578 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [801] milliseconds
13-Oct-2023 17:42:01.644 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
13-Oct-2023 17:42:01.645 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.80]
13-Oct-2023 17:42:01.677 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [D:\Install\Tomcat\apache-tomcat-9.0.80\webapps\TheFirstSpringProject.war]
13-Oct-2023 17:42:01.932 SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [D:\Install\Tomcat\apache-tomcat-9.0.80\webapps\TheFirstSpringProject.war]
java.lang.IllegalStateException: Error starting child
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:686)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1023)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1910)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:824)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1617)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:345)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:893)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:795)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:249)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:922)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:347)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/TheFirstSpringProject]]
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:419)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:186)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683)
... 37 more
Caused by: java.lang.IllegalArgumentException: Invalid [first_servlet] in servlet mapping
at org.apache.catalina.core.StandardContext.addServletMappingDecoded(StandardContext.java:3032)
at org.apache.catalina.Context.addServletMappingDecoded(Context.java:917)
at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1563)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1330)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:987)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:304)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4820)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
... 38 more
13-Oct-2023 17:42:01.941 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [D:\Install\Tomcat\apache-tomcat-9.0.80\webapps\TheFirstSpringProject.war] has finished in [263] ms
13-Oct-2023 17:42:01.942 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Установка веб приложения в папку [D:\Install\Tomcat\apache-tomcat-9.0.80\webapps\docs]
13-Oct-2023 17:42:02.406 WARNING [main] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [319] milliseconds.
13-Oct-2023 17:42:02.435 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Install\Tomcat\apache-tomcat-9.0.80\webapps\docs] has finished in [492] ms
13-Oct-2023 17:42:02.438 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Установка веб приложения в папку [D:\Install\Tomcat\apache-tomcat-9.0.80\webapps\examples]
13-Oct-2023 17:42:02.883 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Install\Tomcat\apache-tomcat-9.0.80\webapps\examples] has finished in [446] ms
13-Oct-2023 17:42:02.885 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Установка веб приложения в папку [D:\Install\Tomcat\apache-tomcat-9.0.80\webapps\host-manager]
13-Oct-2023 17:42:02.933 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Install\Tomcat\apache-tomcat-9.0.80\webapps\host-manager] has finished in [48] ms
13-Oct-2023 17:42:02.936 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Установка веб приложения в папку [D:\Install\Tomcat\apache-tomcat-9.0.80\webapps\manager]
13-Oct-2023 17:42:02.991 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Install\Tomcat\apache-tomcat-9.0.80\webapps\manager] has finished in [55] ms
13-Oct-2023 17:42:02.992 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Установка веб приложения в папку [D:\Install\Tomcat\apache-tomcat-9.0.80\webapps\ROOT]
13-Oct-2023 17:42:03.038 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Install\Tomcat\apache-tomcat-9.0.80\webapps\ROOT] has finished in [46] ms
13-Oct-2023 17:42:03.047 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [1467] milliseconds
13-Oct-2023 17:42:03.059 SEVERE [main] org.apache.catalina.core.StandardServer.await Failed to create server shutdown socket on address [localhost] and port [8005] (base port [8005] and offset [0])
java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
at java.net.ServerSocket.bind(ServerSocket.java:390)
at java.net.ServerSocket.(ServerSocket.java:252)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:582)
at org.apache.catalina.startup.Catalina.await(Catalina.java:864)
at org.apache.catalina.startup.Catalina.start(Catalina.java:810)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:347)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478)
13-Oct-2023 17:42:03.060 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
13-Oct-2023 17:42:03.061 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
13-Oct-2023 17:42:03.104 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
13-Oct-2023 17:42:03.108 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]