3 Replies Latest reply on Oct 3, 2013 10:10 AM by Samineni S

    Problem when restarting: javax.naming.NameNotFoundException:

    tola awofolu Newbie

      Hi all,

      I'm a newbie to JBoss and I hope this is an easy question. Basically I'm having trouble with shutting down the server (JBoss 5.0, CentOS 5):

      [root@XXXDD standard-report]# $JBOSS_HOME/bin/shutdown.sh -S
      Exception in thread "main" javax.naming.NameNotFoundException: jmx not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:564)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:572)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:578)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:288)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
      at sun.rmi.transport.Transport$1.run(Transport.java:159)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
      at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
      at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
      at $Proxy0.lookup(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at org.jboss.Shutdown.main(Shutdown.java:218)

      Now the problem is that the application I deployed has nothing to do with JMX (it's a JRuby application...)

      Also, the shutdown was working before, it only broke when I attempted to start the server using:

      $JBOSS_HOME/bin/run.sh -b 0.0.0.0 >& /dev/null &

      PLEASE HELP!!! (Need a fix urgently as I'm supposed to have been done with tthe deployment by now...)

      Thanks in advance

        • 1. Re: Problem when restarting: javax.naming.NameNotFoundExcept
          Peter Johnson Master

          I suspect a problem with your /etc/hosts file. See if this post helps: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=93668

          By the way, shutdown.sh uses JMX to tell the app server to shut down.

          • 2. Re: Problem when restarting: javax.naming.NameNotFoundExcept
            tola awofolu Newbie

            That was it - worked like a charm. Thanks!

            • 3. Re: Problem when restarting: javax.naming.NameNotFoundException:
              Samineni S Newbie

              I am getting similar error while stopping the server throuhg eclipse IDE in windows enviroment. Could you please advise.

               

              Exception in thread "main" javax.naming.NameNotFoundException: jmx not bound

              at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)

              at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)

              at org.jnp.server.NamingServer.getObject(NamingServer.java:543)

              at org.jnp.server.NamingServer.lookup(NamingServer.java:267)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)

              at sun.rmi.transport.Transport$1.run(Transport.java:159)

              at java.security.AccessController.doPrivileged(Native Method)

              at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

              at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)

              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

              at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

              at java.lang.Thread.run(Thread.java:619)

              at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)

              at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)

              at sun.rmi.server.UnicastRef.invoke(Unknown Source)

              at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)

              at javax.naming.InitialContext.lookup(Unknown Source)

              at org.jboss.Shutdown.main(Shutdown.java:214)