Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in creating CRUD Controller and view

 
Ramesh Kumar Swarnkar
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I am newbie to grails technology.
I have generated the domain class called 'Player' by using the command:

I can see the the domain class 'Player.groovy' is present in 'C:\RAExcepManage\grails-app\domain\raexcepmanage' folder.

But, while generating CRUD Controllers and Views for my Application by using the command:-

it says that
"No domain class found for name Player. Please try again and enter a valid domain class name".

I could not understand why it is not able to read the domain class which is alreay in location ''C:\RAExcepManage\grails-app\domain\raexcepmanage" ?

I even checked the location 'C:\RAExcepManage\target\classes\raexcepmanage' and i can see the compile class for Player is availabel there, ie. Player.class.

Can some body give some pointer to know what is the problem here why it does not generating the CRUD Controllers and Views here ?

regards,
Ramesh
 
Ramesh Kumar Swarnkar
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it ..
it needs to have the complete package name, so it worked by invking :

Thanks Tarun !!



rgds,
Ramesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic