1
votes

I want to be able to set some tomcat properties in grails. Specifically I want to set org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true system property. (http://tomcat.apache.org/tomcat-7.0-doc/security-howto.html) but I have no idea where these config go.

I have tried setting it Run -> Edit Configurations as Command Line arguments, VM options, and setting CATALINA_OPTS as an environment variable. But none work. And I'm not even sure how to check whether these values are being read.

I am running grails 2.1.0 with the tomcat grails plugin running on IntelliJ on Mac OSX.

Thanks.

1

1 Answers

0
votes

You can view what properties are being passed to the app with the application info plugin.

Another option would be connecting to the running grails application with Java VisualVM which is generally bundled with the jdk. Check the bin directory of your java installation for jvisualvm.

To pass properties, have a look at the docs for run-app Are you specifying the property correctly?