Questions tagged [grails3.2.0]
48 questions
0
votes
1 answer
Asset Pipeline not including CSS or JS in Grails 3 on external Tomcat 7/8
When I upload the app.war.original from a 3.2.8 app to a tomcat7 or tomcat8 running on a java 1.8.0_51 server, assets are not included in my source, as if the asset:stylesheet and asset:javascript tags didn't exist in my layout.
The app is running…

Exdevfr
- 5
- 3
0
votes
1 answer
Grails 3 : overriding service in doWithSpring
In grails 2, overriding a bean in a XPlugin.groovy just required to redefine the service in the doWithSpring() method:
def doWithSpring = {
tokenStorageService(TokenStorageProxyService) { it.autowire = 'byName' }
}
I started programming in…

Heschoon
- 2,915
- 9
- 26
- 55
0
votes
1 answer
Validation constraints importFrom throws exception
I'm getting following exepction when trying to import constraints from domain class which uses shared constraint.
Exception occurs during binding phase
Exception:
Property [somePackage.User.email] references shared constraint [email:null], which…

rgrebski
- 2,354
- 20
- 29
0
votes
0 answers
Grails 3.2.6 - Modify controller render method in BootStrap.groovy
Currently migrating an application from Grails 2.4.5 to Grails 3.2.6. We need the ability to modify the template path before rendering and have done this in Grails 2 BootStrap.groovy:
def init = { servletContext ->
log.debug "Executing…

John_OI
- 1
0
votes
1 answer
Cannot start application: grails 3 + tomcat 8
I'm trying to deploy and run my app on tomcat8,
deployment seems ok, but when I'm accessing app:
HTTP Status 404 - /app/
type Status report
message /app/
description The requested resource is not available.
Apache Tomcat/8.0.14…

ziftech
- 747
- 1
- 10
- 22
0
votes
1 answer
Grails 3 WAR Deployment Server Prerequisites
I am new to Grails (v 3.2.3) and I was wondering about what prerequesites a grails 3 WAR will actually typically need to run on a server:
Do I only need a Tomcat and JRE installed or are there other installations like GDK and grails to be made?
I…

bluscreen
- 41
- 3
0
votes
2 answers
Grails 3 UrlMappings
How do you map a Url with two ids:
/orders/$id1/orderlines/$id2
The id2 is optional
/orders/$id1/orderlines GET -> all orderlines for order id1
/orders/$id1/orderlines/$id2 GET -> show orderline id2 within order id1
The methods are to be mapped to…

Nabil
- 71
- 1
- 4
0
votes
1 answer
Grails upgrade to 3.2 broke springsecurity with config type requestmap
After upgrading Grails from 3.1.8 to 3.2.4 the application was stuck in a redirection loop, always tried to redirect to /login/auth. Typical behaviour for missing requestmap entries. I have tried to upgrade hibernate4 as well, as described in the…

hitty5
- 1,653
- 12
- 25
0
votes
1 answer
Grails 3 "Command not found run-script"
I am trying to use "run-script" to run Groovy scripts that are wrapped in a Grails context, as referenced in the documentation
http://docs.grails.org/3.2.x/guide/introduction.html
I am using grails 3.2.4
$ grails run-script
| Error Command not found…

pinei
- 2,233
- 1
- 24
- 25
0
votes
2 answers
Register custom constraints
I'm trying to upgrade Grails 2.3.7 project to Grails 3.2.3. In 2.3.7, I used custom constraints and register them in /conf/Config.groovy using:
org.codehaus.groovy.grails.validation.ConstrainedProperty.registerNewConstraint('description',…

Meam
- 257
- 3
- 12
0
votes
2 answers
how to use beforeInsert and afterInsert in grails3 domain
Iam upgrading grails2 project to grails3. i've some logic in beforeUpdate and afterInsert but as grails3 removed before and after interceptors
How can i use that logic in grails3?

Naresh
- 333
- 1
- 2
- 9
0
votes
0 answers
Creating custom gradle task inside Grails plugin
I am trying to create a Grails plugin that creates a custom Gradle Task which can be depended on by bootRun. I would like to do something like this:
@CompileStatic
static void configureProcessConfig(Project project) {
TaskContainer…

javatami
- 18
- 5
0
votes
0 answers
How to prevent foreign keys from being generated in Grails 3
How do you prevent foreign keys from being generated in Grails 3?
In Grails 2 you would override the secondPassCompile() method of GrailsAnnotationConfiguration class and do something like this:
for(PersistentClass pc : classes.values()) {
…

Viriato
- 2,981
- 7
- 40
- 54
0
votes
2 answers
Grails 3 gson views and domain class template
I'm playing around with Grails 3, specifically REST Api support features.
One of the new features (coming from 2.5.5) is the new gson views.
I'm trying to follow the documentation, but my template seems to be ignored.
I've made my sample project…

Townsfolk
- 1,282
- 1
- 9
- 21
0
votes
2 answers
How to install plugins in grails-3.2.0 which i have used in grails-2.4.4 while upgrading application
I am trying to upgrade my application from Grails 2.4.4 to Grails 3.2.0. I am having problems installing plugins used in previous version. Following Questions did gave me some clarification :
1) First one
2) Second one
Now I have few plugins like…

emphywork
- 448
- 1
- 4
- 15