From be8b0b5178b1850ad6077d59066f95770554f971 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 15 Feb 2018 16:43:16 +0100 Subject: [PATCH] tomcat-multiple-instances: Add a 'file.encoding' directive to the java options. See https://support.d4science.org/issues/11192 --- tomcat-multiple-instances/defaults/main.yml | 1 + tomcat-multiple-instances/templates/tomcat-default.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tomcat-multiple-instances/defaults/main.yml b/tomcat-multiple-instances/defaults/main.yml index b92ee1b2..502b213a 100644 --- a/tomcat-multiple-instances/defaults/main.yml +++ b/tomcat-multiple-instances/defaults/main.yml @@ -43,6 +43,7 @@ tomcat_m_max_threads: 200 tomcat_m_min_heap_size: 2048m tomcat_m_heap_size: '{{ tomcat_m_min_heap_size }}' tomcat_m_permgen_size: 512m +tomcat_m_file_encoding: 'UTF-8' tomcat_m_restart_timeout: 300 # -server -Djava.awt.headless=true are always used. No need to specify them tomcat_m_java_opts_heap: "-Xms{{ tomcat_m_min_heap_size }} -Xmx{{ tomcat_m_heap_size }}" diff --git a/tomcat-multiple-instances/templates/tomcat-default.j2 b/tomcat-multiple-instances/templates/tomcat-default.j2 index 0501c1f4..2806540f 100644 --- a/tomcat-multiple-instances/templates/tomcat-default.j2 +++ b/tomcat-multiple-instances/templates/tomcat-default.j2 @@ -1,7 +1,7 @@ TOMCAT_USER={{ item.user }} TOMCAT_GROUP={{ item.user }} JAVA_HOME={{ item.java_home }} -JAVA_OPTS="-server -Djava.awt.headless=true" +JAVA_OPTS="-server -Djava.awt.headless=true -Dfile.encoding={{ tomcat_m_file_encoding }}" {% if item.java_heap is defined %} JAVA_HEAP="{{ item.java_heap }}" {% else %}