Hi Jean-Baptiste, One additional update.
If I change only rmiServerHost to 0.0.0.0 (and leave the rmiRegistryHost at 127.0.0.1) service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/karaf-root will work. Windows does some weird stuff with name resolution (especially for localhost) and it looks as if a normal lookup for localhost will return the IPv6 address ::1, but a reverse lookup to 127.0.0.1 will also return localhost as a host name. Maybe the RMI registry is somewhat confused by that. Best regards Stephan -----Original Message----- From: Siano, Stephan [mailto:stephan.si...@sap.com] Sent: Dienstag, 21. Februar 2017 16:07 To: user@karaf.apache.org Subject: RE: JMX Console with Karaf 4.1.x Hi, It's a Windows 10 system. Localhost is actually resolved to ::1 (though 127.0.0.1 will also work as a loopback ip address). I tried both service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/karaf-root with the default setting and service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root with rmiRegistryHost and rmiServerHost set to ::1 Neither of them work... I guess there are some issues with IPv6... Best regards Stephan -----Original Message----- From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net] Sent: Dienstag, 21. Februar 2017 13:01 To: user@karaf.apache.org Subject: Re: JMX Console with Karaf 4.1.x What's the content of your etc/hosts and what's the IP address of the loopback interface ? Can you check with ifconfig -a if loopback is not on 127.0.1.0 or 127.0.1.1 (it's classic on Ubuntu system :)). Regards JB On 02/21/2017 12:44 PM, Siano, Stephan wrote: > Hi Jean-Baptiste, > > Thanks a lot for the info. When I change the properties to 0.0.0.0, I can > connect with JConsole again. > > However I am wondering why this is necessary at all. The server and the > jconsole are running on the same system, so why does the connection not work > with service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root if I use the > default properties? > > Best regards > Stephan > > -----Original Message----- > From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net] > Sent: Dienstag, 21. Februar 2017 09:57 > To: user@karaf.apache.org > Subject: Re: JMX Console with Karaf 4.1.x > > Hi Stephan, > > if you take a look in etc/org.apache.karaf.management.cfg, you can see we > change the host address from 0.0.0.0 to 127.0.0.1. > > Can you change with: > > rmiRegistryHost=0.0.0.0 > rmiServerHost=0.0.0.0 > > in etc/org.apache.karaf.management.cfg and restart. > > I'm pretty sure it will work as in 4.0.8. > > Regards > JB > > On 02/21/2017 08:46 AM, Siano, Stephan wrote: >> Hi, >> >> >> >> I was trying out karaf 4.1.x and noticed that connection with the JMX >> console does not work with that (at least not in the way it works >> with karaf 4.0.8). I tried both 4.1.0 and the current 4.1.1-SNAPSHOT. >> >> >> >> Has the JMX MBean server changed on purpose in some way between this >> versions or is this just a bug (in that case I could open a JIRA item >> for that). >> >> >> >> Best regards >> >> Stephan >> > > -- > Jean-Baptiste Onofré > jbono...@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com