title: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
body: <p>I created a sample JSF/JDBC project in Eclipse Indigo which is deployed to Tomcat 7. When I put <code>mysql-connector-java-5.1.21.jar</code> in <code>/WEB-INF/lib</code>, then I get the following errors:</p>
  
  <p>One from Eclipse:</p>
  
  <blockquote>
    <p>Server Tomcat v7.0 Server at localhost (8) was unable to start within 120 seconds. If the    server requires more time, try increasing the timeout in the server editor.</p>
  </blockquote>
  
  <p>And another one from Tomcat:</p>
  
  <pre><code>SEVERE: Error waiting for multi-thread deployment of context descriptors to complete
  java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
  at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
  at java.util.concurrent.FutureTask.get(FutureTask.java:83)
  at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:574)
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1413)
  </code></pre>
  
  <p>How are they caused and how can I solve it?</p>