Use this tag for version 3.3 only, use grails tag for general question about grails Web application framework
Questions tagged [grails-3.3]
109 questions
2
votes
1 answer
Grails 3 schemaExport contains warning with FileNotFoundException that looks for sitemesh.xml
When schemaExport is executed using Gradle for a Grails 3.3 application, below warning is in the log though ddl.sql is created. According to Grails 3 documentation sitemesh.xml is removed so naturally the file wouldn't be available. Am I missing…

Moon
- 2,837
- 1
- 20
- 34
2
votes
1 answer
Error running grails 3.3 app with spring security ui
I am unable to run grails app after including spring security ui plugin (3.0.2) in grails 3.3.0 application. The spring security core plugin version is 3.2.0.M1. The application works fine if spring security ui plugin is removed from the…

Satish
- 31
- 1
- 7
1
vote
2 answers
Default format for withFormat in Grails 3.x
In Grails this could be use for content negotiation, especially useful to implement APIs:
withFormat {
xml { ... some code that renders XML }
json { ... some code that renders JSON }
}
Now, if I need a default format, let's say JSON, the…

Pablo Pazos
- 3,080
- 29
- 42
1
vote
0 answers
Grails sometimes render wrong character encoding
I have a Grails application deployed in a tomcat. For some reason, sometimes render wrong characters, accented characters becomes a strange ?.
Did someone face this problem and solved it?
I tried to find a solution but problems exposed there, are…

IgniteCoders
- 4,834
- 3
- 44
- 62
1
vote
1 answer
Grails 3 Controller Unit Testing: Domain class validation not working in a ControllerUnitTest
I'm upgrading an inherited Grails 2 app to 3.3.10. We have controller methods that rely on Domain class validation to control logic flow, but we can't get DomainClass validation to work in ControllerUnitTests when running in Grails 3
For…

Dano
- 15
- 6
1
vote
1 answer
How do I pass properties to Enver in Grails 3?
I am using Hibernate Envers in my Grails app, and trying to set the org.hibernate.envers.audit_strategy property. What is the correct way to configure this?
I have tried adding the following to application.yml:
org.hibernate:
envers:
…

RMorrisey
- 7,637
- 9
- 53
- 71
1
vote
2 answers
How do I get real path as string in Grails
Developed project using grails-3.3.1 and generated a Runnable WAR file. When I run using the command:
java -jar build/libs/myproject-0.1.war
It is returning null for the following line:
serveltContext.getRealPath("/someSource");
But it is working…

Abdul
- 81
- 8
1
vote
1 answer
Grails 3.3.10 value set in domain method is not being saved
I have a User class with a resetPasswordToken attribute, that is a UUID set when a user tries to reset his password.
On Grails 2.5.6 I had something like this that worked OK:
class UserController {
def forgotPassword(String email)
{
…

Pablo Pazos
- 3,080
- 29
- 42
1
vote
1 answer
Grails 3.3.x handle file upload max size exceeded exception
I'm reading this tutorial on file uploads: https://guides.grails.org/grails-upload-file/guide/index.html
But even if the file size limit is set to 25MB, there is no description of how to handle the FileUploadBase$SizeLimitExceededException exception…

Pablo Pazos
- 3,080
- 29
- 42
1
vote
0 answers
After migrating code to Grails 3.3, FilterRegistrationBean not found error during runtime
After migrating my application from Grails 2.4.3 to Grails 3.3.8 and using the new spring security plugin, while compilation of Java/Groovy files and war assembly goes okay, I get the FilterRegistrationBean not found error during deployment.
As you…

Manish Ballav
- 45
- 4
1
vote
1 answer
How do I use HttpBuilder with a partial path in the URL?
In my Grails app, I have a config property which includes a partial URL path, like this:
http://apis.mycompany.com/my-api/v1/
I want to invoke endpoints using this URL with HttpBuilder:
class MyApiService {
@Value('${myApiUrl}')
String…

RMorrisey
- 7,637
- 9
- 53
- 71
1
vote
0 answers
UnsatisfiedDependencyException during server start up
I am upgrading a grails application from 2.x to 3.3.9. I have run into UnSatisfiedDependencyException with stacktrace that I dont understand. Stack trace is below. What is interesting is at the end of the stacktrace message it says - could not…

JavaProgrammer
- 65
- 12
1
vote
0 answers
Grails 3.3.5 REST configure HTTP header based authentication and authorization
I am struggling mightily trying to configure Grails 3.3.5 to use HTTP header authentication/authorization on a REST project. I've tried about everything and can't seem to get it to happen. Does anyone have any pointers to a project or sample app…

WizardsOfWor
- 2,974
- 29
- 23
1
vote
2 answers
Unable to start Grails 3.3.8 application with Postgres DB
I started migrating my application from Grails 2.5.5 to Grails 3.3.8 running on Postgres DB but getting errors while starting the application in IntelliJ. Below are the details:
Error:
…

Hasan K
- 610
- 8
- 20
1
vote
1 answer
How can i use resultTransformer in grails3
I want to transfer projection result into List.i'm using following code
testDataList = FunctionalTestCaseData.createCriteria().list(max: pageSize, offset: offset){
eq("functionalTest",fTestcase)
and{
…

Kapil Thakkar
- 840
- 10
- 17