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
0
votes
0 answers

Exclude Grails 3 plugins before packing war file

I want to exclude some Grails 3.1.9 Plugins for deploying, because i do not need them in production. I know i can use provided instead of compile but then all dependencies of this Plugin are also excluded even if a other plugin have the same…
se-jaeger
  • 111
  • 1
  • 5
0
votes
1 answer

Grails 3 war -Inline plugin issues

I am trying to war the grails 3.1.9 application with inline plugin , its throwing an error saying "java.lang.IllegalStateException: Unable to rename 'C:\test\grails_demo\plugins\grails_demo_plugin\build\libs\grails_demo_plugin-0.1.jar' to…
vicky
  • 2,119
  • 4
  • 18
  • 32
0
votes
1 answer

Grails 3 Spring Security UI Forgotten Password blank URL & user

I have customised grails.plugin.springsecurity.userLookup.usernamePropertyName = "email" but the default rendering behaviour for the email body will fail with: No such property: username for class Therefore I customised emailBody in my…
Alex
  • 8,093
  • 6
  • 49
  • 79
0
votes
1 answer

Grails POST data via Jquery AJAX

App info: Grails 3.1.8 Jquery 2.2.0 I have a Grails form which I would like to POST via AJAX. I am able to do this and the data does persist in the database. Code to post is below: $('#insertSchool').submit(function () { …
kulsoompatel
  • 220
  • 1
  • 3
  • 18
0
votes
2 answers

Running npm run watch command in gradle

I'm new to both gradle and npm and I'm trying to get a grails3 - angularjs2 example application up and running. This is the application https://github.com/agileorbit/grails3-angular2-starter When I try and run the application, I get the following…
Code Junkie
  • 7,602
  • 26
  • 79
  • 141
0
votes
1 answer

Grails 3 error when packaging aplication- Could not resolve all dependencies for configuration ':gspCompile'

App Info: Grails Version: 3.1.8 Groovy Version: 2.4.6 JVM Version: 1.8.0_60 I'm running grails package to get runnable archives however I come across the following error: Could not resolve all dependencies for configuration ':gspCompile'. …
kulsoompatel
  • 220
  • 1
  • 3
  • 18
0
votes
1 answer

Grails 3: Cant save entity from JMS queue

Im using the JMS plugin 'org.grails.plugins:jms:2.0.0.M1' in my grails 3.1 project. I put a message on the queue using the jmsService: jmsService.send("msgPending", [eventType: it.msgEventType.toString(), msgEvent: messageXml]) { Message msg…
matt_roo
  • 415
  • 3
  • 14
0
votes
2 answers

Grails 3.1.9 : POST not recognized

I'm using Grails 3.1.9 with the rest-api profile. After creating models and controllers (by grails CLI) and started the application. I cannot create POST by Postman/Curl etc.. If I try to call the save method directly,…
Luis C.
  • 727
  • 3
  • 22
  • 34
0
votes
3 answers

How to query on a many to many relationship in Grails?

I have the following Domain Classes: class PreparedToWork { String location static hasMany = [assessors: Assessor] } class Assessor { //Some Properties static belongsTo = [PreparedToWork] static hasMany =…
kulsoompatel
  • 220
  • 1
  • 3
  • 18
0
votes
1 answer

Grails noSelection property in the select tag over rides the value

I have the select tag below:
kulsoompatel
  • 220
  • 1
  • 3
  • 18
0
votes
0 answers

How to store cache data inside WEB-INF Directory in Production for Grails?

I am using cache and ehcache plugin. I have configured ehcahe.xml as follow
Sachin Aryal
  • 781
  • 14
  • 36
0
votes
1 answer

Grails Spring Events Plugin not found

After upgrading grails from 2.2 to 3.1 I can no longer compile the spring-events plugin. In my 2.2 project I had the plugin set in build-config.groovy plugins{ compile ':spring-events:1.2' } But now there is a build.gradle file and when I add the…
matt_roo
  • 415
  • 3
  • 14
0
votes
2 answers

LDAP login in grails 3.1.6. Error message "LDAP: error code 32"

I am very new to the grails framework. I am using the given below configuration. While, I try to login, I am getting the error message "LDAP: error code 32 - No Such Object]; nested exception is javax.naming.NameNotFoundException". Grails Version:…
0
votes
0 answers

How to hookup an implementation of a HttpServletRequestWrapper implementation in a Grails 3.x project?

I am trying to use a HttpServletRequestWrapper implementation in a Grails 3 project. I have an implementation of the wrapper but i am not sure on how to hook it in into the project. Any hints on how to do this? The implementation if the…
Marco
  • 15,101
  • 33
  • 107
  • 174
0
votes
1 answer

PagedResultList Instance in Grails 3.1.7 Unit Test

Is it possible to create PagedResultList instance or Mock? For Background: Currently I´m writing Controller Unit tests. If it is necessary I stubbing Service function calls. But some of this functions have PagedResultList as return type. So i have…
se-jaeger
  • 111
  • 1
  • 5