I'm try to use "generate-all" command and I had this error message each time I use it : "No domain class found for name User".
I typed this command :
grails generate-all User
I use Grails 2.1.5 so perhaps it works better in last version ;-)
Error :
| No domain class found for name User. Please try again and enter a valid domain
class name
| Error 2013-06-30 13:51:40,907 [Thread-10] ERROR plugins.DefaultGrailsPlugin -
Error configuration scaffolding: Error creating bean with name 'instanceControl
lersApi': Singleton bean creation not allowed while the singletons of this facto
ry are in destruction (Do not request a bean from a BeanFactory in a destroy met
hod implementation!)
Message: Error creating bean with name 'instanceControllersApi': Singleton bean
creation not allowed while the singletons of this factory are in destruction (Do
not request a bean from a BeanFactory in a destroy method implementation!)
Line | Method
->> 722 | run in java.lang.Thread
Solution
grails generate-all racetrack.UserIn fact, my domain class was in a directory named racetrack.
I have the following tree directory : $GRAILS_APPdomain/racetrack/User.java
No comments:
Post a Comment