0 Replies Latest reply on Sep 21, 2004 4:52 PM by Ed

    JMX start() method not working on MDB

    Ed Newbie


      I have a MDB that shows up in the JMX console and the stop() method works fine but when I invoke (press) the start() method, it thows the following error. I am running JBoss 3.0.8 on WinXP. My goal is to be able to make this MDB start and stop delivery of the messages on the fly.

      Thanks,
      Ed


      15:47:41,399 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:
      829)
       at org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:
      815)
       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.jav
      a: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.control.Server.invokeOpByName(Server.java:227)
       at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:196)
       at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorSer
      vlet.java:183)
       at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdap
      torServlet.java:78)
       at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServl
      et.java:60)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
       at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360
      )
       at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
      onHandler.java:294)
       at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
      58)
       at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
       at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
      Context.java:505)
       at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
       at org.mortbay.http.HttpServer.service(HttpServer.java:879)
       at org.jboss.jetty.Jetty.service(Jetty.java:460)
       at org.mortbay.http.HttpConnection.service(HttpConnection.java:770)
       at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:932)
       at org.mortbay.http.HttpConnection.handle(HttpConnection.java:787)
       at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
      201)
       at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
       at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:454)
      15:47:41,409 ERROR [MessageDrivenContainer] root cause
      15:47:41,429 WARN [jbossweb] WARNING: Exception for /jmx-console/HtmlAdaptor
      MBeanException: Exception in service lifecyle operation: start
      Cause: org.jboss.deployment.DeploymentException: Could not set up environment; -
       nested throwable: (javax.naming.NameAlreadyBoundException; remaining name 'env'
      )
       at org.jboss.ejb.Container.invoke(Container.java:801)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
       at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:227)
       at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:196)
       at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorSer.....