Grails 3 is the next major version of the Grails framework. This tag can/should be used with all Grails 3.x version so that the users on StackOverflow don't have to filter each specific Grails version (for example, 3.1.10, 3.2.0-m2) and they can filter every question which is related to Grails 3.
Questions tagged [grails3]
289 questions
2
votes
0 answers
Grails3/groovy error iterating a list where index 0 was removed
this is my first grails project, so sorry if it's a newbish question but I didn't find anything about it.
I'm using Grails 3.3.2 with mongoDB and the calls to the DB are made with GORM.
I created a method that receives a list of users to create a…

Diogo Filipe
- 21
- 3
2
votes
1 answer
How to make cascade to false for all grails domains at global level
How to make cascade to false for all grails domains at global level.
Also i would like to have the option to set it on specific save operation.

Kapil Arora
- 151
- 1
- 12
2
votes
2 answers
Any way in Grails 3 for hasOne to do a lazy fetch?
Grails 3.2.5. Is see from my sql dump that the hasOne relationship does an eager fetch. This used to be the case back in prior versions of Grails, and the behavior could not be overridden. Is this still the case? What is the recommended model…

Jay
- 173
- 10
2
votes
0 answers
Grails3, Hibernate5 - Proxy parent objects can't resolve child accessors?
I recently upgraded my grails 3.2.10 application to hibernate5 (GORM 6.1.8) from hibernate 4 (GORM 6.1.3). With this upgrade I've started to see some strange (incorrect?) behavior from Proxy objects, I'm wondering if I'm doing something wrong. …

Trebla
- 1,164
- 1
- 13
- 28
2
votes
0 answers
Aws Elastic Beanstalk (single docker) set jvm Xms and Xmx (JAVA_OPTS)
We are running our Grails 3 application (build on Spring Boot) on AWS Elastic Beanstalk singe docker container.
Our docker file looks like:
FROM java:8-jre
ADD build/libs/app-*.war app.war
ENTRYPOINT…

kuceram
- 3,795
- 9
- 34
- 54
2
votes
0 answers
Grails 3.x - Forked Execution
i am Migrating a project from grails 2.4 to grails 3.3
in grails 2.4 we have the following forked execution configuration:
grails.project.fork = [
// configure settings for compilation JVM, note that if you alter the Groovy version forked…

Tom Boldan
- 208
- 1
- 9
2
votes
1 answer
Grails 3 plugin using properties from application.yml
I am creating a plugin using Grail 3 (3.2.11). My plugin needs to access different properties (e.g. URLs) for each environment (e.g. development, staging, production). When writing a Grails application I add the properties to the application.yml…

Joe
- 1,219
- 8
- 13
2
votes
1 answer
Auth0 + Grails 3 + Spring Security
my project is client app (angular4) and api server (grails3) and we would like to start using Auth0. If i got it right, with usage of JWT i can have "session-less" API architecture with following flow:
1) user in client app login (for example with…

Mato.Duris
- 253
- 1
- 4
- 15
2
votes
1 answer
How to configure settings.groovy in order to use several repositories?
I just installed Grails 3.3.0 and I'd like to configure some custom repositories in the ${HOME}/user/.grails/settings.groovy file.
This is what I've done so far (Real URLs have been replaced for ):
grails {
profiles {
repositories…

lealceldeiro
- 14,342
- 6
- 49
- 80
2
votes
0 answers
ehcache leaving hundreds of "open files" crashing tomcat
First of all, I apologize if I use the wrong terminology here, I'm not particularly familiar with the inner workings of caching or Linux file systems. For that matter, I may be misunderstanding the problem and barking up the wrong tree.
Currently…

Trebla
- 1,164
- 1
- 13
- 28
2
votes
2 answers
Grails 3 interceptors intercepts static resources(resolves 'js' and 'css' file path as controller, action) and executes before() call on it
I am using grails 3.2.7.
Can anyone please tell me how to prevent Interceptor to intercept static resources?
it's currently intercepting
as
controllerName == js, actionName == apps, params ==…

Charu Jain
- 852
- 1
- 7
- 18
2
votes
3 answers
Grails 3.3.0.RC Deployment Issue on Tomcat
When I try to deploy my application after upgrade from 3.2.9 to 3.3.0.RC1 (which works fine in my local environment) I occur following error message.
I tried in tomcat 8.0.20, 8.0.28, and 8.5.16. Does anybody has an idea what possibly went wrong?…

Kloker
- 499
- 4
- 14
2
votes
0 answers
Deleting children in parent-child relationship on update of parent using rest controller (grails.rest.Resource)
I'm using the Grails 3 grails.rest.Resource annotation in the following way:
@Resource(uri='/parent')
class Parent {
static hasMany = [children: Child]
}
class Child {
String property1
String property2
static belongsTo = [parent:…

Mike
- 33
- 3
2
votes
2 answers
How to use ajax in Grails 3.2.3
I worked in grails 2.4.7 .Recently i shifted to grails 3.Previously i used grails custom tag for ajax call like remoteFunction, formRemote .This tags are not available for recent version.Can any one tell me the best way of using ajax for recent…

Sayem
- 653
- 4
- 7
- 20
2
votes
2 answers
In grails PromiseMap, how to block current thread, for all of the concurrent tasks to complete and return their results?
I need to asynchronously fetch cats, dogs and mice and then do some post-processing. Here is something what I am doing:
Promise
- > fetchCats = task {}
Promise
- > fetchMice = task { }
Promise
- > fetchDogs = task {}
List…

Manish Kapoor
- 488
- 3
- 16