Questions tagged [grails3]

Grails 3 is the next major version of the Grails framework. This tag can/should be used with all Grails 3.x version so that the users on StackOverflow don't have to filter each specific Grails version (for example, 3.1.10, 3.2.0-m2) and they can filter every question which is related to Grails 3.

289 questions
4
votes
1 answer

Grails 3.2.4 : custom authentication filter not called

While Upgrading from grails 2.5 to grails 3.x , username password authentication filter is not getting fired. I am using spring-security core plugin 3.1.1 This is how custom Filter looks like class CustomAuthenticationFilter extends…
4
votes
2 answers

Grails 3.2.0.M1 Template not found for name

In my domain class com.example.users.User I added transient field carnets: class User implements Serializable { ... def carnets static transients = ['springSecurityService', 'carnets'] ... } and in my gson view user/_user.gson I'd…
Michal_Szulc
  • 4,097
  • 6
  • 32
  • 59
3
votes
1 answer

Can a Grails 3 Server be deployed on Tomcat 10?

I am able to deploy my Grails 3 Server on Tomcat 8.5.x and Tomcat 9 (running Java8). I can't seem to get it working on Tomcat 10. I'm wondering if it's even possible. Is there a version matrix with Grails, Tomcat, and Java that someone can point me…
M Heilner
  • 33
  • 3
3
votes
1 answer

UrlEncodedSlash blocked by HttpFirewall (Grails 3.3.0.RC1; Spring-security-core 3.2.0.M1)

I find this errors in my logs: org.springframework.security.web.firewall.RequestRejectedException: The requestURI cannot contain encoded slash. Got /;lm=1488887514;m=js;asset=delayedElements%2Fsnippet;tf;ucm=353df4434086482d9d1d7b89758e156e/ …
Kloker
  • 499
  • 4
  • 14
3
votes
1 answer

How to change per-plugin codec in Grails 3?

While I understand that it is not "best practice", I have a lot of legacy plugins that I am upgrading to Grails 3, and I need to set their GSP encoding back to the old default of "none" (because everything is already encoded where it needs to be,…
Daniel
  • 3,312
  • 1
  • 14
  • 31
3
votes
1 answer

Unable to create initial connection pool in Grails 3

I have a grails 3.2.7 application with Intellij IDEA 2017.1.1. But the problem is I couldn't create a connection pool to my MySql database (development environment). Here is my application.yml --- grails: profile: web codegen: …
Abhilash Shajan
  • 610
  • 1
  • 8
  • 29
3
votes
1 answer

Why does Jenkins hang when I try to build with the gradle-release plugin?

I set up the release plugin on my Grails project and successfully ran it on my localhost. When I try to set up the same build in Jenkins, the build hangs indefinitely. The last thing in the output before it hangs is the checkCommitNeeded…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
3
votes
1 answer

Grails 2.5.1 application sporadically loses context root

We have a handful of applications deploying to the same tomcat server (currently working on upgrading to grails 3, so this may be OBE in the next few months, but it's been plaguing us for quite some time now) and two of the applications will…
Trebla
  • 1,164
  • 1
  • 13
  • 28
3
votes
0 answers

Grails dropwizard-metrics plugin doesn't output Metrics data in correct format

I was looking for replacement of yammer-metrics plugin for Grails 3.x & found Grails Dropwizard Metrics for the same. I was trying to integrate it with my sample application(in Grails 3.x) and was following the documentation given at…
Charu Jain
  • 852
  • 1
  • 7
  • 18
3
votes
1 answer

Grails 3 Integration Spec has Strange Transactional Behavior

I have the following test (which is probably more of a functional test than integration but...): @Integration(applicationClass = Application) @Rollback class ConventionControllerIntegrationSpec extends Specification { RestBuilder rest = new…
Gregg
  • 34,973
  • 19
  • 109
  • 214
3
votes
2 answers

Render a template as string in a service in Grails 3 rest-api profile app

I've created a Grails 3.2.1 app with rest-api profile and want to render a GSP template as a String. For this I first added, apply plugin:"org.grails.grails-gsp" in build.gradle then based on the code of ResponseRenderer, I tried following to render…
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
2
votes
0 answers

Grails 3 Container Managed Authentication

I am trying to upgrade my existing grails application from version 2.5.6 to 3.3.11. So far, container managed application was configured in the application via web.xml, with . Here is the configuration:
Parth Bhagat
  • 509
  • 1
  • 11
  • 24
2
votes
1 answer

How to add external jar in grails 3.3.11?

I have tried creating a lib folder added the jar file in the same folder. This what i have added in build.gradle compile fileTree(dir: './lib',include: ['*.jar']) This is no lib folder by default in grails 3. I am not able to import classes from…
2
votes
0 answers

NullPointerException when scaffolding a table with composite key in Grails

I have a table (Oracle 12c DB) which does not include an explicit ID column in Grails (3.3.9) and I'd like to scaffold it dynamically. Thus, I tried to create a composite key consisting of all its columns (none of them nullable), as that's the only…
Straightfw
  • 2,143
  • 5
  • 26
  • 39
2
votes
0 answers

Using a custom Oracle DB sequence in Grails id generation

I have a Grails (v. 3.3.8) app with some scaffolded views which are based on tables in my Oracle 12c database. It all works well with a naive incremental ID generator but in order for it to work 100% according to the specification, I need to have it…
Straightfw
  • 2,143
  • 5
  • 26
  • 39
1
2
3
19 20