On Fri, 2013-07-26 at 12:57 -0400, Christopher Schultz wrote:
> All,
> 
> I have the JmxRemoteLifecycleListener enabled with the following
> configuration:
> 
> System properties (confirmed effective):
> -Dcom.sun.management.jmxremote.password.file=app/conf/jmxremote.password
> -Dcom.sun.management.jmxremote.access.file=app/conf/jmxremote.access
> -Dcom.sun.management.jmxremote.ssl=false
> 
> Also these files:
> $ cat app/conf/jmxremote.password
> admin letmein
> $ cat app/conf/jmxremote.access
> admin readwrite
> 
> ...and server.xml:
> 
>   <Listener
> className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener"
>             rmiRegistryPortPlatform="18215"
>             rmiServerPortPlatform="18217"
>             useLocalPorts="true" />
> 
> I can confirm that my (remote) Java process is listening on these ports:
> 
> $ netstat -plan | grep 1821
> tcp6       0      0 :::18215                :::*
> LISTEN      24991/java
> tcp6       0      0 :::18217                :::*
> LISTEN      24991/java
> 
> I can also confirm that my local machine is forwarding these ports via
> SSH:
> 
> $ netstat -an | grep 1821
> tcp4       0      0  127.0.0.1.18217        *.*
> LISTEN
> tcp6       0      0  ::1.18217              *.*
> LISTEN
> tcp4       0      0  127.0.0.1.18215        *.*
> LISTEN
> tcp6       0      0  ::1.18215              *.*
> LISTEN
> 
Presumably sshd is the listener here.

Any chance the remote only accepts tcp6 connections and your local is
trying to connect via the tcp4 address?  I'm pretty sure the jvm default
now is to "prefer IPv6" but maybe you've got some funky setting
somewhere.

Is there any message conveying *how* it failed, e.g. "connection
refused", "invalid handshake" etc?

Could there be missing classes that it's trying to resolve via rmi?

No answers here but hopefully some useful questions.

-tim

> When attempting to connect via jconsole (as per Tomcat documentation[1]):
> 
> $ jconsole
> service:jmx:rmi://localhost:18217/jndi/rmi://localhost:18215/jmxrmi
> 
> This command doesn't ask for username and password, and fails. So I
> use jconsole's GUI interface to connect to a "Remote Process" and
> enter these values:
> 
> Remote Process:
> service:jmx:rmi://localhost:18217/jndi/rmi://localhost:18215/jmxrmi
> Username: admin
> Password: letmein
> 
> jconsole tells me that it can't connect via SSL and I say "okay,
> connect insecurely" and the connection fails immediately.
> 
> Am I missing a step somewhere? Am I doing it wrong?
> 
> Running Oraacle Java 1.7.0_25-b15 on both the client and the server.
> 
> Thanks!
> -chris
> 
> [1]
> http://tomcat.apache.org/tomcat-7.0-doc/config/listeners.html#JMX_Remote_Lifecycle_Listener_-_org.apache.catalina.mbeans.JmxRemoteLifecycleListener
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to