On 2013-07-23 Cédric Couralet wrote: > 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.
Ooops... What a shame. Looking into various sources it really seems to be my fatal mistake. I'll check tomorrow. > > 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 I tried absolute paths as well, but this result is most likely related to the above case - all my Java options were on the single line, thus most likely ignored completely. Jan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org