title: tomcat 8.0.36 server won't start
body: <p>I am following the tutorial at:</p>
  
  <p><a href="http://www.vogella.com/tutorials/REST/article.html" rel="nofollow noreferrer">http://www.vogella.com/tutorials/REST/article.html</a> - which is a beginners Jersey/REST tutorial in Eclipse.</p>
  
  <p>My tomcat server starts fine on its own, but when I try to run Hello.java in Section 6.5 of the tutorial I get a number of errors and tomcat fails to start [There are several errors - all similar]</p>
  
  <pre><code>SEVERE: A child container failed during start
  java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/com.vogella.jersey.first]]
      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[/com.vogella.jersey.first]]
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
      ... 6 more
  Caused by: java.lang.NoClassDefFoundError: jersey/repackaged/com/google/common/base/Function
      at org.glassfish.jersey.internal.ServiceFinder.&lt;clinit&gt;(ServiceFinder.java:165)
      at org.glassfish.jersey.servlet.internal.ServletContainerProviderFactory.getAllServletContainerProviders(ServletContainerProviderFactory.java:66)
      at org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer.onStartup(JerseyServletContainerInitializer.java:134)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5292)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
      ... 6 more
  Caused by: java.lang.ClassNotFoundException: jersey.repackaged.com.google.common.base.Function
      at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1332)
      at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1166)
      ... 11 more
  
  Sep 07, 2016 6:25:41 AM 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
  
  Sep 07, 2016 6:25:41 AM 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
  
  Sep 07, 2016 6:25:41 AM org.apache.coyote.AbstractProtocol pause
  INFO: Pausing ProtocolHandler ["http-nio-8080"]
  Sep 07, 2016 6:25:41 AM org.apache.coyote.AbstractProtocol pause
  INFO: Pausing ProtocolHandler ["ajp-nio-8009"]
  Sep 07, 2016 6:25:41 AM org.apache.catalina.core.StandardService stopInternal
  INFO: Stopping service Catalina
  Sep 07, 2016 6:25:41 AM org.apache.coyote.AbstractProtocol destroy
  INFO: Destroying ProtocolHandler ["http-nio-8080"]
  Sep 07, 2016 6:25:41 AM 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)
  
  Sep 07, 2016 6:25:41 AM org.apache.coyote.AbstractProtocol destroy
  INFO: Destroying ProtocolHandler ["ajp-nio-8009"]
  Sep 07, 2016 6:25:41 AM 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><a href="https://i.stack.imgur.com/pRbFx.jpg" rel="nofollow noreferrer">IDE</a></p>
  
  <p>My <code>WEB-INF\lib\</code> folder contains:</p>
  
  <ul>
  <li><p><code>javax.ws.s-api-2.0-sources.jar</code></p></li>
  <li><p><code>javax.ws.rs-api-2.0.1.jar</code></p></li>
  <li><p><code>jersey-client.jar</code></p></li>
  <li><p><code>jersey-common.jar</code></p></li>
  <li><p><code>jersey-container-servlet-core.jar</code></p></li>
  <li><p><code>jersey-media-jaxb.jar</code></p></li>
  <li><p><code>jersey-server.jar</code></p></li>
  </ul>
  
  <p><code>JRE</code> is <code>1.8.0_101</code>
  <code>JAX-RS</code> is <code>2.23.2</code>
  <code>Tomcat</code> <code>8.0.36</code></p>
  
  <p>I am wondering if this is my issue: </p>
  
  <p><a href="https://stackoverflow.com/questions/30763928/whenever-i-try-to-run-tomcat-with-jersey-it-refuses-to-load">Whenever I try to run Tomcat with Jersey, it refuses to load</a></p>
  
  <p>But not sure how to check which versions I need to match?</p>