2013/7/23 honyk <j.tosov...@email.cz>:
> Dear All,
>
> I run tomcat as service on Windows Server 2008 R2. I am not able to monitor
> it locally yet (discussed in another thread) so in the meantime I am trying
> to establish JMX connection to it acc. to this guide:
> http://tomcat.apache.org/tomcat-7.0-doc/monitoring.html
>
> All params are changed using tomcat7w.exe (in the Java options text field)
> and then the service is restarted.
>
> I am experiencing several weird issues:
> 1) Basic settings (single line):
> -Dcom.sun.management.jmxremote
> -Dcom.sun.management.jmxremote.port=9090
> -Dcom.sun.management.jmxremote.ssl=false
> -Dcom.sun.management.jmxremote.authenticate=false

If these properties are on the same line in the java options tab, it
won't work they need to be on different lines.

[...]
> b) When credentials files were specified, there were still 'FileNotFound'
> errors in the log (even when absolute paths were used):
> -Dcom.sun.management.jmxremote
> -Dcom.sun.management.jmxremote.port=9090
> -Dcom.sun.management.jmxremote.authenticate=true
> -Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password
> -Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access
> -Dcom.sun.management.jmxremote.ssl=false

When launching tomcat as a service, without changing the default
configuration, it will start in the system32 folder (or something else
on Win 2008) and not in the tomcat folder. So the path for password
file and acces file should be absolute

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to