title: Apache Tomcat 9 not running on Eclipse IDE
body: <p>I'm using Eclipse IDE. I am working with servlet and when I deployed it on Apache Tomcat everything was working fine when I restarted the server I got this big log. I even tried re-installing the eclipse IDE I'm still getting this error constantly</p>
  <pre class="lang-java prettyprint-override"><code>Sep 03, 2022 10:32:12 PM org.apache.catalina.startup.Catalina load
  INFO: Server initialization in [501] milliseconds
  Sep 03, 2022 10:32:12 PM org.apache.catalina.core.StandardService startInternal
  INFO: Starting service [Catalina]
  Sep 03, 2022 10:32:12 PM org.apache.catalina.core.StandardEngine startInternal
  INFO: Starting Servlet engine: [Apache Tomcat/9.0.65]
  Sep 03, 2022 10:32:12 PM org.apache.jasper.servlet.TldScanner scanJars
  INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
  Sep 03, 2022 10:32:12 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[/Giftcard]]
      at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
      at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
      at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
      at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
  Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Giftcard]]
      at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
      ... 21 more
  Caused by: java.lang.IllegalArgumentException: The servlets named [com.giftcard.BlockAttributes] and [com.giftcard.TransactionHistoryAttribute] are both mapped to the url-pattern [/blockAttribute] which is not permitted
      at org.apache.tomcat.util.descriptor.web.WebXml.addServletMappingDecoded(WebXml.java:343)
      at org.apache.tomcat.util.descriptor.web.WebXml.addServletMapping(WebXml.java:336)
      at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2680)
      at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2359)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2348)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2249)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2243)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2243)
      at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1398)
      at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1303)
      at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:986)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:303)
      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5135)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      ... 27 more
  
  Sep 03, 2022 10:32:12 PM org.apache.catalina.core.ContainerBase startInternal
  SEVERE: A child container failed during start
  java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start
      at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
      at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
      at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
  Caused by: org.apache.catalina.LifecycleException: A child container failed during start
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:938)
      at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
      ... 13 more
  Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Giftcard]]
      at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
      at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
      ... 21 more
  Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Giftcard]]
      at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
      ... 21 more
  Caused by: java.lang.IllegalArgumentException: The servlets named [com.giftcard.BlockAttributes] and [com.giftcard.TransactionHistoryAttribute] are both mapped to the url-pattern [/blockAttribute] which is not permitted
      at org.apache.tomcat.util.descriptor.web.WebXml.addServletMappingDecoded(WebXml.java:343)
      at org.apache.tomcat.util.descriptor.web.WebXml.addServletMapping(WebXml.java:336)
      at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2680)
      at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2359)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2348)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2249)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2243)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2243)
      at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1398)
      at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1303)
      at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:986)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:303)
      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5135)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      ... 27 more
  
  Sep 03, 2022 10:32:12 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: A child container failed during start
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:938)
      at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
  Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start
      at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
      at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
      ... 13 more
  Caused by: org.apache.catalina.LifecycleException: A child container failed during start
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:938)
      at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
      ... 13 more
  Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Giftcard]]
      at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
      at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
      ... 21 more
  Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Giftcard]]
      at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
      ... 21 more
  Caused by: java.lang.IllegalArgumentException: The servlets named [com.giftcard.BlockAttributes] and [com.giftcard.TransactionHistoryAttribute] are both mapped to the url-pattern [/blockAttribute] which is not permitted
      at org.apache.tomcat.util.descriptor.web.WebXml.addServletMappingDecoded(WebXml.java:343)
      at org.apache.tomcat.util.descriptor.web.WebXml.addServletMapping(WebXml.java:336)
      at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2680)
      at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2359)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2348)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2249)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2243)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2243)
      at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1398)
      at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1303)
      at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:986)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:303)
      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5135)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      ... 27 more
  
  Sep 03, 2022 10:32:12 PM org.apache.coyote.AbstractProtocol pause
  INFO: Pausing ProtocolHandler [&quot;http-nio-8080&quot;]
  Sep 03, 2022 10:32:12 PM org.apache.catalina.core.StandardService stopInternal
  INFO: Stopping service [Catalina]
  Sep 03, 2022 10:32:12 PM org.apache.coyote.AbstractProtocol destroy
  INFO: Destroying ProtocolHandler [&quot;http-nio-8080&quot;]
  </code></pre>
  <p>and Eclipse IDE says Apache Tomcat has encountered a problem. Need help.</p>