1 Reply Latest reply on Apr 24, 2003 3:25 PM by Adrian Brock

    Start Problems! Similar to startService Problems

    Efstathios Newbie

      Hi,
      I have create a message bean which
      extends ServiceMBeanSupport &
      implements MessageDrivenBean, MessageListener, Service.

      From jmx-console I get methods:
      create()
      start()
      stop()
      destroy()

      When I try to invoke() the start method I get :
      javax.naming.NameAlreadyBoundException.

      Could anyone start me in the right direction of tracking this problem down?

      The complete error message is :

      14:56:11,258 ERROR [MessageDrivenContainer] Could not set up environment
      javax.naming.NameAlreadyBoundException; remaining name 'env'
      at org.jnp.server.NamingServer.createSubcontext(NamingServer.java:451)
      at org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:820)
      at org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:806)
      at org.jboss.ejb.Container.setupEnvironment(Container.java:897)
      at org.jboss.ejb.Container.start(Container.java:592)
      at org.jboss.ejb.MessageDrivenContainer.start(MessageDrivenContainer.java:197)
      at org.jboss.ejb.Container.invoke(Container.java:782)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl.invoke(RMIAdaptorImpl.java:283)
      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:324)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      at sun.rmi.transport.Transport$1.run(Transport.java:148)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:536)
      14:56:11,305 ERROR [MessageDrivenContainer] root cause