3 Replies Latest reply on Feb 26, 2004 11:35 AM by Rick Hightower

    I can't get to JMX to start invoking methods... (I need to i

    Rick Hightower Newbie

      I am trying to use JMX to call into the server and invalidate the security cache, but I can't seem to get to JMX.

      See for background info:

      I can't seem to init the server....


       protected void init() throws Exception {
       if (initialContext == null) {
       initialContext = new InitialContext();
       if (server == null) {
       String serverName =
      System.getProperty("testAdvantage.jboss.server.name"); //not set, this prop is null
       if (serverName == null) {
       serverName = InetAddress.getLocalHost().getHostName(); //the host name is RicksMachine
       server =
       (Remote) initialContext.lookup("jmx:" + serverName + ":rmi");

      Here is the exception I get.....


      10:07:15,312 ERROR [STDERR] javax.naming.NameNotFoundException: jmx:RicksMachine:rmi not bound
      10:07:15,312 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
      10:07:15,312 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
      10:07:15,312 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
      10:07:15,312 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
      10:07:15,312 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
      10:07:15,312 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
      10:07:15,312 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:347)
      10:07:15,312 ERROR [STDERR] at org.appfuse.webapp.service.UserManagerJBossSpecific.init(UserManagerJBossSpecific.java:102)