Questions tagged [grails-2.0]

Grails is a web application framework that uses Groovy and Java. The framework is oriented around high-productivity application development, and uses common Java technologies such as Hibernate and Spring.

Grails is a coding-by-convention framework that leverages well-established Java frameworks (Spring, Hibernate) to allow programmers to quickly develop web applications. It touts features such as a zero-XML configuration and a typical web-application MVC architecture.

Along with its core, Grails has a plugin architecture and library that can provide developers with common web application features like Security and dynamic UI tools.

Grails 2.0 adds (Not an exhaustive list):

  • Interactive Mode and Console enhancements
  • JVM Reloading Agent (Vs. Class Loaders)
  • New Test Report and Documentation Templates
  • Enhanced Error Reporting and Diagnosis
  • H2 Database and Console
  • Plugin Usage Tracking
  • Dependancy Resolution Improvements
  • Groovy 1.8 Support
  • HTML5 Scaffolding
  • jQuery by Default
  • Database Migrations
  • Database Reverse Engineering
  • Unit Test Scaffolding

More information:

See for more information.

1289 questions
65
votes
6 answers

How to access Grails configuration in Grails 2.0?

I have obtained the latest Grails 2.0 milestone, and I am seeing a deprecation warning for the ConfigurationHolder class: org.codehaus.groovy.grails.commons.ConfigurationHolder The deprecation message simply says "Use dependency injection instead"…
Polaris878
  • 33,681
  • 35
  • 107
  • 140
30
votes
6 answers

How do I unit test a Grails service that uses a converter?

I have a Grails service that sends out e-mails using a 3rd-party service by doing a HTTP call: class EmailService { def sendEmail(values) { def valueJson = values as JSON ... // does HTTP call to 3rd party service } } I've…
Daniel T.
  • 33,336
  • 31
  • 125
  • 191
27
votes
4 answers

Implement a REST API in a Grails app

I was wondering what would be the best approach to make a Grails app offer a RESTful API (some CRUD actions mainly) that can be used by a web service, e.g. when you want to build a corresponding iOS app to your browser-based app or anything else. I…
Sebastian Wramba
  • 9,837
  • 8
  • 36
  • 56
26
votes
7 answers

IntelliJ 12 Grails 2.1 Configuration - Grails SDK not configured

I feel like I'm missing something simple at this point. I upgraded to grails 2.1.1 from 1.3.7 while running IntelliJ 10, recently I upgraded to IntelliJ 12 and imported all settings. Somehow in the project in IntelliJ 12, I have no grails SDK. …
Trebla
  • 1,027
  • 1
  • 11
  • 28
23
votes
2 answers

Grails 2.3.4 - Error executing script Clean: _GrailsClasspath_groovy$_run_closure1

I am using eclipse kepler and after shutting down my computer and turning it on again I am getting this error message: grails run-app --stacktrace |Loading Grails 2.3.4 |Configuring classpath . |Environment set to development .Error | Error…
Carol.Kar
  • 4,830
  • 22
  • 98
  • 199
21
votes
10 answers

How to include jquery.js in Grails?

I have a Grails 2.0.0 project that was created using grails create-app. In my HTML and GSP files, I'm trying to include jquery.js. I've tried all of the following without success: