• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

netbeans grails def new not found, yet grails without netbeans can fin def new

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am running the tutorial creating a Book and Author db. The bootstrap is creating data for the Book table. IN Netbeans6.9.1 I get the error in the Bootstrap.groovy file that trying to create data in the Book table The data does not show. When I run a grails project (not in Netbeans plugin ) the def new Book is created and the data is shown in the table list.
============================================
class BootStrap {
def init = { servletContext ->
new Book(author:"Stephen King",title:"The Shining").save()
}




def destroy = {
}

}
===========================
error is at "new"
What is wrong? with my Netbeans.
 
reply
    Bookmark Topic Watch Topic
  • New Topic