• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Enabling Java JConsole password protection?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am attempting to enable remote JMX access protection using the following + variations...
-Dcom.sun.management.jmxremote.port=9999
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.password.file=D:/myJmxPassword.password
-Dcom.sun.management.jmxremote.access.file=D:/myJmxAccess.properties
-Djava.security.manager

Also did use cacls to change owner of the file etc.

However I am still able to connect to the JVM by ignoring the initial challenge and then JConsole indicates "Connection Failed: Retry? The Connection to 9648 did not succeed. Would you like to try again?". Then then click "Connect" and it connects.

The variation on this is to click "Connect" on the initial New Connection by leaving UserName and Password blank. This results in a pop up "ConnectionFailedSSL1 ConnectionFAiledSSL2". After clicking "Insecure" access to the JVM is granted.

What am I missing and why is the connection port different than what I specified?

Thanks for looking,
Canadian999
 
reply
    Bookmark Topic Watch Topic
  • New Topic