6 Replies Latest reply on Jul 30, 2007 8:00 PM by cogito-ergo-sum

    Failed to boot JBoss when installed through installation .xm

    cogito-ergo-sum

      Hi,
      I have installed JBOSS on Unix using an installation .xml created on Windows. But, when I start it up, I get these messages. How do I get past these errors ?

      1
       Failed to boot JBoss:
       org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss:service=Naming
       at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
       at org.jboss.system.ServiceController.install(ServiceController.java:226)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:615)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy4.install(Unknown Source)
       at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:615)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
       at org.jboss.Main.boot(Main.java:200)
       at org.jboss.Main$1.run(Main.java:490)
       at java.lang.Thread.run(Thread.java:799)
      
      


      Regards,
      Nags.

        • 1. Re: Failed to boot JBoss when installed through installation
          peterj

          Can I ask what an "installation .xml" is and how one goes about creating one in Windows and installing it on UNIX?

          Why not simply unzip the zip file?

          • 2. Re: Failed to boot JBoss when installed through installation
            cogito-ergo-sum

            Hi Peter,

            Can I ask what an "installation .xml" is and how one goes about creating one in Windows and installing it on UNIX?

            I am doing what has been described in this manual as "headless installation". To do this, one of the options that can be used is through http://docs.jboss.com/jbossas/guides/installguide/r1/en/html_single/#automated_install .

            Thus, I have installed JBoss on Windows (configured for DB2, etc.). Now, I want to use the generated XML to install on Unix.

            Regards,
            Nags.

            • 3. Re: Failed to boot JBoss when installed through installation
              peterj

              I think you would have better luck just unzipping the zip file. Or just take the installation directory in Windows and copy the whole thing to Unix (I have done this successfully, copying my JBoss AS setup from WinXP to Fedora).

              The error "Trying to install an already registered mbean" is typically resolved by reinstalling, or attempting to install using another mechanism - apparently a bad installation can cause this problem. See, for example, http://www.jboss.com/index.html?module=bb&op=viewtopic&t=113254.

              Which version of JBoss are you using? Are you using EJB3? What OS are you using? Which JVM?

              • 4. Re: Failed to boot JBoss when installed through installation
                cogito-ergo-sum

                Hi Peter,
                I tried a re-install. That is, deleted everything in the installation folder and the installation folder itself and then tried installing using :

                java -jar jems-installer-1.2.0.GA.jar -installGroup all installpath=/u/userid/jboss-4.0.5.GA


                When invoking, I get an altogether different errors.
                Could not create deployment: file: $JBOSS_HOME/server/default/deploy/*.xml


                Lot of services (collectively as *.xml above) get listed in the messages and AS never comes up.

                However, when I had done the first installation (using the method shown above), I got JBoss AS working. I was not able to shutdown; niether could I uninstall successfully. Hence, I had to delete the whole installation folder. Now, when I am trying to install (in either way) I get errors. I know, this is a stuff-up. But, surely, with the whole of the folder gone, the installation should succeed...?

                • 5. Re: Failed to boot JBoss when installed through installation
                  peterj

                  I really think you should try to just get the zip file containing the binary, unzip it, and run it. If your UNIX box does not have an unzip utility, you can always unzip on Windows and copy the whole directory tree to UNIX.

                  The primary reason some people even used the installer was to get EJB3 support. In 4.2, that support is built in. I suspect that most JBoss AS users simply download the zip file - before 4.0.3(?) that was the only method of installing JBoss AS.

                  • 6. Re: Failed to boot JBoss when installed through installation
                    cogito-ergo-sum

                    Hi Peter,
                    Thank you for your continued responses to my questions.

                    I really think you should try to just get the zip file containing the binary, unzip it, and run it.

                    I think, I would do so eventually.

                    However, strictly speaking, I was trying to do something (i.e. installation thru" an XML file) that is documented. And, if that does not work, well, it is a li'l disappointing...

                    Thanks again.