Questions tagged [grails-5]

19 questions
3
votes
2 answers

Grails 5.2.0 create-app, throws "Cannot resolve dependency org.springframework.boot:spring-boot-dependencies:2.7.0 no repositories are defined"

I am starting a new grails application, I am using grails 5.2.0 (Latest as of today) I generated a skeleton using : ~/grails-5.2.0/bin/grails create-app data_portal --profile=react However, trying to run the application always gives me following…
2
votes
1 answer

How to Modify Grails 5 Configuration by Adding Groovy Files

I have a large number of Grails 2.5 applications that I want to upgrade to Grails 5, but have been unable to get the configuration to work. In particular, I want my plugin to set up the data source and Spring Security configuration as it did in…
Big Ed
  • 1,056
  • 9
  • 20
1
vote
1 answer

Grails 5 change: how to inject taglib into Controller

In grails 4, if I had plugin-A that defined a taglib with static namespace = "someNamespace", I could reference that in controllers in plugin-B via something like: render someNamespace.sometag() In grails 4.0.3, plugin-B had a compile dependency on…
Trebla
  • 1,164
  • 1
  • 13
  • 28
1
vote
0 answers

Grails 5.2 can't deploy to JBoss EAP 7.4

Grails 5.2 create-app helloworld create-controller hello (add render "Hello" line) Add the jboss-deployment-structure.xml file to WEB-INF folder for JBoss logging compatibility. run-app (works) war Deploy to JBoss EAP 7.4 and get following error …
DAC
  • 707
  • 1
  • 6
  • 20
0
votes
0 answers

Grails 5 RestfulController extension is showing default constructor missing problem

I am using grails-5.2.5 to migrate an application from grails-2.5.2 version. In grails-2 version there is a class RestVehicleTrackingController which extends RestfulController. The purpose of the class is to return Map object as JSON. No related…
Sumon Bappi
  • 1,937
  • 8
  • 38
  • 82
0
votes
1 answer

grails 5 spring security 5 403 error page is not shown

I am using grails 5.2.5 and spring security 5.6.0. When a 403 is occurred then the access deny message is written in the browser document.I want to show a 403 specific view page.But it is not working. My code as below: URL mapping: '403'(controller:…
Sumon Bappi
  • 1,937
  • 8
  • 38
  • 82
0
votes
0 answers

Exception URL is called but view page is not shown in grails

I am using grails-5.2.5 version. During saving a multipart request when size is exceeded then exception is printed in IDEA console but is not shown in view page which is configured in URL mapping. My attepmts are as below: URL mapping…
Sumon Bappi
  • 1,937
  • 8
  • 38
  • 82
0
votes
0 answers

# sign is not working properly for URL access check in spring security 5

I am upgrading a project from grails 2.5.2 to grails 5.2.5 version. In previous version spring security 2 has been used. There URL access check start with # sign works fine. But in upgrading version, the same URL check is returning true although the…
Sumon Bappi
  • 1,937
  • 8
  • 38
  • 82
0
votes
1 answer

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

I'm updating a Grails 3.3.16 app to Grails 5.3.2. When I grails run-app I'm getting a strange exception and can't see the source is in my code, and couldn't find a solution online. Hope someone had a similar issue and can give some light to the…
Pablo Pazos
  • 3,080
  • 29
  • 42
0
votes
0 answers

Grails 5 apps throw stack overflow error on development reload

Seeing this behavior on both the default grails app skeleton and fully developed apps. versions Using grails 5.3.2 ----with gradle 7.2 JDK (tried 11.0.12-open and 11.0.17-zulu) Running on standard 8080 port and with the tomcat (which I believe comes…
user2782001
  • 3,380
  • 3
  • 22
  • 41
0
votes
0 answers

Grails 5.2.5 which event is triggered during recompilation

Dear Stackoverflow Gurus, I am working with Grails for one of the projects and find this technology very fun to work with. During development of some logic however I need to wait for a long time for a restarting of application in order to test the…
0
votes
0 answers

Trouble Deploying Grails Application After Upgrading to Ver. 5.1.2 in Tomcat Server

Not sure why I'm getting this error while i deploy on tomcat server and i see its trying to find some yml file but i dont see any file on my code I'm confused where to start trying various scenarios and still could not able to replicate the issue…
0
votes
1 answer

How do I add a custom method to grails 5.2.4 service interface?

After using the grails create-all command to generate a service interface, I would like to add some other methods that would require transactional scope for database updates. I'm made to understand that with grails 5 above, the ideal place to do it…
0
votes
0 answers

Publishing grails 5 plugin to private repository

I want to upgrade an old plugin that is written in grails 2. But am having difficulties in setting up a new grails 5 plugin and it's build.gradle file. Seemingly nowhere it's documented how to publish a plugin to your own repository. I created an…
Gabriel
  • 1,820
  • 2
  • 23
  • 31
0
votes
0 answers

GrailsApplication not found when running test in Grails 5

I'm creating a plugin in Grails 5 and Java 11 to perform processes in a static class, but when running the test described below, the following error message appears: Error: java.lang.IllegalArgumentException: GrailsApplication not found at…
1
2