I created a sample JSF/JDBC project in Eclipse Indigo which is deployed to Tomcat 7. When I put mysql-connector-java-5.1.21.jar in /WEB-INF/lib, then I get the following errors:
One from Eclipse:
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.
And another one from Tomcat:
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)
How are they caused and how can I solve it?