Questions tagged [grails-3.1]

Version 3.1 of the grails Open Source web application framework that uses the Spring, Hibernate, Groovy programming language, which is in turn based on the Java virtual machine (JVM) and Java. Use it in addition to the grails and grails-3 tags in specific question to grails 3.1.

From the Grails documentation:

What's new in Grails 3.1?

Grails 3.1 is at the milestone stage, but already includes the following new features.

Spring Boot 1.3 and Spring 4.2

Grails 3.1 has been upgraded to Spring Boot 1.3 and Spring 4.2.

Improvements to Grails 3 Profiles

Profile Publishing and Repositories

The following improvements are available in Grails profiles:

  • Profiles are now published as regular JAR files to any Maven compatible repository (Artifactory, Nexus etc.).
  • Additional profiles can be created easiy with the new create-profile command.
  • Profiles can now contribute to the generation of the build
  • Profiles can now have one or many features

For more information see the new section on Profiles in the user guide.

175 questions
1
vote
1 answer

Following symbolic link in Grails 3

In Grails 2.x, to allow following symbolic links, we can add following in the scripts/_Events.groovy: eventConfigureTomcat = { tomcat -> def ctx = tomcat.host.findChild("") ctx.allowLinking = true // Follow soft links } How can we…
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
1
vote
2 answers

Grails 3.1 - Multiple inserts into domain

When adding a single Book, you can just do: String author = 'John Smith' String title = 'First Book' def book = new Book(author: author, title: title) book.save(flush: flush, insert: true) Say I want to add a number of books at once, for instance…
Anonymous1
  • 3,877
  • 3
  • 28
  • 42
1
vote
1 answer

grails 3 mail plugin html view giving error when called from Bootstrap or Job

I have a service that uses grails mail plugin @Transactional @Slf4j class ExpireAlertService { def mailService ... ... void sendExpiryMails() { def list = SomeDomain.list() list.each { log.debug('Sending Mail…
mzzzzb
  • 1,422
  • 19
  • 38
1
vote
2 answers

grails 3 cache - ehcache configuration

I use Grails 3.1.8. How can I set timeToLiveSeconds property? plugin configuration suggests me to set: grails.cache.config = { cache { … } defaultCache { maxElementsInMemory 10000 eternal false timeToIdleSeconds 120 …
Aleksey Kozel
  • 319
  • 1
  • 9
  • 16
1
vote
0 answers

Filters are not Working in grails3

I've SecurityFilters.groovy in my application, basically it used to handle every request and does the some logic accordingly..it was wrking perfectly in grails2. but after migrating to grails3 that filter is not working. I even tried registering in…
naresh
  • 155
  • 1
  • 11
1
vote
1 answer

log is not accessible in normal groovy file of grails3

Migrated grails2 to grails3. In grails2 i used lots of log.info,log.debug statements in side src/main/groovy files. but in grails-3 by default log is not injected. it's giving error like No such property: log for class
naresh
  • 155
  • 1
  • 11
1
vote
1 answer

How to configure SSL in Grails 3.1.6+?

We recently changed from using standalone Tomcat 8 containers to using the embedded Tomcat 8 container. We are having some trouble getting SSL to work on Grails 3.1.6 with the embedded container. We had been using the certificateFile approach with…
fcnorman
  • 1,154
  • 9
  • 19
1
vote
1 answer

ElasticSearch plugin causing server to stop in Grails 3.1.6

I'm trying to add ElasticSearch plugin in my Grails 3.1.6 project. I installed plugin as: dependencies { //.. compile 'org.grails.plugins:elasticsearch:1.0.0.2' //..} And configured application.yml as elasticSearch: client: node:…
Yogen Rai
  • 2,961
  • 3
  • 25
  • 37
1
vote
1 answer

Use Logback access with Grails 3 webapp (Springboot) application deployed with java -jar

How do I configure grails 3 which uses logback as the default logging framework to log HTTPrequests of the embedded tomcat just like the tomcat application server does in creating a log-access log file? I know I have to use the logback access…
JohnTheBeloved
  • 2,323
  • 3
  • 19
  • 24
1
vote
1 answer

Grails 3 Taglib: cannot resolve symbol in IntelliJ IDEA

I'm using Grails 3.1.7 with IntelliJ IDEA Ultimate 2016.1. In the project are several custom taglibs. The tags are working as expected, but the view editor shows an error on every tag usage: Is there a way to configure IntelliJ and/or Grails that…
Andreas
  • 380
  • 2
  • 14
1
vote
2 answers

How to get OpenCv to work with Grails 3 using Intellij Idea?

I'm unable to get OpenCV to work with Grails. I have the following error: no opencv_java2413 in java.library.path I've installed the latest OpenCV (2.4.13) in "C:\opencv", and added the following Gradle dependency: compile…
hereForLearing
  • 1,209
  • 1
  • 15
  • 33
1
vote
0 answers

How to set maxPostSize for embedded tomcat using grails 3.1

I'm trying to post Base64 encoded images within one JSON to a grails 3.1.4 backend. When the JSON reached a size greater 2 MB the POST operation fails. The controller won't be called due to a broken connection pipe. I assume that this behavior is a…
aiolos
  • 4,637
  • 1
  • 23
  • 28
1
vote
1 answer

how to create grails project in GGTS using version 3.1.6

I am new to Grail, I have created a small project in Grails 2.4.4 using the GGTS tool, but an unable to create the same project in grails version 3.1.6. It's showing an error like the one below when I create a new poject under version…
jython123
  • 141
  • 1
  • 9
1
vote
1 answer

Can't seem to combine composite IDs in Grails 3

I have the following 2 domain classes class Foo implements Serializable { Long fooId1 Long fooId2 Long hFooId1 Long hFooId2 Foo hFoo Bar bar static mapping = { datasources(['ds1','ds2']) id composite:…
Jackie
  • 21,969
  • 32
  • 147
  • 289
1
vote
1 answer

grails3 Ajax Request Breaking after render as JSON

I am currently migrating my application from grails 2.4.4 to grails 3.1.5 with the grails security Plugin. i am using the grails ajax request plugin to make the ajax calls but getting this error after calling ajax. I am returning an ArrayList of…
JohnTheBeloved
  • 2,323
  • 3
  • 19
  • 24