History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-1923
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Graeme Rocher
Reporter: Matt DeHoust
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Grails

Standalone war cannot find hibernate.cfg.xml because it is not in the classpath

Created: 01/Dec/07 09:01 AM   Updated: 03/Dec/07 04:43 AM
Component/s: Configuration
Affects Version/s: 1.0-RC2
Fix Version/s: 1.0-RC2

Time Tracking:
Not Specified

Environment: JBoss 4.0.2 with exploded war deployment


 Description  « Hide
When grails packages the war it places hibernate.cfg.xml under WEB-INF/classes/hibernate. Hibernate expects to find hibernate.cfg.xml in the classpath and doesn't see it. Thus, grails does not detect my Java domain classes.

If I copy the hibernate.cfg.xml to WEB-INF/classes, then it works.

Either grails should place the hibernate.cfg.xml in WEB-INF/classes, or tell Hibernate where to find it.

This issue started life on the mailing list:
http://www.nabble.com/MissingMethodException-on-GORM-dynamic-methods-for-Java-domain-classes-tf4926322.html



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.