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

Jsoup in Grails4 with OpenJDK

I am using org.jsoup:jsoup:1.12.1: Document doc = Jsoup.connect("https://example.com").get() When I had tried JAVA: 8.0.232-open, 9.0.4-open, 11.0.5-open I received javax.net.ssl.SSLHandshakeException: No subject alternative DNS name…
Michal_Szulc
  • 4,097
  • 6
  • 32
  • 59
0
votes
1 answer

Grails 4.1 - Static Mapping in URL Mappings not working properly after upgrade

I am currently upgrading to Grails 4.1. In the past version I had a static mapping in my URL Mappings.groovy as follows: class UrlMappings { static mappings = { name tool: "tool/$controller/$action?/$id?"{ …
0
votes
1 answer

Ternary Operator in GSP Page Produces Error

I am currently upgrading to Grails 4. The use of ternary operators are not recognized in GSP pages. The following code: ${(user?.active) ? ' Active' : '
0
votes
1 answer

Unable to exclude Jar from grails war

I am using grails 4.0 In my build.gradle, I have following entry. war { exclude("**/abc-1.0.0.jar", "**/xyz-1.0.0.jar") } But for some reason, both these jars are included in the war file, when I run the command grails prod war I have tried…
Pritesh Mhatre
  • 3,847
  • 2
  • 23
  • 27
0
votes
1 answer

Grails got error when war file deployed to Heroku (Factory method 'requestMappingHandlerAdapter' threw exception)

I need some help from you who knows how to fix this problem that I encountered when deploying the war file to Heroku. I would be glad if someone can help me with this problem. Grails 4 Java 8 Gradle 5.1.1 Thank you in advance :), Happy…
redwolfgang20
  • 368
  • 1
  • 5
  • 15
0
votes
2 answers

Grails4 GORM Domains - join tables empty

I was away from Grails for some time so I tried to create demo rest-api app with some basic domain relationship (one-to-many, many-to-many) and faced some wierd issues. In short, I have 4 domain classes as follows: class Publisher { String…
zbubric
  • 363
  • 3
  • 10
0
votes
3 answers

grails 4 url mapping for root not working

In url mappings: "/$controller/$action?/$id?"{ constraints { // apply constraints here } } "/index"(controller: 'home', action: 'index') "/"(controller: 'home', action: 'index') If…
user2782001
  • 3,380
  • 3
  • 22
  • 41
0
votes
1 answer

How to inject the server port in Grails 4 integration tests?

Since Grails 4 it is not possible anymore to get the server port in grails integration tests this way: @Value('${local.server.port}') Integer serverPort What's the correct way to get the server port in tests?
Heschoon
  • 2,915
  • 9
  • 26
  • 55
0
votes
0 answers

Grails4: dynamicUpdate: many-to-one foreign key get updated even not being dirty

I'm working with this configuration in application.groovy: grails.gorm.default.mapping = { id (generator: "identity") // send only the dirty fields to the database for updating dynamicUpdate (true) dynamicInsert (true) } The domain…
rawi
  • 521
  • 3
  • 13
0
votes
1 answer

How can I easily customize the templates used for generation of Controller in Grails rest-api profile

I have a rest-api app I am working on. I run generate-controller on my domain, and a controller is generated, but in other profiles I have been able to "install" the templates that were used and customize them. This profile has no install templates…
WizardsOfWor
  • 2,974
  • 29
  • 23
0
votes
1 answer

Grails4 - catching file maxFileSize limit when exceeded on uploading a file

I would like to catch this exception rather than simply returning a 500 to the end users which is a poor experience, at least in my application. The intention would be to return the user back to the form page with some feedback for them to try…
dre
  • 1,027
  • 1
  • 11
  • 31
0
votes
1 answer

Grails 4: Grails Spring Websocket 2.5.0.M1 upgrade has broken websockets

After upgrading to Grails Spring websocket as part of my move to Grails4, my websocket implementation stopped working with the following error. There appears to be a correlation with how asset pipeline dynamically constructs these assets (of which…
dre
  • 1,027
  • 1
  • 11
  • 31
0
votes
1 answer

Grails 4: @GrailsCompileStatic annotation not working

Migration from grails 3.3.5 -> grails 4.0.0.M2 My class has been annotated with @GrailsCompileStatic & it used to compile without any issues in 3.3.5. Many other classes are also showing errors for methods which are additionally provided by groovy…
Pritesh Mhatre
  • 3,847
  • 2
  • 23
  • 27
0
votes
0 answers

Grails 4 Spring Security Plugin

After upgrading from Grails 3.3.9 to 4 there are several packages missing. E.g. unable to resolve class org.springframework.security.provisioning.JdbcUserDetailsManager. Has anyone any ideas? I've done all the steps from here:…
Voland
  • 1
  • 1
-1
votes
1 answer

Disable Grails 4 loading texts

How do I disable these unnecessary loading texts in Grails 4? They are pictured below:
Jerry U
  • 618
  • 9
  • 22
1 2 3 4 5 6 7
8