From 54b61f7f287592438535c70d53d9a6b25a2b0337 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 17 Oct 2017 20:14:09 +0200 Subject: [PATCH] The tomcat debug options do not like spaces. --- tomcat-multiple-instances/templates/tomcat-default.j2 | 2 +- tomcat/templates/tomcat-default.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tomcat-multiple-instances/templates/tomcat-default.j2 b/tomcat-multiple-instances/templates/tomcat-default.j2 index 31fce26c..628b4326 100644 --- a/tomcat-multiple-instances/templates/tomcat-default.j2 +++ b/tomcat-multiple-instances/templates/tomcat-default.j2 @@ -46,7 +46,7 @@ JAVA_OPTS="${JAVA_OPTS} -XX:+DisableAttachMechanism -Dcom.sun.management.jmxremo {% endif %} {% if item.remote_debugging is defined and item.remote_debugging %} # You will be able to use a java debugger on port {{ item.remote_debugging_port }}. -JAVA_OPTS="${JAVA_OPTS} -agentlib:jdwp=transport=dt_socket, address={{ item.remote_debugging_port }}, server=y, suspend=n" +JAVA_OPTS="${JAVA_OPTS} -agentlib:jdwp=transport=dt_socket,address={{ item.remote_debugging_port }},server=y,suspend=n" {% endif %} # WARNING: This directory will be destroyed and recreated at every startup ! JVM_TMP={{ item.instance_path }}/tmp diff --git a/tomcat/templates/tomcat-default.j2 b/tomcat/templates/tomcat-default.j2 index 0a4bdfa6..3a94823e 100644 --- a/tomcat/templates/tomcat-default.j2 +++ b/tomcat/templates/tomcat-default.j2 @@ -43,7 +43,7 @@ JAVA_OPTS="${JAVA_OPTS} -XX:+DisableAttachMechanism -Dcom.sun.management.jmxremo {% endif %} {% if tomcat_enable_remote_debugging %} # You will be able to use a java debugger on port {{ tomcat_remote_debugging_port }}. -JAVA_OPTS="${JAVA_OPTS} -agentlib:jdwp=transport=dt_socket, address={{ tomcat_remote_debugging_port }}, server=y, suspend=n" +JAVA_OPTS="${JAVA_OPTS} -agentlib:jdwp=transport=dt_socket,address={{ tomcat_remote_debugging_port }},server=y,suspend=n" # Obsolete #JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address={{ tomcat_remote_debugging_port }},server=y,suspend=n" {% endif %}