Configuring Hibernate with grails

9000492

I have created created a Grails application and created the Spring Security plugin set up into It.

When I run the application I get following error. Hibernate folder is empty. Can anyone help me resolve this?

2014-06-20 13:41:26,946 [http-bio-8080-exec-21] ERROR [/GrailsLoginWithSpring].[gsp]  - 
Servlet.service() for servlet [gsp] in context with path [/GrailsLoginWithSpring] threw exception
Message: org.springframework.beans.factory.BeanCreationException: 

Error creating bean with name 'org.grails.internal.SESSION_FACTORY_HOLDER': 
Cannot create inner bean '(inner bean)#3720a15d' of type 
[org.codehaus.groovy.grails.orm.hibernate.ConfigurableLocalSessionFactoryBean] 
while setting bean property 'sessionFactory'; 
nested exception is org.springframework.beans.factory.BeanCreationException: 

Error creating bean with name '(inner bean)#3720a15d': Invocation of init method failed; 
nested exception is java.io.FileNotFoundException: class path resource [hibernate.cfg.xml] 
cannot be resolved to URL because it does not exist
gotomanners

Try adding

hibernate {
  reload = false
}

As suggested by Graeme Rocher in this JIRA

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Configuring and injecting Grails services

From Dev

Configuring Grails/Sonar in Eclipse

From Dev

Configuring Hibernate for HQL

From Dev

Configuring Hibernate Search with EntityManager

From Dev

Configuring Camel Routing for Grails 3.0.4

From Dev

Configuring database in grails - handling exception

From Dev

Configuring Hibernate Search with Infinispan and Wildfly

From Dev

configuring hibernate datasource in spring xml

From Dev

Grails stops at "Configuring classpath" even at a helloworld project

From Dev

How to Configuring concurrent execution property as false in grails

From Dev

How to Configuring concurrent execution property as false in grails

From Dev

Grails with MongoDB and Hibernate

From Dev

Hibernate Envers in Grails

From Dev

Grails hibernate dialect

From Dev

Grails/Hibernate Cache unpredictable

From Dev

Hibernate configuring multiple datasources and multiple session factories

From Dev

Datasource configuring in Hibernate 5, Tomcat 8

From Dev

Configuring Infinispan as remote second level cache for Hibernate

From Dev

problems configuring Hibernate with spring boot, CommandLineRunner

From Dev

Error in configuring Spring project with Hibernate JPA

From Dev

How to use Hibernate Spatial in Grails?

From Dev

Hibernate JPA conflict in Grails 2.4.4

From Dev

Mapping with Hibernate Annotations in Grails 3.0.1

From Dev

How to use Hibernate Spatial in Grails?

From Dev

Grails-generated Hibernate Definitions

From Dev

Hibernate 5 Search with Grails 3

From Dev

Am I configuring Hibernate hibernate.cfg.xml file correctly?

From Dev

Configuring Spring Boot Security to use BCrypt password encoding in Grails 3.0

From Dev

Configuring grails datasources with username and password from OS environment

Related Related

  1. 1

    Configuring and injecting Grails services

  2. 2

    Configuring Grails/Sonar in Eclipse

  3. 3

    Configuring Hibernate for HQL

  4. 4

    Configuring Hibernate Search with EntityManager

  5. 5

    Configuring Camel Routing for Grails 3.0.4

  6. 6

    Configuring database in grails - handling exception

  7. 7

    Configuring Hibernate Search with Infinispan and Wildfly

  8. 8

    configuring hibernate datasource in spring xml

  9. 9

    Grails stops at "Configuring classpath" even at a helloworld project

  10. 10

    How to Configuring concurrent execution property as false in grails

  11. 11

    How to Configuring concurrent execution property as false in grails

  12. 12

    Grails with MongoDB and Hibernate

  13. 13

    Hibernate Envers in Grails

  14. 14

    Grails hibernate dialect

  15. 15

    Grails/Hibernate Cache unpredictable

  16. 16

    Hibernate configuring multiple datasources and multiple session factories

  17. 17

    Datasource configuring in Hibernate 5, Tomcat 8

  18. 18

    Configuring Infinispan as remote second level cache for Hibernate

  19. 19

    problems configuring Hibernate with spring boot, CommandLineRunner

  20. 20

    Error in configuring Spring project with Hibernate JPA

  21. 21

    How to use Hibernate Spatial in Grails?

  22. 22

    Hibernate JPA conflict in Grails 2.4.4

  23. 23

    Mapping with Hibernate Annotations in Grails 3.0.1

  24. 24

    How to use Hibernate Spatial in Grails?

  25. 25

    Grails-generated Hibernate Definitions

  26. 26

    Hibernate 5 Search with Grails 3

  27. 27

    Am I configuring Hibernate hibernate.cfg.xml file correctly?

  28. 28

    Configuring Spring Boot Security to use BCrypt password encoding in Grails 3.0

  29. 29

    Configuring grails datasources with username and password from OS environment

HotTag

Archive