This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Comment

I first created the domain class using the grails create-domain-class command in the windows command prompt. I then opened up the .groovy file that was created and edited it. After that I created the controller through the windows command prompt with grails create-controller. I then opened up the controller file created and edited it.

Comment

I've also noticed that the controller does not appear on the Available Controllers list after the project builds. If I make any change to the controller file then save it I will get the following error:

Comment

So you have other domain classes that you can scaffold fine? If so, that would indicate issues with the domain class definition. Perhaps its name. Try a different class name, such as ProgType. If that doesn't work, try adding this line to your logging configuration:

Code:

debug 'org.codehaus.groovy.grails.orm.hibernate'

You'll have to remove that package from the 'error' or 'warn' line at the same time.

Comment

Have you tried removing your 'target' directory and possibly recreating the ProgramType domain class? All the above errors mean the same thing: Grails is not seeing ProgramType as a domain class. Is there no difference between it and the other domain classes?