0 Replies Latest reply on Apr 4, 2002 5:46 AM by Ralf Bitsch

    [ERROR,MessageDrivenContainer] Could not set up environment

    Ralf Bitsch Newbie

      Hi Folks,

      I got a problem with a Message Driven Bean I created. This particular Bean opens a Database-Connection to MySQL and does some Inserts/Updates. Nothing very complicated. Now my Problem:

      Once the Bean has done a Database-Operation and I’m gonna try to deploy it again I get the following exception: (This doesn’t happen if the Bean hasn’t done any DB-Operations)



      [INFO,J2eeDeployer] Destroying application DebugMDB.jar
      [INFO,J2eeDeployer] Deploy J2EE application: file:/D:/JBoss-2.4.4/deploy/DebugMD
      B.jar
      [INFO,J2eeDeployer] Create application DebugMDB.jar
      [INFO,J2eeDeployer] install EJB module DebugMDB.jar
      [INFO,ContainerFactory] Deploying:file:/D:/JBoss-2.4.4/tmp/deploy/Default/DebugM
      DB.jar/
      [INFO,ContainerFactory] Deploying DebugMDB
      [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:
      648)
      at org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:
      634)
      at org.jboss.ejb.Container.setupEnvironment(Container.java:447)
      at org.jboss.ejb.Container.init(Container.java:359)
      at org.jboss.ejb.MessageDrivenContainer.init(MessageDrivenContainer.java
      :155)
      at org.jboss.ejb.Application.init(Application.java:202)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:372)
      at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)

      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
      459)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
      at java.lang.Thread.run(Thread.java:484)
      [ERROR,MessageDrivenContainer] Serious error in init:


      I’d appriciate any help.

      Rgds.
      Ralf