Grails : No domain class found for name domain-class-name . Please try again and enter a valid domain class name
Sometimes, even if you create domain objects in grails you get the error that No domain class found.
I am not sure why this happens because I am new to Grails and still learning. But the following steps work for me
i) Stop all the running grails app ctrl+C
ii) grails clean
iii) Now try grails generate-all domain-class-name
This generally works for me. I will update this post if I find the root cause of the problemSom
2 Comments »
Leave a comment
-
Archives
- October 2009 (2)
- September 2009 (3)
- August 2009 (2)
- July 2009 (1)
- June 2009 (2)
- May 2009 (3)
- April 2009 (8)
- February 2009 (2)
- December 2008 (1)
- November 2008 (3)
- October 2008 (1)
- January 2008 (8)
-
Categories
-
RSS
Entries RSS
Comments RSS

Thank you! I really can’t understand the error or the fix… but the fix worked!
I also did not understande fully the reason for that. Anyway, stopping app and running grails clean doesn’t hurt.