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

Grails 4 - declare global sequence for database

I am currently using native SQL queries to create sequences and get sequence values in a Grails 4 web app. This normally doesn't cause much of an issue, but when I use the grails database migration plugin to update my database (using liquibase), it…
Anonymous1
  • 3,877
  • 3
  • 28
  • 42
0
votes
1 answer

I want to use http://myUrl:13001/myAppName , but I get a link to http://myUrl:13001/ and a Not Found message

To use the URL as http://myUrl:13001/myAppName, the following contents are specified in the grails-app/conf/application.yml file. environments: production: grails: serverURL: http://myUrl:13001/myAppName To run, in grails…
0
votes
1 answer

How to resolve jasper 1.8.0 dependency into Grails 4?

I've successfully installed jasper 1.8.0 into build.gradle. However, after installation, I'm getting this error. My project developed by Grails 4 with java 11 Error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for…
Nocturnal
  • 45
  • 5
0
votes
1 answer

Grails 4 Unit Test: "Invalid connection [ALL] configured for class..."

I'm having trouble testing Grails 4 with multiple datasources configured. Domain Class @GrailsCompileStatic @EqualsAndHashCode(includes = 'authority') @ToString(includes = 'authority', includeNames = true, includePackage = false) class Role…
SGT Grumpy Pants
  • 4,118
  • 4
  • 42
  • 64
0
votes
1 answer

Grails 4 https://repo.grails.org/grails/core no longer able to download dependencies

We have been using Grails 4.0.0 for more than a year now and starting yesterday, we are now unable to download dependencies with the below build config. buildscript { repositories { maven { url "https://repo.grails.org/grails/core"…
bogart
  • 1
  • 1
0
votes
1 answer

Grails using uuid id generator: Not very random

A simple Grails 4 app uses the uuid id generator with the Hibernate 7.0.4 plugin and PostgreSQL 10 under Ubuntu 20.04. Here is some output after 4 instances have been created: => select id,ttag,name from msg_template; id …
sodastream
  • 129
  • 10
0
votes
0 answers

Unable to run integration test cases after Grails 4 migration

After migrating the application from Grails 3.3.11 to Grails 4.0.6, I am unable to run integration tests. When I tries to run integration test it throws error as: java.lang.IllegalStateException: Failed to load ApplicationContext at…
0
votes
0 answers

how could let sonarqube pickup jacoco test coverage report

I have gradle project which use jacoco plugin plugins{ id 'jacoco' id 'org.sonarqube' version '3.0' } test{ exclude 'xx' } jacocoTestReport{ dependsOn test reports{ xml.enabled true csv.enabled false …
lee
  • 53
  • 1
  • 6
0
votes
1 answer

Grails 4, Ubuntu 20, Embedded Tomcat - No Multipart files in request

I have been attempting to solve an issue with a prod environment deployment of a grails 4 application for about a week now. When I run my application locally, via run-app or java -jar warfile.war, I am able to upload files and have the multipart…
0
votes
1 answer

How can I add custom db objects during schema generation with Grails 4.0.5 (Hibernate 5) without the need for migration plugin?

I need to add a couple functions and views that are part of the system schema design. This should be part of the session start up (especially in development and test) because of the dbCreate create-drop settings on the data source so that the…
0
votes
0 answers

Caused by: java.lang.ClassNotFoundException: org.grails.core.cfg.DeprecatedGrailsConfig

I am migrating my project from grails 3 to grails 4. while doing a bootrun, I encounter the below error: Not sure if it is some deprecated import or method instantiation The error also points out to a file where there is this line: def restBuilder =…
0
votes
2 answers

spring security core plugin - invalidate a user session

I am using grails 4.0.3 and I am trying to logout a user programmatically. I search for this but all the solutions that I found are for grails 2 and are not working for grails 4. Like - force logout for authenticated user using spring security…
MKB
  • 7,587
  • 9
  • 45
  • 71
0
votes
1 answer

Create form for domain object with multiselect Enum field fails with 'Property xxx is type-mismatched'

I am using Grails 4.0.4 w/ GORM 7.0.7.RELEASE The database I am using is MongoDB I can successfully run the application and navigate to the create form for the domain class. I can select the value for the singleton field someOtherEnum. I can…
Selena
  • 2,208
  • 8
  • 29
  • 49
0
votes
0 answers

Error attempting to use elasticsearch-grails-plugin: getting java.lang.IllegalStateException

I'm running grails 4.0.1 attempting to use org.grails.plugins:elasticsearch:3.0.0 with elasticsearch 7.9.0. I'm not sure if I've misconfigured a bean along the way that I'd missed but any help in the right direction would be well received! Near…
0
votes
0 answers

How do I define redirects in Grails properly?

In my grails app I use interceptors for checking if a user is logged in or not. If not, the user should be redirected to the login page (/account/index). This does not work for some reason. (Additional info: I didn't define namespaces for my…
Manfred
  • 3
  • 3