Questions tagged as 'grails'

0
answers

Error on running Grails Unit Test - version 3.3.5

No GORM implementations configured. Ensure GORM has been initialized correctly. Code above: package br.com .promotion.selection.service import grails.testing.services.ServiceUnitTest import spock.lang.Specification import br.com .com...
asked by 01.08.2018 / 19:49
0
answers

interceptUrlMap defined as a Map is not supported error when adding interceptors in grails application

I'm developing a web application using Grails and I'm trying to implement authentication via spring security plugin. Java.lang.IllegalArgumentException: interceptUrlMap defined as a Map is not supported; must be specified as a List of Maps as...
asked by 27.06.2018 / 05:29
0
answers

How do I capture the body of my request rest - Grails

I have the following REST request in grails: def http = new HTTPBuilder(instance_domain) try { http.post( path : "AtualizarPedido/"+urlOpportunity.url, body : postBody, requestContentType: URLENC) { resp, json -> log.info "*...
asked by 27.04.2018 / 21:47
0
answers

Grails - Receive return from my REST request

I have a grails code for a POST-type REST call where I pass the login parameters and it was to receive the token and an access route, it is correct, both by Postman that I receive these parameters correctly, and by the code also after all , does...
asked by 27.04.2018 / 15:53
0
answers

Debug - Discover the route of my rest http - Grails

I have a POST rest http call, where I get a file of my parameters and I am going to log in, I believe she is speaking because the route I'm setting is wrong, there is a missing bar, or the uppercase and lowercase letters . log.info "*...
asked by 27.04.2018 / 15:21
0
answers

Ajax function repeats on the page depending on the number of results returned from the query, what can it be?

Good morning the / I'm working on a Grails project that uses JavaScript to perform the search (both by category and by text) and pagination of items. However, after a few searches by category, the application slows down. In the javascript con...
asked by 05.04.2018 / 20:56
0
answers

Run run-app is returning error

I have a 3 year project, and I need to update it to generate a .war and put it running on top of Tomcat, but when I run the grails run-app command it is returning the following error:    | Error Resolving error obtaining dependencies: Could n...
asked by 02.04.2018 / 14:00
0
answers

Hibernate should mount query only with the required joins

I have list with createCriteria on it I have several ifs to query only the parameters queried on the form, however, the hibernete by default at the time of the query assembly joins all tables that have constraints: select *from volume this_...
asked by 07.03.2018 / 21:13
1
answer

i18n grails and jquery with different languages

I'm using the Language Internationalization (i18n) feature in a Grails project. Some of the tags are inserted directly into the .gsp files and another part is in the JS (Jquery / Bootstrap) scripts. These in the scripts need to use a third-party...
asked by 15.09.2017 / 17:01
1
answer

Grails Spring Security check if User belongs to Group (RoleGroup)

I have the following domain classes: User hasOne RoleGroup hasMany Role Examples: RoleGroup : Admin, Professional, Customer, ... Role : ROLE_ACTION_1, ROLE_ACTION_2, ... How do I check if the User belongs to a specific Ro...
asked by 28.07.2016 / 21:23