Results 1 to 3 of 3
  1. #1
    Vartika is offline Member
    Join Date
    Dec 2008
    Posts
    1
    Rep Power
    0

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

    Hello,

    I'm working on JBoss 4.2.2 and running a web project. After applying some changes in the code I did a class file update on the server and tried restarting the server. For the same I executed stop command on the server resulting into follow. exception.

    prompt:~$ sudo ./jboss_init_redhat.sh stop

    JBOSS_CMD_START = cd /.../jboss/bin; /.../jboss/bin/run.sh -c default -b 0.0.0.0
    Exception in thread "main" javax.naming.NameNotFoundException: jmx not bound
    at org.jnp.server.NamingServer.getBinding(NamingServe r.java:529)
    at org.jnp.server.NamingServer.getBinding(NamingServe r.java:537)
    at org.jnp.server.NamingServer.getObject(NamingServer .java:543)
    at org.jnp.server.NamingServer.lookup(NamingServer.ja va:267)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:294)
    at sun.rmi.transport.Transport$1.run(Transport.java:1 53)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport. java:149)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:466)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:707)
    at java.lang.Thread.run(Thread.java:595)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(StreamRemoteCall.java:247)
    at sun.rmi.transport.StreamRemoteCall.executeCall(Str eamRemoteCall.java:223)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:1 26)
    at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
    at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:667)
    at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:627)
    at javax.naming.InitialContext.lookup(InitialContext. java:351)
    at org.jboss.Shutdown.main(Shutdown.java:214)


    Please help and inform me about the solution. Thanks in advance.

    -Vartika

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Do you use any external Java packages? Seems you are using some externals but not import them into your project.

  3. #3
    kumariaa1 is offline Member
    Join Date
    Aug 2009
    Posts
    1
    Rep Power
    0

    Default solution

    kill all the jboss instances. I had multiple instances running. That seemed to fix my problem.

Similar Threads

  1. Replies: 5
    Last Post: 05-14-2008, 01:43 PM
  2. Replies: 1
    Last Post: 08-07-2007, 07:10 AM
  3. Replies: 1
    Last Post: 07-27-2007, 10:59 PM
  4. Replies: 1
    Last Post: 07-25-2007, 10:55 PM
  5. Replies: 1
    Last Post: 07-16-2007, 06:32 AM

Posting Permissions

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