6 Replies Latest reply on Jun 20, 2003 7:52 AM by amartinr

    Error in startup Jboss 4.0

    lvhuyen

      I can't startup JBoss 4.0.
      I'm using JDK 1.4.
      Please help me.

      I got the following error:
      org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
      e: (javax.naming.NameAlreadyBoundException; remaining name 'env')
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:40
      8)...


      15:10:47,286 ERROR [MainDeployer] could not start deployment: file:/D:/JavaProgr
      ams/JBoss/jboss/server/default/deploy/jboss-net.sar/jboss-net.war/
      MBeanException: org.jboss.deployment.DeploymentException: Error during deploy; -
      nested throwable: (javax.naming.NameAlreadyBoundException; remaining name 'env'
      )
      Cause: org.jboss.deployment.DeploymentException: Error during deploy; - nested t
      hrowable: (javax.naming.NameAlreadyBoundException; remaining name 'env')
      at org.jboss.mx.server.ReflectedDispatcher.handleInvocationExceptions(Re
      flectedDispatcher.java:103)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.
      java:76)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
      ...


      ...
      MBeans waiting for classes:

      MBeans waiting for other MBeans:

      { objectName: jboss.deployment:name=file%3a/D%3a/JavaPrograms/JBoss/jboss/server
      /default/deploy/jboss-net.sar/jboss-net.war/,service=DeploymentInfo
      state: NOTSTARTABLE
      problem: org.jboss.deployment.DeploymentException: Error during deploy; - nest
      ed throwable: (javax.naming.NameAlreadyBoundException; remaining name 'env')
      } org.jboss.system.ServiceContext@f2aa789f,


      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:

      Incompletely deployed packages:
      [{ 'jboss-net.war' URL: 'file:/D:/JavaPrograms/JBoss/jboss/server/default/deploy
      /jboss-net.sar/jboss-net.war/' localURL: 'file:/D:/JavaPrograms/JBoss/jboss/serv
      er/default/deploy/jboss-net.sar/jboss-net.war/' watching: 'file:/D:/JavaPrograms
      /JBoss/jboss/server/default/deploy/jboss-net.sar/jboss-net.war/WEB-INF/web.xml'
      SubDeployer: org.jboss.web.catalina.EmbeddedCatalinaService41@152b6f5 }, { 'jbos
      s-net.war' URL: 'file:/D:/JavaPrograms/JBoss/jboss/server/default/deploy/jboss-n
      et.sar/jboss-net.war/' localURL: 'file:/D:/JavaPrograms/JBoss/jboss/server/defau
      lt/deploy/jboss-net.sar/jboss-net.war/' watching: 'file:/D:/JavaPrograms/JBoss/j
      boss/server/default/deploy/jboss-net.sar/jboss-net.war/WEB-INF/web.xml' SubDeplo
      yer: org.jboss.web.catalina.EmbeddedCatalinaService41@152b6f5 }, { 'jboss-net.wa
      r' URL: 'file:/D:/JavaPrograms/JBoss/jboss/server/default/deploy/jboss-net.sar/j
      boss-net.war/' localURL: 'file:/D:/JavaPrograms/JBoss/jboss/server/default/deplo
      y/jboss-net.sar/jboss-net.war/' watching: 'file:/D:/JavaPrograms/JBoss/jboss/ser
      ver/default/deploy/jboss-net.sar/jboss-net.war/WEB-INF/web.xml' SubDeployer: org
      .jboss.web.catalina.EmbeddedCatalinaService41@152b6f5 }, { 'jboss-net.war' URL:
      'file:/D:/JavaPrograms/JBoss/jboss/server/default/deploy/jboss-net.sar/jboss-net
      .war/' localURL: 'file:/D:/JavaPrograms/JBoss/jboss/server/default/deploy/jboss-
      net.sar/jboss-net.war/' watching: 'file:/D:/JavaPrograms/JBoss/jboss/server/defa
      ult/deploy/jboss-net.sar/jboss-net.war/WEB-INF/web.xml' SubDeployer: org.jboss.w
      eb.catalina.EmbeddedCatalinaService41@152b6f5 }, { 'jboss-net.war' URL: 'file:/D
      :/JavaPrograms/JBoss/jboss/server/default/deploy/jboss-net.sar/jboss-net.war/' l
      ocalURL: 'file:/D:/JavaPrograms/JBoss/jboss/server/default/deploy/jboss-net.sar/
      jboss-net.war/' watching: 'file:/D:/JavaPrograms/JBoss/jboss/server/default/depl
      oy/jboss-net.sar/jboss-net.war/WEB-INF/web.xml' SubDeployer: org.jboss.web.catal
      ina.EmbeddedCatalinaService41@152b6f5 }]
      MBeans waiting for classes:

      MBeans waiting for other MBeans:

      { objectName: jboss.deployment:name=file%3a/D%3a/JavaPrograms/JBoss/jboss/server
      /default/deploy/jboss-net.sar/jboss-net.war/,service=DeploymentInfo
      state: NOTSTARTABLE
      problem: org.jboss.deployment.DeploymentException: Error during deploy; - nest
      ed throwable: (javax.naming.NameAlreadyBoundException; remaining name 'env')
      } org.jboss.system.ServiceContext@f2aa789f,


      15:11:12,403 INFO [URLDeploymentScanner] Started
      15:11:12,403 INFO [MainDeployer] Deployed package: file:/D:/JavaPrograms/JBoss/
      jboss/server/default/conf/jboss-service.xml
      15:11:12,413 INFO [Server] JBoss started in 122s:637ms

        • 1. Re: Error in startup Jboss 4.0
          lvhuyen

          I'm very sorry that, I'm using JBoss4.0 - Tomcat4.1.24.
          When I use JBoss4.0 (with Jetty), I have no error.
          Please tell me how to use JBoss4.0 - Tomcat4.1.24.

          • 2. Re: Error in startup Jboss 4.0
            hembreed

            I'm getting the same error when it launches. It does come up though:

            MBeans waiting for classes:

            MBeans waiting for other MBeans:

            { objectName: jboss.deployment:name=file%3a/Volumes/Fig/usr/local/jboss/jboss-4.0.0DR1_tomcat-4.1.24/server/default/deploy/jboss-net.sar/jboss-net.war/,service=DeploymentInfo
            state: NOTSTARTABLE
            problem: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NameAlreadyBoundException; remaining name 'env')
            } org.jboss.system.ServiceContext@cbd901f2,


            23:08:22,635 INFO [URLDeploymentScanner] Started
            23:08:22,644 INFO [MainDeployer] Deployed package: file:/Volumes/Fig/usr/local/jboss/jboss-4.0.0DR1_tomcat-4.1.24/server/default/conf/jboss-service.xml
            23:08:22,661 INFO [Server] JBoss started in 49s:917ms

            If I try http://localhost:8080/jmx-console/index.jsp i get the management console, but if I try:
            http://localhost:8080/HelloWorld/Helloworlds
            I get
            HTTP Status 500 - No Context configured to process this request

            the helloworld app is at jboss/deploy/HelloWorld.ear
            I'm doing this on a MacOSX server (10.2.6) with java 1.4.1

            • 3. Re: Error in startup Jboss 4.0
              hembreed

              I managed to get past this. Although nothing is using the database at this point, that seems to have been the source of the problem. I replaced the server/default/deploy/hsqldb-ds.xml with postgres-ds.xml and then edited server/default/conf/standardjbosscmp-jdbc.xml to change the default database. I just added the postgreSQL and commented out the reference to hypersonic. Like so:

              <jbosscmp-jdbc>


              java:/PostgresDS
              <datasource-mapping>PostgreSQL</datasource-mapping>
              <!-- java:/DefaultDS
              <datasource-mapping>Hypersonic SQL</datasource-mapping>
              -->
              <create-table>true</create-table>
              <remove-table>false</remove-table>
              <read-only>false</read-only>

              there is probably more to do here. I'm new to JBOSS so I'm not sure what all I've done here or why it works. I suppose the default is the hypersonic database but it doesn't come with the installation. I have need for the postgreSQL so I just changed it to that rather than trying to get the hpersonic one to work.

              There is probably serveral things wrong with what I've done here, hopefully someone will point them out to me before I lose too much hair. Everything appears to be functional, the HelloWorld app said hya. The one I was shooting for, Value, a heavy duty accounting package, looks good but, it's hard to tell with my limited accounting skills.

              • 4. Re: Error in startup Jboss 4.0
                mauneg

                I have the same problem.
                My app runs with jboss-3.0.4_tomcat-4.1.12 while jboss-4.0.0DR1_tomcat-4.1.24 doesn't start-up properly. My db is Oracle 8i.
                I added jdk 1.4 and adapted hembreed's fix to my OracleDS but still doesn't work.
                Please help!
                mn

                • 5. Re: Error in startup Jboss 4.0
                  lvhuyen

                  As Hembreed suggest, I have changed the file standardjbosscmp-jdbc.xml to reference to my OracleDS, but jboss still not start properly.
                  I think it has problem in jboss-net.sar (as in the ERROR I had shown in the first message)
                  I have tried to remove the jboss-net.sar directory in the deploy directory but another problem has occured.

                  • 6. Re: Error in startup Jboss 4.0
                    amartinr

                    I have unzip jboss-4.0.0DR1_tomcat-4.1.24.zip on Linux and when I'm going to start JBoss I take the same error in all Deploy of .war.

                    2003-06-20 10:57:33,306 WARN [org.jboss.system.ServiceController] Problem starting service jboss.deployment:name=file%3a/opt/jboss_tomcat/server/default/deploy/jboss-net.sar/jboss-net.war/,service=DeploymentInfo
                    org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NameAlreadyBoundException; remaining name 'env')

                    I'm using 'Default' configuration.

                    Anybody knows what's happenning?

                    Tomcat start OK.

                    Thanks in advance!!

                    Ana