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.

1293 questions
65
votes
7 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"…
DigitalZebra
  • 39,494
  • 39
  • 114
  • 146
32
votes
7 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.
  • 37,212
  • 36
  • 139
  • 206
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
  • 10,087
  • 8
  • 41
  • 58
27
votes
8 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,164
  • 1
  • 13
  • 28
22
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,581
  • 36
  • 131
  • 264
20
votes
2 answers

grails 2.0 - correct use of serverURL for production?

Grails 2.0 changed with the way it uses grails.serverURL for development and test environments (as described in the manual). However, I've had several problems with serverURL in regard to production deployment on Tomcat. There seem to be several…
Ray
  • 5,885
  • 16
  • 61
  • 97
20
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: