Setting CATALINA_OPTS for tomcat6 on windows doesn’t work.

Posted by Ben on Server Fault See other posts from Server Fault or by Ben
Published on 2009-09-13T10:33:59Z Indexed on 2010/06/12 20:33 UTC
Read the original article Hit count: 651

Filed under:
|

(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!!

© Server Fault or respective owner

Related posts about tomcat

Related posts about jmx