title: Tomcat v8.0 Server Failed to Start
body: <p>I'm trying to make a dynamic web application that runs on an apache tomcat v8.0 server in Eclipse-ee for my final uni project and am having trouble getting the server to start. It had been working fine, then seemingly for no reason stopped. I'm new to this whole web app thing, so apologies in advance if I've done anything stupid!</p>
  
  <p>Here's the error message I get when attempting to start the server:</p>
  
  <p><a href="https://i.stack.imgur.com/xBh95.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xBh95.jpg" alt="Error message when starting server"></a></p>
  
  <p>This is the server overview tab:
  <a href="https://i.stack.imgur.com/v9Fga.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v9Fga.jpg" alt="Server overview"></a></p>
  
  <p>This is the console output when I attempt to start the server. There are some errors but I don't understand what they mean:</p>
  
  <pre><code>Jan 14, 2019 3:27:02 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
  WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:VulnerableWebApp' did not find a matching property.
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server version:        Apache Tomcat/8.0.36
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server built:          Jun 9 2016 13:55:50 UTC
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server number:         8.0.36.0
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: OS Name:               Windows 7
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: OS Version:            6.1
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Architecture:          amd64
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Java Home:             C:\Program Files\Java\jre1.8.0_171
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: JVM Version:           1.8.0_171-b11
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: JVM Vendor:            Oracle Corporation
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: CATALINA_BASE:         F:\Stuart\eclipse-ee-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: CATALINA_HOME:         F:\Stuart\eclipse-ee-workspace\tomcat
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dcatalina.base=F:\Stuart\eclipse-ee-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dcatalina.home=F:\Stuart\eclipse-ee-workspace\tomcat
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dwtp.deploy=F:\Stuart\eclipse-ee-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Djava.endorsed.dirs=F:\Stuart\eclipse-ee-workspace\tomcat\endorsed
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dfile.encoding=Cp1252
  Jan 14, 2019 3:27:02 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
  INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_171\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_171/bin/server;C:/Program Files/Java/jre1.8.0_171/bin;C:/Program Files/Java/jre1.8.0_171/lib/amd64;c:\program files (x86)\common files\oracle\java\javapath;c:\programdata\oracle\java\javapath;c:\program files (x86)\intel\icls client\;c:\program files\intel\icls client\;c:\program files\common files\microsoft shared\windows live;c:\program files (x86)\common files\microsoft shared\windows live;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files (x86)\ati technologies\ati.ace\core-static;c:\program files (x86)\windows live\shared;c:\program files (x86)\amd\ati.ace\core-static;c:\program files\intel\intel(r) management engine components\dal;c:\program files\intel\intel(r) management engine components\ipt;c:\program files (x86)\intel\intel(r) management engine components\dal;c:\program files (x86)\intel\intel(r) management engine components\ipt;c:\users\stuart\.dnx\bin;c:\program files\microsoft dnx\dnvm\;c:\program files\microsoft sql server\130\tools\binn\;f:\program files\git\cmd;f:\program files\matlab2018\bin;c:\program files\nvidia corporation\nvidia nvdlisr;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\Stuart\AppData\Roaming\Dashlane\6.1901.0.16461\bin\Firefox_Extension\{442718d9-475e-452a-b3e1-fb1ee16b8e9f}\components;C:\Users\Stuart\AppData\Roaming\Dashlane\6.1901.0.16461\ucrt;C:\Users\Stuart\AppData\Roaming\Dashlane\6.1901.0.16461\bin\Qt;C:\Users\Stuart\AppData\Roaming\Dashlane\6.1901.0.16461\bin\Ssl;F:\New folder (4);;.
  Jan 14, 2019 3:27:02 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler ["http-nio-8080"]
  Jan 14, 2019 3:27:02 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
  INFO: Using a shared selector for servlet write/read
  Jan 14, 2019 3:27:02 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
  Jan 14, 2019 3:27:02 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
  INFO: Using a shared selector for servlet write/read
  Jan 14, 2019 3:27:02 PM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 706 ms
  Jan 14, 2019 3:27:03 PM org.apache.catalina.core.StandardService startInternal
  INFO: Starting service Catalina
  Jan 14, 2019 3:27:03 PM org.apache.catalina.core.StandardEngine startInternal
  INFO: Starting Servlet Engine: Apache Tomcat/8.0.36
  Jan 14, 2019 3:27:03 PM org.apache.catalina.core.ContainerBase startInternal
  SEVERE: A child container failed during start
  java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/VulnerableWebApp]]
      at java.util.concurrent.FutureTask.report(Unknown Source)
      at java.util.concurrent.FutureTask.get(Unknown Source)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:915)
      at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
  Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/VulnerableWebApp]]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
      ... 6 more
  Caused by: java.lang.IllegalArgumentException: The servlets named [LoginCheck] and [Registration] are both mapped to the url-pattern [/LoginCheck] which is not permitted
      at org.apache.tomcat.util.descriptor.web.WebXml.addServletMapping(WebXml.java:308)
      at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2373)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2055)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:1940)
      at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1147)
      at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:779)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:306)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5202)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      ... 6 more
  
  Jan 14, 2019 3:27:03 PM org.apache.catalina.core.ContainerBase startInternal
  SEVERE: A child container failed during start
  java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
      at java.util.concurrent.FutureTask.report(Unknown Source)
      at java.util.concurrent.FutureTask.get(Unknown Source)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:915)
      at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      at org.apache.catalina.core.StandardService.startInternal(StandardService.java:441)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:787)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
  Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
  Caused by: org.apache.catalina.LifecycleException: A child container failed during start
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:923)
      at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      ... 6 more
  
  Jan 14, 2019 3:27:03 PM org.apache.catalina.startup.Catalina start
  SEVERE: The required Server component failed to start so Tomcat is unable to start.
  org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
  Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
      at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:787)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      ... 7 more
  Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
      at org.apache.catalina.core.StandardService.startInternal(StandardService.java:441)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      ... 9 more
  Caused by: org.apache.catalina.LifecycleException: A child container failed during start
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:923)
      at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      ... 11 more
  
  Jan 14, 2019 3:27:03 PM org.apache.coyote.AbstractProtocol pause
  INFO: Pausing ProtocolHandler ["http-nio-8080"]
  Jan 14, 2019 3:27:03 PM org.apache.coyote.AbstractProtocol pause
  INFO: Pausing ProtocolHandler ["ajp-nio-8009"]
  Jan 14, 2019 3:27:03 PM org.apache.catalina.core.StandardService stopInternal
  INFO: Stopping service Catalina
  Jan 14, 2019 3:27:03 PM org.apache.coyote.AbstractProtocol destroy
  INFO: Destroying ProtocolHandler ["http-nio-8080"]
  Jan 14, 2019 3:27:03 PM org.apache.coyote.AbstractProtocol destroy
  SEVERE: Failed to destroy end point associated with ProtocolHandler ["http-nio-8080"]
  java.lang.NullPointerException
      at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(NioEndpoint.java:316)
      at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:492)
      at org.apache.tomcat.util.net.AbstractEndpoint.destroy(AbstractEndpoint.java:821)
      at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.java:534)
      at org.apache.catalina.connector.Connector.destroyInternal(Connector.java:1023)
      at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:297)
      at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:589)
      at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:297)
      at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:877)
      at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:297)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
  
  Jan 14, 2019 3:27:03 PM org.apache.coyote.AbstractProtocol destroy
  INFO: Destroying ProtocolHandler ["ajp-nio-8009"]
  Jan 14, 2019 3:27:03 PM org.apache.coyote.AbstractProtocol destroy
  SEVERE: Failed to destroy end point associated with ProtocolHandler ["ajp-nio-8009"]
  java.lang.NullPointerException
      at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(NioEndpoint.java:316)
      at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:492)
      at org.apache.tomcat.util.net.AbstractEndpoint.destroy(AbstractEndpoint.java:821)
      at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.java:534)
      at org.apache.catalina.connector.Connector.destroyInternal(Connector.java:1023)
      at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:297)
      at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:589)
      at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:297)
      at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:877)
      at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:297)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
  </code></pre>
  
  <p>And lastly here's the web.xml file. I've left it untouched so I hope this is fine:
  <a href="https://i.stack.imgur.com/rNCbo.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rNCbo.jpg" alt="web.xml file"></a></p>