Questions tagged [grails-3.3]

Use this tag for version 3.3 only, use grails tag for general question about grails Web application framework

109 questions
0
votes
1 answer

Grails, will different package on bootstrap leads creating user unsuccessful?

I am trying to create some user for login testing. So that, I have created some user on bootstrap. User user = new User(username: 'user', userPassword: 'user', userEmail: 'user@user.com').save() Then I try to login. The result was unsuccessful.…
Trainee
  • 57
  • 1
  • 7
0
votes
1 answer

Grails 3.3 - How to replace deprecated Service artefact?

I'm about to upgrade my Grails 3.2 web-app to version 3.3. In particular, I created a BaseService abstract class (located in /src/groovy) providing several helper methods, and most of all my Grails services extend BaseService. import…
ilPittiz
  • 734
  • 1
  • 10
  • 23
0
votes
2 answers

How to override redirect of grails 3 controller

I want to override(extend) the redirect method of a grails 3 controller. In grails 2 this was done by overriding the method via metaClass. See Override Grails redirect method Since grails 3 this is not working anymore. What I want to achieve: I want…
Bernhard
  • 444
  • 1
  • 4
  • 19
0
votes
1 answer

Grails 3.3: transient properties and GrailsDomainClassProperty

Contemplating upgrade of a plugin from Grails 3.2.11 to Grails 3.3.2 while accomodating the slashing change in the domain class API. PersistentProperty replaces GrailsDomainClassProperty but has no isPersistent() method. How do I find out…
sodastream
  • 129
  • 10
0
votes
1 answer

how to get started with Grails3 and Google as ID Provider

I would like to get started with a simple Grails app which allows my users to login through several openIDConnect providers like google. So I started to add some dependencies to my project: compile…
rdmueller
  • 10,742
  • 10
  • 69
  • 126
0
votes
1 answer

Grails 3.3.x with gradle 4.x does not work?

Grails 3.3.0 does not work with gradle 4.x is that right? I have problems running intergation test (dependency injection does not work) when running them with gradle via integrationTest or build task. BTW: Why isn't there a grails-3.0 tag?
Peter
  • 4,752
  • 2
  • 20
  • 32
0
votes
1 answer

Grails - Message bundles (i18n) broken for war build only

After upgrading from 2.5.5 to 3.1.1, when I build my application as an executable war (or deploy to tomcat container), messages cannot be resolved from message.properties or any i18n properties…
dre
  • 1,027
  • 1
  • 11
  • 31
0
votes
1 answer

grails -Dgrails.env=test war not work

Java: Oracle JDK 1.8 Grails: 3.3.1 I create an empty grails application and execute below command: grails -Dgrails.env=test war At the end of output lines, it appears: | Built application to build\libs using environment: production Well, I…
wureka
  • 731
  • 1
  • 11
  • 26
0
votes
1 answer

How do I prevent child properties from being updated?

When I use RestfulController in Grails to save data for an object, how can I prevent the client from applying changes to a related child object? Given the following domain classes: class Language { String name } class TranslationText { …
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
0
votes
1 answer

How to get show.gsp param and pass it to another controller

I am try to do something like this Get(param.id) in Controller.show() and forward/redirect(I am not sure) to another controller. Here's the question, how can I manage to capture the selected (show.gsp)'s param (example:taskName), and "send" it out…
Trainee
  • 57
  • 1
  • 7
0
votes
1 answer

Grails 3 (Gradle) dependency without parent directory

Can I not use the following Gradle approach to dependencies in Grails? I do not have nor want a parent directory; https://stackoverflow.com/a/19303545/2288004 When I try it, I get the the following error; Caused by: java.lang.IllegalStateException:…
dre
  • 1,027
  • 1
  • 11
  • 31
0
votes
1 answer

Grails-App does not start - ApplicationEventMulticaster not initialized

I am frustrated ... What is ApplicationEventMulticaster and how can I initialize or refresh it? Why it is needed? # java -Dgrails.env=production -jar /root/myapp-0.4.war Configuring Spring Security Core ... ... finished configuring Spring Security…
Fusca Software
  • 709
  • 6
  • 11
0
votes
1 answer

Grails 3.3 Multiple Asynchronous GORM calls during integration test without access to the database.

I was writing integration tests in Grails 3.3 with multiple Asynchronous GORM calls when I realized I could not get access to values stored in the database. I wrote the following test to understand what is happening. void "test something"() { …
vitgou
  • 13
  • 3
0
votes
1 answer

Grails 3.3 execute H2 script command

I'm running a small, trivial Grails 3.3.0 application using a H2 file based database. For simple backup reasons I would like to dump the current database state to a file using the H2 specific SCRIPT command: SCRIPT TO…
saw303
  • 8,051
  • 7
  • 50
  • 90
0
votes
1 answer

How do I use GrailsApplicationCommand with the gradle wrapper in an angular project?

In my grails angular project, I have a GrailsApplicationCommand which I want to run within the server project. I am able to execute the command from the server working directory using the grails CLI: grails run-command my-command I want to use the…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71