Techspace

IT happens only in IT

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

June 23, 2009 - Posted by Paras | Grails, Groovy | , | 2 Comments

2 Comments »

  1. Thank you! I really can’t understand the error or the fix… but the fix worked!

    Comment by Eduardo Russo | September 4, 2009 | Reply

    • I also did not understande fully the reason for that. Anyway, stopping app and running grails clean doesn’t hurt. :)

      Comment by Paras | September 5, 2009 | Reply


Leave a comment