Re: Tomcat JMX connection - Authentication failed.

2011-01-14 Thread Pid
On 1/13/11 5:09 PM, Ziggy wrote: > Given that Jconsole can connect to the Tomcat JMX without any user > credentials (locally), i am guessing that i dont need to supply these > credentials but how do i connect to the JMX server without supplying the > port number? (by specifying the port number it m

Re: Tomcat JMX connection - Authentication failed.

2011-01-13 Thread Ziggy
Given that Jconsole can connect to the Tomcat JMX without any user credentials (locally), i am guessing that i dont need to supply these credentials but how do i connect to the JMX server without supplying the port number? (by specifying the port number it means i am allowing remote authentication

Re: Tomcat JMX connection - Authentication failed.

2011-01-13 Thread Pid
On 1/13/11 3:15 PM, Ziggy wrote: > Aha... i didnt realise that i needed to supply the credentials from the > client. I thought Tomcat would get those from the password files. Ok im off > to the documentation now. :) It could do, but you'd have to point the client at those files and read their cont

Re: Tomcat JMX connection - Authentication failed.

2011-01-13 Thread André Warnier
Ziggy wrote: Aha... i didnt realise that i needed to supply the credentials from the client. I thought Tomcat would get those from the password files. Purely from an intellectual curiosity point of view, it would be interesting if you could explain what you thought that this server-side passw

Re: Tomcat JMX connection - Authentication failed.

2011-01-13 Thread Ziggy
Aha... i didnt realise that i needed to supply the credentials from the client. I thought Tomcat would get those from the password files. Ok im off to the documentation now. :) On Thu, Jan 13, 2011 at 1:31 PM, André Warnier wrote: > Ok, what I was trying to say is this : > > By using the jmxremo

Re: Tomcat JMX connection - Authentication failed.

2011-01-13 Thread André Warnier
Ok, what I was trying to say is this : By using the jmxremote.password.file etc.. on the JVM which runs Tomcat, you let this JVM know which remote user-id's can connect, and what password they should use. Now, from the client side, when you connect, you have to provide such a valid user-id and

Re: Tomcat JMX connection - Authentication failed.

2011-01-13 Thread Ziggy
Ok i am stuck now - here is the full configuration $CATALINA_BASE/setenv.sh --- CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=18070 -Dcom.sun.management.jmxremote.password.file=$CATALINA_BASE/conf/jmxremote.password -Dcom.sun.management.jmxremote.ssl=false -Dco

Re: Tomcat JMX connection - Authentication failed.

2011-01-13 Thread André Warnier
Ziggy wrote: Tomcat JMX connection - Authentication failed. I am having some problems setting up Tomcat for JMX. I added the following properties to CATALINA_OPTS CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=18070 -Dcom.sun.management.jmxremote.password.file=$CATALINA_BASE/conf/jmxremote.