Grails
  1. Grails
  2. GRAILS-10183

Spring loaded causes Grails to fail to bootstrap using Oracle JDK 1.7u25

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: 2.1.6, 2.2.3, 2.3-M2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 12.04, Oracle Java 7u25

      Description

      Hello,
      All my grails projects fails to bootstrap after upgrade to oracle java 7u25. I tried to revert to OpenJDK 1.6, but this error still remains. My first thought was it has something to do with hibernate dependency problem in one of the installed plugins - http://pastebin.com/rHyEatrm and I also checked everything out in dependency report (attached), but there is nothing suspicious.

      EDIT: I forgot to update JAVA_HOME so it was still pointed to a directory with Oracle JDK 7u25. After changing it to openjdk directory this issue has gone. So this is purely Oracle Java related issue
      Error details:

      $ grails run-app
      | Compiling 47 source files
      
      | Compiling 59 source files
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      | Running Grails application
      
      Configuring Spring Security Core ...
      ... finished configuring Spring Security Core
      | Error 2013-06-19 16:03:18,689 [localhost-startStop-1] ERROR context.GrailsContextLoader  - Error initializing the application: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
      Message: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          Line | Method
      ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
      |    166 | run       in java.util.concurrent.FutureTask
      |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
      |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
      ^    724 | run . . . in java.lang.Thread
      
      Caused by BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
      ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
      |    166 | run       in java.util.concurrent.FutureTask
      |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
      |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
      ^    724 | run . . . in java.lang.Thread
      
      Caused by BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
      ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
      |    166 | run       in java.util.concurrent.FutureTask
      |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
      |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
      ^    724 | run . . . in java.lang.Thread
      
      Caused by BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
      ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
      |    166 | run       in java.util.concurrent.FutureTask
      |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
      |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
      ^    724 | run . . . in java.lang.Thread
      
      Caused by BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
      ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
      |    166 | run       in java.util.concurrent.FutureTask
      |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
      |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
      ^    724 | run . . . in java.lang.Thread
      
      Caused by CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
      ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
      |    166 | run       in java.util.concurrent.FutureTask
      |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
      |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
      ^    724 | run . . . in java.lang.Thread
      

      Of course, I tried to grails clean and tried to remove the whole ~/.grails directory. Nothing changed.

        Issue Links

          Activity

          Hide
          gnu_andrew added a comment -

          The problem here is that:

          • There hasn't been a release of OpenJDK 7u since u6 in August 2012: http://jdk7.java.net/source.html
          • Oracle does not release security updates for OpenJDK, so this version is unusable (it's missing 100s of security fixes)
          • We do our best to try and make sense of this downstream at IcedTea and provide something distros can package, but in this case, what Oracle has tagged as u25 in OpenJDK is not what they released as the proprietary u25 release. It is missing the 8014925 fix mentioned above.
          • 2.4.1 does have this fix as it's based on the (still unreleased) u40. Now I know about this fix, I can also backport it to the 2.3.x tree and make a 2.3.13 release with it in. But this cherry picking of fixes indicates a serious breakdown in the release process of OpenJDK 7u.

          See this OpenJDK thread; http://mail.openjdk.java.net/pipermail/jdk7-dev/2013-August/002326.html.

          Show
          gnu_andrew added a comment - The problem here is that: There hasn't been a release of OpenJDK 7u since u6 in August 2012: http://jdk7.java.net/source.html Oracle does not release security updates for OpenJDK, so this version is unusable (it's missing 100s of security fixes) We do our best to try and make sense of this downstream at IcedTea and provide something distros can package, but in this case, what Oracle has tagged as u25 in OpenJDK is not what they released as the proprietary u25 release. It is missing the 8014925 fix mentioned above. 2.4.1 does have this fix as it's based on the (still unreleased) u40. Now I know about this fix, I can also backport it to the 2.3.x tree and make a 2.3.13 release with it in. But this cherry picking of fixes indicates a serious breakdown in the release process of OpenJDK 7u. See this OpenJDK thread; http://mail.openjdk.java.net/pipermail/jdk7-dev/2013-August/002326.html .
          Hide
          Luis Arias added a comment -

          Note that the springloaded jar mentioned in Graeme's comment above needs to be renamed to springloaded-core-1.1.3.jar for reloading to work in Intellij IDEA.

          Show
          Luis Arias added a comment - Note that the springloaded jar mentioned in Graeme's comment above needs to be renamed to springloaded-core-1.1.3.jar for reloading to work in Intellij IDEA.
          Hide
          Kim Betti added a comment -

          I just got this trying to start a fresh project using Grails 2.2.4, Java 1.7.0_25 on Ubuntu 10.04.

          Show
          Kim Betti added a comment - I just got this trying to start a fresh project using Grails 2.2.4, Java 1.7.0_25 on Ubuntu 10.04.
          Hide
          Rakon Thundarus added a comment -

          It appears that this bug has reappeared for the latest version 2.3.3.

          I have tried this on both Ubuntu 13.04 & 13.10 fresh install with openjdk-7-jdk package. I created a new empty project and just did a run-app on it.

          For now I'm using the fixed recommend to get it going:
          BuildConfig.groovy: grails.project.fork = false
          grails -noreloading run-app

          Show
          Rakon Thundarus added a comment - It appears that this bug has reappeared for the latest version 2.3.3. I have tried this on both Ubuntu 13.04 & 13.10 fresh install with openjdk-7-jdk package. I created a new empty project and just did a run-app on it. For now I'm using the fixed recommend to get it going: BuildConfig.groovy: grails.project.fork = false grails -noreloading run-app
          Hide
          Frank Scholten added a comment -

          I am trying out the helloworld example from the docs and I think I am running into this issue. I run Grails 2.3.4 with OpenJDK 1.7.0_25.

          I get the following stacktrace after run-app in the grails shell.

          grails> run-app
          | Running Grails application
          | Error 2013-12-28 14:50:11,730 [localhost-startStop-1] ERROR context.GrailsContextLoader  - Error initializing the application: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          Message: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
              Line | Method
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          | Error 2013-12-28 14:50:11,773 [localhost-startStop-1] ERROR context.GrailsContextLoader  - Error initializing Grails: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          Message: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
              Line | Method
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          | Error 2013-12-28 14:50:11,783 [localhost-startStop-1] ERROR [localhost].[/helloworld]  - Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
          Message: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
              Line | Method
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          Caused by CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]!
          ->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
          - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
          |    166 | run       in java.util.concurrent.FutureTask
          |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
          |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
          ^    724 | run . . . in java.lang.Thread
          | Error 2013-12-28 14:50:11,792 [localhost-startStop-1] ERROR core.StandardContext  - Error listenerStart
          | Error 2013-12-28 14:50:14,730 [localhost-startStop-1] ERROR core.StandardContext  - Context [/helloworld] startup failed due to previous errors
          | Server running. Browse to http://localhost:8080/helloworld
          | Application loaded in interactive mode. Type 'stop-app' to shutdown.
          | Enter a script name to run. Use TAB for completion: 
          grails> 
          

          If I change the BuildConfig.groovy file as suggested and run with -noreloading the app starts normally and I get the normal Grails scaffolded page in my browser.

          Show
          Frank Scholten added a comment - I am trying out the helloworld example from the docs and I think I am running into this issue. I run Grails 2.3.4 with OpenJDK 1.7.0_25. I get the following stacktrace after run-app in the grails shell. grails> run-app | Running Grails application | Error 2013-12-28 14:50:11,730 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! Message: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! Line | Method ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread | Error 2013-12-28 14:50:11,773 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing Grails: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! Message: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! Line | Method ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread | Error 2013-12-28 14:50:11,783 [localhost-startStop-1] ERROR [localhost].[/helloworld] - Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener Message: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! Line | Method ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by BeanCreationException: Error creating bean with name 'sessionFactory': Cannot resolve reference to bean 'hibernateProperties' while setting bean property 'hibernateProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by BeanCreationException: Error creating bean with name 'hibernateProperties': Cannot resolve reference to bean 'dialectDetector' while setting bean property 'properties' with key [hibernate.dialect]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by BeanCreationException: Error creating bean with name 'dialectDetector': Invocation of init method failed; nested exception is org.codehaus.groovy.grails.orm.hibernate.exceptions.CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread Caused by CouldNotDetermineHibernateDialectException: Could not determine Hibernate dialect for database name [H2]! ->> 334 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . in java.lang. Thread | Error 2013-12-28 14:50:11,792 [localhost-startStop-1] ERROR core.StandardContext - Error listenerStart | Error 2013-12-28 14:50:14,730 [localhost-startStop-1] ERROR core.StandardContext - Context [/helloworld] startup failed due to previous errors | Server running. Browse to http: //localhost:8080/helloworld | Application loaded in interactive mode. Type 'stop-app' to shutdown. | Enter a script name to run. Use TAB for completion: grails> If I change the BuildConfig.groovy file as suggested and run with -noreloading the app starts normally and I get the normal Grails scaffolded page in my browser.

            People

            • Assignee:
              Andy Clement
              Reporter:
              Artem Zhirkov
            • Votes:
              5 Vote for this issue
              Watchers:
              28 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development