Setting CATALINA_OPTS for tomcat6 on windows doesn’t work.
- by Ben
(I've copied this from Stack Overflow here, after someone suggested I post the question here)
Hi,
I'm trying to setup Tomcat6 to work with JMX on Windows Vista 64.
To do that I need to pass the parameters below to Tomcat6.
What I do in command prompt. (that doesn't work)
set CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9898 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
tomcat6.exe
What I do that does work (but causes other problems)
java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9898 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -jar bootstrap.jar
It seems as if tomcat is just ignoring the environment variable CATALINA_OPTS.
Am I doing something wrong?
I've also tried to edit catalina.bat and define the variable CATALINA_OPTS there. No success. (tried adding the parameters to JAVA_OPTS too, no success either)
Thanks in Advance!!