Questions tagged [grails]

Grails is an Open Source, full stack, web application framework that uses the Groovy programming language (which is in turn based on the Java virtual machine (JVM) and Java). The framework is oriented around high-productivity application development by following the "coding by convention", and uses common Java technologies such as Hibernate and Spring.

Grails is a coding-by-convention framework that leverages well-established frameworks (, , ) to allow programmers to quickly develop web applications.

It touts features such as a zero-XML configuration and a typical web-application architecture.

Grails applications are mainly written in , a dynamic language with strong interoperability with Java and features similar to other languages , , and

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

Version History:

Latest stable version

Related tags:

  • - Grails object relational mapping implementation, backed by
  • - Groovy Server Pages, the Grails template mechanism
  • - The programming language Grails uses

Online resources:

29868 questions
6
votes
2 answers

Controller @Mixin just works after recompile of running app

Within my latest grails 2.3.0 project I'm using the @Mixin annotation to mixin a helper class to keep my controller more DRY. The mixin is just working if a made some changes within the controller to force a recompile of the controller. After the…
aiolos
  • 4,637
  • 1
  • 23
  • 28
6
votes
1 answer

Grails: is it possible to exclude a plugin dependency of another plugin?

I have a grails 2.2.2 app, and have decided to use cache-ehcache plugin. The problem is that this plugin depends on the cache plugin with version 1.0.0 and my application has the cache plugin version 1.0.1 (i think it is the default for grails…
Pma
  • 1,063
  • 1
  • 16
  • 30
6
votes
5 answers

How do I make grails choose the right JDK?

I'm using Mac OSX 10.8.5 with Oracle's Java 1.7 installed in addition to the mac's 1.6. I have my JAVA_HOME set and the JAVA_HOME/bin in the front of my path. When I run a grails compile from the command line I can see it's choosing the Java 1.6…
kennbrodhagen
  • 4,258
  • 2
  • 26
  • 21
6
votes
1 answer

When to decide to change the scope of a Grails controller

Default scope for Grails controller is prototype i.e. a new controller will be created for each request (recommended for actions as Closure properties) Two more scopes are supported by controllers: session - One controller is created for the scope…
monda
  • 3,809
  • 15
  • 60
  • 84
6
votes
3 answers

What happens when dbCreate is not specified?

According to the official Grails documentation, it is recommended NOT to specify the dbCreate property in production. So, what happens in that case? Will Grails do anything, such as validation, when the production war file is initially loaded on the…
JBT
  • 8,498
  • 18
  • 65
  • 104
6
votes
1 answer

Inserting values into grails createlink params on page creation

I've got a list view and for each line I want a link to another list view showing the related results. The createlink line I've finally managed to construct looks like this
MorkPork
  • 844
  • 3
  • 20
  • 41
6
votes
1 answer

Execute a Quartz Job with a Trigger from a Controller

I can run a cron from a static trigger from within the job folder and it will execute, but when I try to fire a trigger from my controller it just plain fails...What am I missing? ERROR CODE: No signature of method: static…
Tyler Rafferty
  • 3,391
  • 4
  • 28
  • 37
6
votes
2 answers

How do you properly bind a list of objects into a Grails command?

I'm trying to figure out how to deserialize and validate nested objects in JSON request into a Grails 2.1.1 command object. Currently I have a command object in my controller that has a few basic properties and then list of domain objects, protected…
James McMahon
  • 48,506
  • 64
  • 207
  • 283
6
votes
1 answer

What are default JVM options used by grails run-app

According to this page: http://grails.github.io/grails-howtos/en/performanceTuning.html#s3, the grails run-app command will provide some options to the JVM itself, such as -XX:MaxPermSize. So, my question is, what options are provided by the grails…
JBT
  • 8,498
  • 18
  • 65
  • 104
6
votes
2 answers

Error creating bean with name 'transactionManagerPostProcessor' while deploying grails application on tomcat

I am trying to deploy my grails(2.2.1) application on tomcat 7.0.42. So I followed the steps as given in this link from grails website. But when I try to start the application from Tomcat Web Application Manager, I see the following error log on the…
rahulserver
  • 10,411
  • 24
  • 90
  • 164
6
votes
2 answers

GORM where query on an embedded object

I have domain classes A and B as follows: class A { String prop1 String prop2 B prop3 static embedded = ['prop3'] } class B { String prop4 String prop5 } When I want to query like this: def q = A.where { prop3.prop4 ==…
Ivan Klaric
  • 413
  • 1
  • 4
  • 12
6
votes
1 answer

GORM: one-to-one table mapping using string as a key

I'm trying to create a pair of GORM domain objects with a one-to-one mapping with the caveat that the key between the two tables is not a long, but instead a UUID string/varchar. I've looked all over for discussions on how to do this in…
6
votes
1 answer

Handling Concurrent Modifications in Grails (GORM) while avoiding Stale Object Exceptions

I have reached an issue in Grails which I think could be a potential issue with how concurrency is handled; and I am unsure of how to best handle this (or if there is a solution / practice already in place I can adapt). Background My Grails…
chrisburke.io
  • 1,497
  • 2
  • 17
  • 26
6
votes
1 answer

Grails - java.lang.NoClassDefFoundError: _PluginDependencies_groovy$_run_closure1

I am just setting up Grails on my pc and following the reference http://grails.org/doc/latest/guide/gettingStarted.html#creatingAnApplication The below command, gives me error. Please help. C:\Users\jjayarman>grails create-app helloworld…
Jay
  • 9,189
  • 12
  • 56
  • 96
6
votes
4 answers

Grails security

Which is the best security solution for grails among acegi, jsecurity and Stark security?
Joshua Kamau