Questions tagged [grails-4]

Grails is a full stack framework and attempts to solve as many pieces of the web development puzzle through the core technology and its associated plugins. Use this tag to talk about issues within grails 4

Grails is a full stack framework and attempts to solve as many pieces of the web development puzzle through the core technology and its associated plugins.

120 questions
1
vote
0 answers

Cannot find a working configuration for Http Session replication in Grails 4

I wanted to run my Grails application (version 4.0.4) in a cluster. I tried to apply Hazelcast to replicate the HTTP session across the nodes/instances but somehow I couldn’t override/replace the SessionRepository bean that Grails uses with the…
Bere
  • 1,627
  • 2
  • 16
  • 22
1
vote
1 answer

Grails 4 war deployment to Tomcat fails with no such method: reactor.core.publisher.Mono.from(Publisher)Mono/invokeStatic

similar question: Grails got error when war file deployed to Heroku (Factory method 'requestMappingHandlerAdapter' threw exception) but I'm facing it when deploying a war file generated by grails 4.0.11 into Tomcat(v8.5.39): Caused by:…
Kuba
  • 854
  • 1
  • 8
  • 19
1
vote
1 answer

info api not showing git info with gradle-git-properties plugin in grails 4 app

I am trying to get git commit details as part of "/actuator/info" api end point using the gradle-git-properties plugin by following https://guides.grails.org/adding-commit-info/guide/index.html guide but having no luck with it. Steps I…
Deewendra Shrestha
  • 2,313
  • 1
  • 23
  • 53
1
vote
0 answers

using $ symbol for a password inside yml file in grails4

my database has a password something like "abc_$123" or "abc$xyz". i want to retain $ as part of the password. but grails 4 is interpreting characters after the $ as a variable, and if i use an escape character /, it says invalid escape…
1
vote
1 answer

How to override grails implicit log variable

I am having a grails application where I get a log variable in controller and service folders implicitly. However, I have my own logger that I want to use across the application. How can I override that grails implicit log variable?
1
vote
0 answers

Can you refresh an access_token once it has expired in spring security rest?

Looking at the documentation you need to POST to /oauth/access_token POST /myApp/oauth/access_token HTTP/1.1 Host: server.example.com Content-Type:…
burns
  • 1,091
  • 13
  • 15
1
vote
1 answer

How to integrate hibernate xml mapping of java classes in grails 4?

I am trying to map a POJO by hibernate xml mapping configuration in my grails app. This is working fine in grails 2.x version but in grails 4 it is not taking hibernate config which is at location : grails-app/conf/hibernate.cfg.xml which is this…
Prabin Upreti
  • 498
  • 5
  • 16
1
vote
1 answer

Expression codec (grails.views.gsp.codecs.expression) seems to be ignored in deployed war file

In a fresh grails 4.0.4 application the settings of grails: views: gsp: codecs: expression: none seem to be ignored when deployed as a war file in a Tomcat 8.5.39. (JVM 11.0.7+10-post-Ubuntu-2ubuntu218.04) Adding…
HansMaulwurf
  • 348
  • 3
  • 10
1
vote
1 answer

Using Stripe with Grails 4

I am having trouble installing the stripe plugin to Grails 4. I added compile "org.grails.plugins:stripe:2.10" to the dependencies in the build.gradle file. Then used grails install stripe in the powershell. I got this error: | Error Error…
Rathetsu
  • 13
  • 3
1
vote
1 answer

Grails - How to access configuration values in domain classes?

Although this or similar questions have been asked before for much older versions of grails, I wonder what would be the best approach to access a configuration value from application.yml in a grails domain class with modern grails 4.0.3. So, let's…
feuernurmitm
  • 312
  • 2
  • 11
1
vote
1 answer

Problem with running Grails 4 application

I'm trying to run my grails 4 application and I'm constantly getting this stacktrace: I did my research but I didn't find any working solution Configuring Spring Security Core ... ... finished configuring Spring Security Core Configuring Spring…
bmrki
  • 371
  • 3
  • 15
1
vote
0 answers

Grails Integration Testing by default creating datasource using H2 instead of datasource config from TEST environment

I have tried everything and every suggestion so far available. Problem: I'm trying to write integration test cases for Grails based application but while running tests it's picking by default H2 db for creating datasource instead of using DB config…
nik
  • 11
  • 1
1
vote
1 answer

Grails 4.0.2. Could not resolve view with name 'index' in servlet with name 'grailsDispatcherServlet'

I created a new grails app using below code grails create-app myapp --profile=rest-api I modified ApplicationController and added namespace to it, It is as below: class ApplicationController implements PluginManagerAware { /** The Namespace…
Ravikumar Sharma
  • 3,678
  • 5
  • 36
  • 59
1
vote
2 answers

grails 4 - BindingFormat annotation not binding date when using code for localized binding

As per the docs, we can use localized data binding. But this is not working in grails 4. controller import grails.databinding.BindingFormat class TestController { def index() { render view: 'index' } def test(DateCommand command) { …
MKB
  • 7,587
  • 9
  • 45
  • 71
1
vote
1 answer

Grails 4.0 Mock service method in controller test

I have a controller like this: class NotificationApiController { def countService def getCount() { def results = countService.getCount() render results as JSON } } And the controller test like this: Closure…
Chris Ji
  • 153
  • 1
  • 4