{"action":"created","issue":{"url":"https://api.github.com/repos/grails/grails-core/issues/9783","repository_url":"https://api.github.com/repos/grails/grails-core","labels_url":"https://api.github.com/repos/grails/grails-core/issues/9783/labels{/name}","comments_url":"https://api.github.com/repos/grails/grails-core/issues/9783/comments","events_url":"https://api.github.com/repos/grails/grails-core/issues/9783/events","html_url":"https://github.com/grails/grails-core/issues/9783","id":139439754,"number":9783,"title":"GORM: ERROR org.springframework.boot.SpringApplication - Application startup failed","user":{"login":"augrtur","id":17241276,"avatar_url":"https://avatars.githubusercontent.com/u/17241276?v=3","gravatar_id":"","url":"https://api.github.com/users/augrtur","html_url":"https://github.com/augrtur","followers_url":"https://api.github.com/users/augrtur/followers","following_url":"https://api.github.com/users/augrtur/following{/other_user}","gists_url":"https://api.github.com/users/augrtur/gists{/gist_id}","starred_url":"https://api.github.com/users/augrtur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/augrtur/subscriptions","organizations_url":"https://api.github.com/users/augrtur/orgs","repos_url":"https://api.github.com/users/augrtur/repos","events_url":"https://api.github.com/users/augrtur/events{/privacy}","received_events_url":"https://api.github.com/users/augrtur/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grails/grails-core/labels/Awaiting%20Feedback","name":"Awaiting Feedback","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-09T00:53:56Z","updated_at":"2016-03-16T11:20:27Z","closed_at":null,"body":"Getting the following error when trying to start app under IntelliJ on Windows 2012 Server. Also getting this error when deploying as WAR on Tomcat7 under Amazon Linux.\r\n\r\nRunning under IntelliJ in CentOS7 is fine.\r\n\r\n\r\n    ERROR org.springframework.boot.SpringApplication - Application startup failed\r\n    Caused by:   org.springframework.beans.factory.BeanCreationException: 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': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.grails.orm.hibernate.cfg.CollectionType.<init>(Ljava/lang/Class;Lorg/grails/orm/hibernate/cfg/GrailsDomainBinder;)V\r\n\r\n\r\n\r\nThere is a Stackoverflow mention of this issue:\r\n\r\nhttp://stackoverflow.com/questions/35287393/grails-error-org-springframework-boot-springapplication-application-startup-f\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/grails/grails-core/issues/comments/197272014","html_url":"https://github.com/grails/grails-core/issues/9783#issuecomment-197272014","issue_url":"https://api.github.com/repos/grails/grails-core/issues/9783","id":197272014,"user":{"login":"KapudanPasha","id":6746360,"avatar_url":"https://avatars.githubusercontent.com/u/6746360?v=3","gravatar_id":"","url":"https://api.github.com/users/KapudanPasha","html_url":"https://github.com/KapudanPasha","followers_url":"https://api.github.com/users/KapudanPasha/followers","following_url":"https://api.github.com/users/KapudanPasha/following{/other_user}","gists_url":"https://api.github.com/users/KapudanPasha/gists{/gist_id}","starred_url":"https://api.github.com/users/KapudanPasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KapudanPasha/subscriptions","organizations_url":"https://api.github.com/users/KapudanPasha/orgs","repos_url":"https://api.github.com/users/KapudanPasha/repos","events_url":"https://api.github.com/users/KapudanPasha/events{/privacy}","received_events_url":"https://api.github.com/users/KapudanPasha/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T11:20:27Z","updated_at":"2016-03-16T11:20:27Z","body":"Steps to re-create\r\n\r\n1. create-app gorm-hibernate51-error\r\n2. replace build.gradle with attached (it uses Hibernate 5.1)\r\n3. war\r\n4. Deploy to Tomcat 8 or 9\r\n5. Tomcat fails to deploy with error above\r\n\r\nEnvironment - Windows 7 64-bit, jdk1.8.0_71, grails-3.1.3, gradle 2.9\r\n\r\n[build.gradle.zip](https://github.com/grails/grails-core/files/175816/build.gradle.zip)"}}