Results 1 to 1 of 1
  1. #1
    dyamanoha is offline Member
    Join Date
    Oct 2010
    Posts
    1
    Rep Power
    0

    Default JMX Basic trouble

    I cant seem to enable authentication on my jmx server...

    I need to be able to connect to an rmi server through a firewall, hence I found myself doing this:

    Monitoring and Management Using JMX Technology - Java SE Monitoring and Management Guide (Example 2-5)

    The only changes I made are the port numbers and file names.

    Just running that code, I can't get authentication to work. I can connect to my jmx agent with no credentials or just simply bad credentials. I'm not passing anything to the jvm when I start up the RMI server, so authentication _should_ be on!

    Playing around with the code a bit, I was able to verify that the remote.access file is indeed being read: If I invalidate the path, the server fails to start:

    env.put("jmx.remote.x.password.file", "c:/jmxremote.password");


    >>> Exception in thread "main" java.lang.IllegalArgumentException: c:\jmxremote.access (The system cannot find the file specified)

    However, if I do something similar to the password file, everything starts up perfectly fine:

    env.put("jmx.remote.x.password.file", "c:/jmxremote.password");

    >>> Starts fine

    Any idea why I can't seem to get authentication working??


    Here's my code... it shouldn't run but does.

    http://pastebin.com/PkWGc3wG
    Last edited by dyamanoha; 10-08-2010 at 01:13 AM.

Similar Threads

  1. Need really basic help!
    By anthonyalaan in forum New To Java
    Replies: 9
    Last Post: 09-12-2010, 02:43 PM
  2. basic java
    By vijay24805 in forum New To Java
    Replies: 25
    Last Post: 04-14-2009, 03:46 AM
  3. Basic Help
    By robjames in forum New To Java
    Replies: 3
    Last Post: 02-09-2009, 03:58 AM
  4. Need some really basic help
    By Mayur in forum New To Java
    Replies: 6
    Last Post: 01-24-2009, 07:00 AM
  5. help with basic example
    By fred in forum New To Java
    Replies: 1
    Last Post: 07-20-2007, 06:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •