title: Simple Spring/Hibernate app permanently fails to startup within 45 to 600 seconds
body: <p>I made a simple webapp from Websystique's "Spring 4 MVC+Hibernate 4+MySQL+Maven integration example using annotations" tutorial. </p>
  
  <p>It did two things for deployment:</p>
  
  <ol>
  <li>Eclipse's built-in Tomcat deployment</li>
  <li>Manually put the war file into <code>tomcat-location/webapps</code>, use <code>tomcat-location/startup.sh</code> and go to <code>localhost:8080</code></li>
  </ol>
  
  <p>For number 2, I just started at a blank webpage that never loaded.</p>
  
  <p>For number 1, as it is a known issue here, I have tried the following possible solutions and <strong>none</strong> has resolved my issue:</p>
  
  <ol>
  <li>Removed all breakpoints</li>
  <li>Increased the Tomcat timeouts (I used 45, 100, 300 and 600)</li>
  <li>Removed the current Tomcat server and created a new one, removing the old's settings <a href="https://sansatechnology.wordpress.com/2011/09/26/how-to-fix-eclipse-tomcat-not-starting-in-45-seconds/" rel="nofollow">as suggested here</a></li>
  <li>Restarted Eclipse and my system</li>
  </ol>
  
  <p>This problem is now beyond my current knowledge. The logs are always stuck in</p>
  
  <pre><code>INFO: HHH000021: Bytecode provider name : javassist
  </code></pre>
  
  <p>with the Progress stuck in:</p>
  
  <pre><code>Preparing launch delegate...:
  </code></pre>
  
  <p>Please help what could have been the cause of this.</p>
  
  <hr>
  
  <p>Below are logs that could help:</p>
  
  <h2><code>mvn clean install</code>:</h2>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building Spring4MVCHibernateDemo Maven Webapp 0.0.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [WARNING] The artifact dbunit:dbunit:jar:2.2 has been relocated to org.dbunit:dbunit:jar:2.2
  [INFO] 
  [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ Spring4MVCHibernateDemo ---
  [INFO] Deleting /Users/username/Projects/Spring4MVCHibernateDemo/target
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Spring4MVCHibernateDemo ---
  [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] Copying 2 resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ Spring4MVCHibernateDemo ---
  [INFO] Changes detected - recompiling the module!
  [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
  [INFO] Compiling 10 source files to /Users/username/Projects/Spring4MVCHibernateDemo/target/classes
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ Spring4MVCHibernateDemo ---
  [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
  [INFO] skip non existing resourceDirectory /Users/username/Projects/Spring4MVCHibernateDemo/src/test/resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ Spring4MVCHibernateDemo ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ Spring4MVCHibernateDemo ---
  [INFO] No tests to run.
  [INFO] 
  [INFO] --- maven-war-plugin:2.4:war (default-war) @ Spring4MVCHibernateDemo ---
  [INFO] Packaging webapp
  [INFO] Assembling webapp [Spring4MVCHibernateDemo] in [/Users/username/Projects/Spring4MVCHibernateDemo/target/Spring4MVCHibernateDemo]
  [INFO] Processing war project
  [INFO] Copying webapp resources [/Users/username/Projects/Spring4MVCHibernateDemo/src/main/webapp]
  [INFO] Webapp assembled in [225 msecs]
  [INFO] Building war: /Users/username/Projects/Spring4MVCHibernateDemo/target/Spring4MVCHibernateDemo.war
  [INFO] 
  [INFO] --- maven-install-plugin:2.4:install (default-install) @ Spring4MVCHibernateDemo ---
  [INFO] Installing /Users/username/Projects/Spring4MVCHibernateDemo/target/Spring4MVCHibernateDemo.war to /Users/username/.m2/repository/com/websystique/springmvc/Spring4MVCHibernateDemo/0.0.1-SNAPSHOT/Spring4MVCHibernateDemo-0.0.1-SNAPSHOT.war
  [INFO] Installing /Users/username/Projects/Spring4MVCHibernateDemo/pom.xml to /Users/username/.m2/repository/com/websystique/springmvc/Spring4MVCHibernateDemo/0.0.1-SNAPSHOT/Spring4MVCHibernateDemo-0.0.1-SNAPSHOT.pom
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 4.124 s
  [INFO] Finished at: 2016-08-14T19:37:57+08:00
  [INFO] Final Memory: 21M/213M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <h2>Eclipse Run As Server:</h2>
  
  <pre><code>Aug 14, 2016 8:00:19 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
  WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:Spring4MVCHibernateDemo' did not find a matching property.
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server version:        Apache Tomcat/8.0.8.5.4
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server built:          Jul 6 2016 08:43:30 UTC
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Server number:         8.5.4.0
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: OS Name:               Mac OS X
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: OS Version:            10.11.6
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Architecture:          x86_64
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Java Home:             /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: JVM Version:           1.8.0_101-b13
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: JVM Vendor:            Oracle Corporation
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: CATALINA_BASE:         /Users/username/Projects/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: CATALINA_HOME:         /usr/local/apache-tomcat-8.5.4
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dcatalina.base=/Users/username/Projects/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dcatalina.home=/usr/local/apache-tomcat-8.5.4
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dwtp.deploy=/Users/username/Projects/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Djava.endorsed.dirs=/usr/local/apache-tomcat-8.5.4/endorsed
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.VersionLoggerListener log
  INFO: Command line argument: -Dfile.encoding=UTF-8
  Aug 14, 2016 8:00:19 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: /Users/username/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
  Aug 14, 2016 8:00:19 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler ["http-nio-8080"]
  Aug 14, 2016 8:00:19 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
  INFO: Using a shared selector for servlet write/read
  Aug 14, 2016 8:00:19 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
  Aug 14, 2016 8:00:19 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
  INFO: Using a shared selector for servlet write/read
  Aug 14, 2016 8:00:19 PM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 1035 ms
  Aug 14, 2016 8:00:19 PM org.apache.catalina.core.StandardService startInternal
  INFO: Starting service Catalina
  Aug 14, 2016 8:00:19 PM org.apache.catalina.core.StandardEngine startInternal
  INFO: Starting Servlet Engine: Apache Tomcat/8.0.8.5.4
  Aug 14, 2016 8:00:21 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.
  Aug 14, 2016 8:00:21 PM org.apache.catalina.core.ApplicationContext log
  INFO: Spring WebApplicationInitializers detected on classpath: [com.springmvc.configuration.AppInitializer@745a5afb]
  Aug 14, 2016 8:00:21 PM org.apache.catalina.core.ApplicationContext log
  INFO: Initializing Spring root WebApplicationContext
  Aug 14, 2016 8:00:21 PM org.springframework.web.context.ContextLoader initWebApplicationContext
  INFO: Root WebApplicationContext: initialization started
  Aug 14, 2016 8:00:21 PM org.springframework.web.context.support.AnnotationConfigWebApplicationContext prepareRefresh
  INFO: Refreshing Root WebApplicationContext: startup date [Sun Aug 14 20:00:21 PHT 2016]; root of context hierarchy
  Aug 14, 2016 8:00:21 PM org.springframework.web.context.support.AnnotationConfigWebApplicationContext loadBeanDefinitions
  INFO: Registering annotated classes: [class com.springmvc.configuration.AppConfiguration]
  Aug 14, 2016 8:00:22 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
  INFO: Loaded JDBC driver: com.mysql.jdbc.Driver
  Aug 14, 2016 8:00:23 PM org.hibernate.annotations.common.reflection.java.JavaReflectionManager &lt;clinit&gt;
  INFO: HCANN000001: Hibernate Commons Annotations {4.0.5.Final}
  Aug 14, 2016 8:00:23 PM org.hibernate.Version logVersion
  INFO: HHH000412: Hibernate Core {4.3.6.Final}
  Aug 14, 2016 8:00:23 PM org.hibernate.cfg.Environment &lt;clinit&gt;
  INFO: HHH000206: hibernate.properties not found
  Aug 14, 2016 8:00:23 PM org.hibernate.cfg.Environment buildBytecodeProvider
  INFO: HHH000021: Bytecode provider name : javassist
  </code></pre>
  
  <h2><code>HibernateConfiguration.java</code></h2>
  
  <pre><code>package com.springmvc.configuration;
  
  import java.util.Properties;
  
  import javax.sql.DataSource;
  
  import org.hibernate.SessionFactory;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.context.annotation.Bean;
  import org.springframework.context.annotation.ComponentScan;
  import org.springframework.context.annotation.Configuration;
  import org.springframework.context.annotation.PropertySource;
  import org.springframework.core.env.Environment;
  import org.springframework.jdbc.datasource.DriverManagerDataSource;
  import org.springframework.orm.hibernate4.HibernateTransactionManager;
  import org.springframework.orm.hibernate4.LocalSessionFactoryBean;
  import org.springframework.transaction.annotation.EnableTransactionManagement;
  
  @Configuration
  @EnableTransactionManagement
  @ComponentScan({ "com.springmvc.configuration" })
  @PropertySource(value = { "classpath:application.properties" })
  public class HibernateConfiguration {
  
      @Autowired
      private Environment environment;
  
      @Bean
      public LocalSessionFactoryBean sessionFactory() {
          LocalSessionFactoryBean sessionFactory = new LocalSessionFactoryBean();
          sessionFactory.setDataSource(dataSource());
          sessionFactory.setPackagesToScan(new String[] { "com.springmvc.model" });
          sessionFactory.setHibernateProperties(hibernateProperties());
          return sessionFactory;
      }
  
      @Bean
      public DataSource dataSource() {
          DriverManagerDataSource dataSource = new DriverManagerDataSource();
          dataSource.setDriverClassName(environment.getRequiredProperty("jdbc.driverClassName"));
          dataSource.setUrl(environment.getRequiredProperty("jdbc.url"));
          dataSource.setUsername(environment.getRequiredProperty("jdbc.username"));
          dataSource.setPassword(environment.getRequiredProperty("jdbc.password"));
          return dataSource;
      }
  
      private Properties hibernateProperties() {
          Properties properties = new Properties();
          properties.put("hibernate.dialect", environment.getRequiredProperty("hibernate.dialect"));
          properties.put("hibernate.show_sql", environment.getRequiredProperty("hibernate.show_sql"));
          properties.put("hibernate.format_sql", environment.getRequiredProperty("hibernate.format_sql"));
          return properties;
      }
  
      @Bean
      @Autowired
      public HibernateTransactionManager transactionManager(SessionFactory s) {
          HibernateTransactionManager txManager = new HibernateTransactionManager();
          txManager.setSessionFactory(s);
          return txManager;
      }
  }
  </code></pre>
  
  <h2><code>pom.xml</code></h2>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.websystique.springmvc&lt;/groupId&gt;
      &lt;artifactId&gt;Spring4MVCHibernateDemo&lt;/artifactId&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;Spring4MVCHibernateDemo Maven Webapp&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
      &lt;properties&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
          &lt;springframework.version&gt;4.0.6.RELEASE&lt;/springframework.version&gt;
          &lt;hibernate.version&gt;4.3.6.Final&lt;/hibernate.version&gt;
          &lt;mysql.connector.version&gt;5.1.31&lt;/mysql.connector.version&gt;
          &lt;joda-time.version&gt;2.3&lt;/joda-time.version&gt;
          &lt;testng.version&gt;6.9.4&lt;/testng.version&gt;
          &lt;mockito.version&gt;1.10.19&lt;/mockito.version&gt;
          &lt;h2.version&gt;1.4.187&lt;/h2.version&gt;
          &lt;dbunit.version&gt;2.2&lt;/dbunit.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;3.8.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Spring --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
              &lt;version&gt;${springframework.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
              &lt;version&gt;${springframework.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-webmvc&lt;/artifactId&gt;
              &lt;version&gt;${springframework.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;
              &lt;version&gt;${springframework.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
              &lt;version&gt;${springframework.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
              &lt;version&gt;${springframework.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Hibernate --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
              &lt;version&gt;${hibernate.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- jsr303 validation --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.validation&lt;/groupId&gt;
              &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
              &lt;version&gt;1.1.0.Final&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
              &lt;version&gt;5.1.3.Final&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- MySQL --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;version&gt;${mysql.connector.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Joda-Time --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;joda-time&lt;/groupId&gt;
              &lt;artifactId&gt;joda-time&lt;/artifactId&gt;
              &lt;version&gt;${joda-time.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- To map JodaTime with database type --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jadira.usertype&lt;/groupId&gt;
              &lt;artifactId&gt;usertype.core&lt;/artifactId&gt;
              &lt;version&gt;3.0.0.CR1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Servlet+JSP+JSTL --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
              &lt;version&gt;3.1.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt;
              &lt;artifactId&gt;javax.servlet.jsp-api&lt;/artifactId&gt;
              &lt;version&gt;2.3.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;jstl&lt;/artifactId&gt;
              &lt;version&gt;1.2&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;!-- Testing dependencies --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
              &lt;version&gt;${springframework.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.testng&lt;/groupId&gt;
              &lt;artifactId&gt;testng&lt;/artifactId&gt;
              &lt;version&gt;${testng.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mockito&lt;/groupId&gt;
              &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
              &lt;version&gt;${mockito.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.h2database&lt;/groupId&gt;
              &lt;artifactId&gt;h2&lt;/artifactId&gt;
              &lt;version&gt;${h2.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;dbunit&lt;/groupId&gt;
              &lt;artifactId&gt;dbunit&lt;/artifactId&gt;
              &lt;version&gt;${dbunit.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.2&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;source&gt;${java.version}&lt;/source&gt;
                          &lt;target&gt;${java.version}&lt;/target&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
                      &lt;version&gt;2.4&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;warSourceDirectory&gt;src/main/webapp&lt;/warSourceDirectory&gt;
                          &lt;warName&gt;Spring4MVCHibernateDemo&lt;/warName&gt;
                          &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
  
          &lt;finalName&gt;Spring4MVCHibernateDemo&lt;/finalName&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <h1>Additional logs:</h1>
  
  <h2><a href="http://pastebin.com/V6m0wxuL" rel="nofollow"><code>mvn -X clean install</code></a></h2>
  
  <hr>
  
  <p>There was a warning about <code>hibernate.properties</code> being not found</p>
  
  <pre><code>INFO: HHH000206: hibernate.properties not found
  </code></pre>
  
  <p>but in the tutorial this was set via </p>
  
  <pre><code>@PropertySource(value = { "classpath:application.properties" })
  </code></pre>
  
  <p>wherein <code>application.properties</code> was saved under <code>/Java Resources/src/main/resources</code>.</p>
  
  <p>Also I tried having MySQL running and not running during Tomcat run but this did not help either.</p>