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