I wanted to set up remote debugging from Eclipse. Tomcat is running as a service on windows.
That bit is fine, a quick google pointed me towards the correct settings to add to wrapper.conf to enable this. There were entries already in wrapper.conf, so I copy/pasted the last entry and modified it:
wrapper.java.additional.8="-Djava.endorsed.dirs=C:/Program Files/OurApp/tomcat/common/endorsed"
wrapper.java.additional.8.stripquotes=TRUE
wrapper.java.additional.9="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=9135,suspend=n"
wrapper.java.additional.9.stripquotes=TRUE
It didn't work, because the quotes are around everything, and the stripquotes only applies to linux systems.
Theoretically the correct entries should be:
wrapper.java.additional.8=-Djava.endorsed.dirs="C:/Program Files/OurApp/tomcat/common/endorsed"
wrapper.java.additional.8.stripquotes=TRUE
wrapper.java.additional.9=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=9135,suspend=n
The second example doesn't need quotes - no spaces to break it up. The first example does - because of "Program Files" Am I correct in this assessment?
If so, how/why is the application working as is? There are several parameters ostensibly being set like this (nested in qutoes), which I believe actually have no effect.
For instance min/max memory settings.
I found an example here that has the same thing, ostensibly being a config for windows and linux.
My questions:
Will these quotes stop the config commands going through?
Why is the app working if that is the case?