9 Replies Latest reply on Aug 14, 2006 10:43 AM by Peter Johnson

    Installing JBoss application server

    Stephen Liu Newbie

      Hi folks,

      I have "jboss-4.0.4.GA-src.tar.gz" download and decompressed it with;

      # tar zxpf jboss-4.0.4.GA-src.tar.gz

      # cd jboss-4.0.4.GA-src/docbook-support/

      looking around in this directory and can't ascertain which doc shall I refer for installing JBoss application server. Please shed me some light. TIA

      B.R.
      satimis

        • 1. Re: Installing JBoss application server
          ashish jain Newbie

          for installing the JBOSS server open the link:

          http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=16942&release_id=416591

          click the link: jboss-4.0.4.GA.zip
          This will start downloading the file.

          unzip the file that is downloaded.

          Go to jboss-4.0.4.GA\bin directory and execute run.bat to start the server. If you are in windows environment you can double click the run.bat file otherwise you can type run at console and press return key.

          There is shutdown.bat file to stop the server.

          • 2. Re: Installing JBoss application server
            Stephen Liu Newbie

            Hi ashishjain,

            OS - Ubuntu-6.06-amd64 (Linux)


            Tks for your advice.

            Download jboss-4.0.4.GA.zip and confirmed md5sum

            $ sudo unzip /path/to/jboss-4.0.4.GA.zip
            $ sudo /jboss-4.0.4.GA/bin/run.bat
            password

            sudo: jboss-4.0.4.GA/bin/run.bat: command not found


            $ sudo jboss-4.0.4.GA/bin/run.sh
            Password:
            run.sh: Missing file: /lib/tools.jar
            run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
            =========================================================================
            
             JBoss Bootstrap Environment
            
             JBOSS_HOME: /home/satimis/jboss-4.0.4.GA
            
             JAVA: java
            
             JAVA_OPTS: -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dprogram.name=run.sh
            
             CLASSPATH: /home/satimis/jboss-4.0.4.GA/bin/run.jar:/lib/tools.jar
            
            =========================================================================
            
            19:20:49,661 INFO [Server] Starting JBoss (MX MicroKernel)...
            19:20:49,662 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
            19:20:49,664 INFO [Server] Home Dir: /home/satimis/jboss-4.0.4.GA
            19:20:49,664 INFO [Server] Home URL: file:/home/satimis/jboss-4.0.4.GA/
            19:20:49,665 INFO [Server] Patch URL: null
            19:20:49,665 INFO [Server] Server Name: default
            19:20:49,665 INFO [Server] Server Home Dir: /home/satimis/jboss-4.0.4.GA/server/default
            19:20:49,666 INFO [Server] Server Home URL: file:/home/satimis/jboss-4.0.4.GA/server/default/
            19:20:49,666 INFO [Server] Server Log Dir: /home/satimis/jboss-4.0.4.GA/server/default/log
            19:20:49,666 INFO [Server] Server Temp Dir: /home/satimis/jboss-4.0.4.GA/server/default/tmp
            19:20:49,667 INFO [Server] Root Deployment Filename: jboss-service.xml
            19:20:50,673 INFO [ServerInfo] Java version: 1.4.2,Free Software Foundation, Inc.
            19:20:50,673 INFO [ServerInfo] Java VM: GNU libgcj 4.1.0 (Ubuntu 4.1.0-1ubuntu8),Free Software Foundation, Inc.
            19:20:50,673 INFO [ServerInfo] OS-System: Linux 2.6.15-23-amd64-generic,x86_64
            19:20:50,913 WARN [ServiceController] Problem creating service jboss.system:service=MainDeployer
            java.lang.NoClassDefFoundError: $Proxy1
             at java.lang.Class.initializeClass(libgcj.so.7)
             at java.lang.reflect.Field.set(libgcj.so.7)
             at java.lang.reflect.Field.set(libgcj.so.7)
             at java.lang.reflect.Field.set(libgcj.so.7)
             at java.lang.reflect.Proxy$ClassFactory.generate(libgcj.so.7)
             at java.lang.reflect.Proxy.getProxyClass(libgcj.so.7)
             at java.lang.reflect.Proxy.newProxyInstance(libgcj.so.7)
             at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:395)
             at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
             at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:335)
             at org.jboss.system.server.ServerConfigLocator.locate(ServerConfigLocator.java:42)
             at org.jboss.deployment.MainDeployer.createService(MainDeployer.java:471)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:261)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
             at java.lang.reflect.Method.invoke(libgcj.so.7)
             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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
             at $Proxy0.create(Unknown Source)
             at org.jboss.system.ServiceController.create(ServiceController.java:331)
             at org.jboss.system.ServiceController.create(ServiceController.java:274)
             at java.lang.reflect.Method.invoke(libgcj.so.7)
             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.system.server.ServerImpl.startBootService(ServerImpl.java:564)
             at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:446)
             at org.jboss.system.server.ServerImpl.start(ServerImpl.java:367)
             at org.jboss.Main.boot(Main.java:201)
             at org.jboss.Main$1.run(Main.java:470)
             at java.lang.Thread.run(libgcj.so.7)
            Caused by: java.lang.ClassNotFoundException: javax.management.MBeanServer
             at java.lang.ClassLoader.findClass(libgcj.so.7)
             at java.lang.ClassLoader.loadClass(libgcj.so.7)
             at java.lang.ClassLoader.loadClass(libgcj.so.7)
             at org.jboss.mx.util.MBeanProxyExt$2.loadClass(MBeanProxyExt.java:375)
             at java.lang.Class.initializeClass(libgcj.so.7)
             ...35 more
            
            19:20:51,056 WARN [ServiceController] Problem creating service jboss.system:service=JARDeployer
            java.lang.NoClassDefFoundError: $Proxy2
             at java.lang.Class.initializeClass(libgcj.so.7)
             at java.lang.reflect.Field.set(libgcj.so.7)
             at java.lang.reflect.Field.set(libgcj.so.7)
             at java.lang.reflect.Field.set(libgcj.so.7)
             at java.lang.reflect.Proxy$ClassFactory.generate(libgcj.so.7)
             at java.lang.reflect.Proxy.getProxyClass(libgcj.so.7)
             at java.lang.reflect.Proxy.newProxyInstance(libgcj.so.7)
             at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:395)
             at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
             at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:335)
             at org.jboss.system.server.ServerConfigLocator.locate(ServerConfigLocator.java:42)
             at org.jboss.deployment.SubDeployerSupport.createService(SubDeployerSupport.java:106)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:261)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
             at java.lang.reflect.Method.invoke(libgcj.so.7)
             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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
             at $Proxy0.create(Unknown Source)
             at org.jboss.system.ServiceController.create(ServiceController.java:331)
             at org.jboss.system.ServiceController.create(ServiceController.java:274)
             at java.lang.reflect.Method.invoke(libgcj.so.7)
             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.system.server.ServerImpl.startBootService(ServerImpl.java:564)
             at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:466)
             at org.jboss.system.server.ServerImpl.start(ServerImpl.java:367)
             at org.jboss.Main.boot(Main.java:201)
             at org.jboss.Main$1.run(Main.java:470)
             at java.lang.Thread.run(libgcj.so.7)
            Caused by: java.lang.ClassNotFoundException: javax.management.MBeanServer
             at java.lang.ClassLoader.findClass(libgcj.so.7)
             at java.lang.ClassLoader.loadClass(libgcj.so.7)
             at java.lang.ClassLoader.loadClass(libgcj.so.7)
             at org.jboss.mx.util.MBeanProxyExt$2.loadClass(MBeanProxyExt.java:375)
             at java.lang.Class.initializeClass(libgcj.so.7)
             ...35 more
            
            19:20:51,185 WARN [ServiceController] Problem creating service jboss.system:service=ServiceDeployer
            java.lang.NoClassDefFoundError: $Proxy3
             at java.lang.Class.initializeClass(libgcj.so.7)
             at java.lang.reflect.Field.set(libgcj.so.7)
             at java.lang.reflect.Field.set(libgcj.so.7)
             at java.lang.reflect.Field.set(libgcj.so.7)
             at java.lang.reflect.Proxy$ClassFactory.generate(libgcj.so.7)
             at java.lang.reflect.Proxy.getProxyClass(libgcj.so.7)
             at java.lang.reflect.Proxy.newProxyInstance(libgcj.so.7)
             at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:395)
             at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
             at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:335)
             at org.jboss.system.server.ServerConfigLocator.locate(ServerConfigLocator.java:42)
             at org.jboss.deployment.SubDeployerSupport.createService(SubDeployerSupport.java:106)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:261)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
             at java.lang.reflect.Method.invoke(libgcj.so.7)
             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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
             at $Proxy0.create(Unknown Source)
             at org.jboss.system.ServiceController.create(ServiceController.java:331)
             at org.jboss.system.ServiceController.create(ServiceController.java:274)
             at java.lang.reflect.Method.invoke(libgcj.so.7)
             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.system.server.ServerImpl.startBootService(ServerImpl.java:564)
             at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:470)
             at org.jboss.system.server.ServerImpl.start(ServerImpl.java:367)
             at org.jboss.Main.boot(Main.java:201)
             at org.jboss.Main$1.run(Main.java:470)
             at java.lang.Thread.run(libgcj.so.7)
            Caused by: java.lang.ClassNotFoundException: javax.management.MBeanServer
             at java.lang.ClassLoader.findClass(libgcj.so.7)
             at java.lang.ClassLoader.loadClass(libgcj.so.7)
             at java.lang.ClassLoader.loadClass(libgcj.so.7)
             at org.jboss.mx.util.MBeanProxyExt$2.loadClass(MBeanProxyExt.java:375)
             at java.lang.Class.initializeClass(libgcj.so.7)
             ...35 more
            
            19:20:51,207 INFO [Server] Core system initialized
            19:20:51,227 ERROR [MainDeployer] Could not make local copy for file:/home/satimis/jboss-4.0.4.GA/server/default/conf/jboss-service.xml
            java.lang.NullPointerException
             at java.lang.String.startsWith(libgcj.so.7)
             at org.jboss.deployment.MainDeployer.inLocalCopyDir(MainDeployer.java:1185)
             at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:1159)
             at org.jboss.deployment.MainDeployer.init(MainDeployer.java:841)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:773)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:756)
             at java.lang.reflect.Method.invoke(libgcj.so.7)
             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.deploy(Unknown Source)
             at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:487)
             at org.jboss.system.server.ServerImpl.start(ServerImpl.java:367)
             at org.jboss.Main.boot(Main.java:201)
             at org.jboss.Main$1.run(Main.java:470)
             at java.lang.Thread.run(libgcj.so.7)
            
            19:20:51,264 ERROR [MainDeployer] Could not initialise deployment: file:/home/satimis/jboss-4.0.4.GA/server/default/conf/jboss-service.xml
            java.lang.NullPointerException
             at java.lang.String.startsWith(libgcj.so.7)
             at org.jboss.deployment.MainDeployer.inLocalCopyDir(MainDeployer.java:1185)
             at org.jboss.deployment.MainDeployer.init(MainDeployer.java:915)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:773)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:756)
             at java.lang.reflect.Method.invoke(libgcj.so.7)
             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.deploy(Unknown Source)
             at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:487)
             at org.jboss.system.server.ServerImpl.start(ServerImpl.java:367)
             at org.jboss.Main.boot(Main.java:201)
             at org.jboss.Main$1.run(Main.java:470)
             at java.lang.Thread.run(libgcj.so.7)
            
            Failed to boot JBoss:
            org.jboss.deployment.DeploymentException: Could not initialise deployment: file:/home/satimis/jboss-4.0.4.GA/server/default/conf/jboss-service.xml; - nested throwable: (java.lang.NullPointerException)
             at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:805)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:773)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:756)
             at java.lang.reflect.Method.invoke(libgcj.so.7)
             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.deploy(Unknown Source)
             at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:487)
             at org.jboss.system.server.ServerImpl.start(ServerImpl.java:367)
             at org.jboss.Main.boot(Main.java:201)
             at org.jboss.Main$1.run(Main.java:470)
             at java.lang.Thread.run(libgcj.so.7)
            Caused by: java.lang.NullPointerException
             at java.lang.String.startsWith(libgcj.so.7)
             at org.jboss.deployment.MainDeployer.inLocalCopyDir(MainDeployer.java:1185)
             at org.jboss.deployment.MainDeployer.init(MainDeployer.java:915)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
             ...15 more
            19:20:51,347 INFO [Server] Runtime shutdown hook called, forceHalt: true
            19:20:51,348 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
            19:20:51,360 INFO [Server] Shutdown complete
            Shutdown complete
            Halting VM


            I haven't installed "jrockit-R26.4.0-jdk1.5.0_06-linux-x64" yet and encountered problem on its installation. I'm now struggling solving the problem.

            Will come back later. Tks.


            B.R.
            satimis

            • 3. Re: Installing JBoss application server
              Stephen Liu Newbie

              Hi ashishjain,

              Now I have "jrockit-R26.4.0-jdk1.5.0_06" installed.

              $ ls jrockit-R26.4.0-jdk1.5.0_06/

              bin console demo include jra jre lib LICENSE memleak mercuryprofiler README.TXT sample src.zip


              $ ls jrockit-R26.4.0-jdk1.5.0_06/bin/
              appletviewer extcheck jarsigner javadoc jconsole jra jstat kinit memleak pack200 rmid servertool
              apt idlj java javah jdb jrcc jstatd klist native2ascii policytool rmiregistry tnameserv
              console jar javac javap jps jrcmd keytool ktab orbd rmic serialver unpack200



              "jboss-4.0.4.GA" unzipped


              But still failed to start JBoss.

              $ sudo jboss-4.0.4.GA/bin/run.sh
              run.sh: Missing file: /lib/tools.jar
              run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
              =========================================================================
              
               JBoss Bootstrap Environment
              
               JBOSS_HOME: /home/satimis/jboss-4.0.4.GA
              
               JAVA: java
              
               JAVA_OPTS: -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dprogram.name=run.sh
              
               CLASSPATH: /home/satimis/jboss-4.0.4.GA/bin/run.jar:/lib/tools.jar
              
              =========================================================================
              
              19:56:17,954 INFO [Server] Starting JBoss (MX MicroKernel)...
              19:56:17,955 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
              19:56:17,957 INFO [Server] Home Dir: /home/satimis/jboss-4.0.4.GA
              19:56:17,957 INFO [Server] Home URL: file:/home/satimis/jboss-4.0.4.GA/
              19:56:17,958 INFO [Server] Patch URL: null
              19:56:17,958 INFO [Server] Server Name: default
              19:56:17,958 INFO [Server] Server Home Dir: /home/satimis/jboss-4.0.4.GA/server/default
              19:56:17,959 INFO [Server] Server Home URL: file:/home/satimis/jboss-4.0.4.GA/server/default/
              19:56:17,959 INFO [Server] Server Log Dir: /home/satimis/jboss-4.0.4.GA/server/default/log
              19:56:17,959 INFO [Server] Server Temp Dir: /home/satimis/jboss-4.0.4.GA/server/default/tmp
              19:56:17,960 INFO [Server] Root Deployment Filename: jboss-service.xml
              19:56:19,034 INFO [ServerInfo] Java version: 1.4.2,Free Software Foundation, Inc.
              19:56:19,034 INFO [ServerInfo] Java VM: GNU libgcj 4.1.0 (Ubuntu 4.1.0-1ubuntu8),Free Software Foundation, Inc.
              19:56:19,034 INFO [ServerInfo] OS-System: Linux 2.6.15-23-amd64-generic,x86_64
              19:56:19,258 WARN [ServiceController] Problem creating service jboss.system:service=MainDeployer
              java.lang.NoClassDefFoundError: $Proxy1
               at java.lang.Class.initializeClass(libgcj.so.7)
               at java.lang.reflect.Field.set(libgcj.so.7)
               at java.lang.reflect.Field.set(libgcj.so.7)
               at java.lang.reflect.Field.set(libgcj.so.7)
               at java.lang.reflect.Proxy$ClassFactory.generate(libgcj.so.7)
               at java.lang.reflect.Proxy.getProxyClass(libgcj.so.7)
               at java.lang.reflect.Proxy.newProxyInstance(libgcj.so.7)
               at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:395)
               at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
               at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:335)
               at org.jboss.system.server.ServerConfigLocator.locate(ServerConfigLocator.java:42)
               at org.jboss.deployment.MainDeployer.createService(MainDeployer.java:471)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:261)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
               at java.lang.reflect.Method.invoke(libgcj.so.7)
               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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
               at $Proxy0.create(Unknown Source)
               at org.jboss.system.ServiceController.create(ServiceController.java:331)
               at org.jboss.system.ServiceController.create(ServiceController.java:274)
               at java.lang.reflect.Method.invoke(libgcj.so.7)
               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.system.server.ServerImpl.startBootService(ServerImpl.java:564)
               at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:446)
               at org.jboss.system.server.ServerImpl.start(ServerImpl.java:367)
               at org.jboss.Main.boot(Main.java:201)
               at org.jboss.Main$1.run(Main.java:470)
               at java.lang.Thread.run(libgcj.so.7)
              Caused by: java.lang.ClassNotFoundException: javax.management.MBeanServer
               at java.lang.ClassLoader.findClass(libgcj.so.7)
               at java.lang.ClassLoader.loadClass(libgcj.so.7)
               at java.lang.ClassLoader.loadClass(libgcj.so.7)
               at org.jboss.mx.util.MBeanProxyExt$2.loadClass(MBeanProxyExt.java:375)
               at java.lang.Class.initializeClass(libgcj.so.7)
               ...35 more
              
              19:56:19,400 WARN [ServiceController] Problem creating service jboss.system:service=JARDeployer
              java.lang.NoClassDefFoundError: $Proxy2
               at java.lang.Class.initializeClass(libgcj.so.7)
               at java.lang.reflect.Field.set(libgcj.so.7)
               at java.lang.reflect.Field.set(libgcj.so.7)
               at java.lang.reflect.Field.set(libgcj.so.7)
               at java.lang.reflect.Proxy$ClassFactory.generate(libgcj.so.7)
               at java.lang.reflect.Proxy.getProxyClass(libgcj.so.7)
               at java.lang.reflect.Proxy.newProxyInstance(libgcj.so.7)
               at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:395)
               at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
               at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:335)
               at org.jboss.system.server.ServerConfigLocator.locate(ServerConfigLocator.java:42)
               at org.jboss.deployment.SubDeployerSupport.createService(SubDeployerSupport.java:106)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:261)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
               at java.lang.reflect.Method.invoke(libgcj.so.7)
               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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
               at $Proxy0.create(Unknown Source)
               at org.jboss.system.ServiceController.create(ServiceController.java:331)
               at org.jboss.system.ServiceController.create(ServiceController.java:274)
               at java.lang.reflect.Method.invoke(libgcj.so.7)
               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.system.server.ServerImpl.startBootService(ServerImpl.java:564)
               at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:466)
               at org.jboss.system.server.ServerImpl.start(ServerImpl.java:367)
               at org.jboss.Main.boot(Main.java:201)
               at org.jboss.Main$1.run(Main.java:470)
               at java.lang.Thread.run(libgcj.so.7)
              Caused by: java.lang.ClassNotFoundException: javax.management.MBeanServer
               at java.lang.ClassLoader.findClass(libgcj.so.7)
               at java.lang.ClassLoader.loadClass(libgcj.so.7)
               at java.lang.ClassLoader.loadClass(libgcj.so.7)
               at org.jboss.mx.util.MBeanProxyExt$2.loadClass(MBeanProxyExt.java:375)
               at java.lang.Class.initializeClass(libgcj.so.7)
               ...35 more
              
              19:56:19,530 WARN [ServiceController] Problem creating service jboss.system:service=ServiceDeployer
              java.lang.NoClassDefFoundError: $Proxy3
               at java.lang.Class.initializeClass(libgcj.so.7)
               at java.lang.reflect.Field.set(libgcj.so.7)
               at java.lang.reflect.Field.set(libgcj.so.7)
               at java.lang.reflect.Field.set(libgcj.so.7)
               at java.lang.reflect.Proxy$ClassFactory.generate(libgcj.so.7)
               at java.lang.reflect.Proxy.getProxyClass(libgcj.so.7)
               at java.lang.reflect.Proxy.newProxyInstance(libgcj.so.7)
               at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:395)
               at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
               at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:335)
               at org.jboss.system.server.ServerConfigLocator.locate(ServerConfigLocator.java:42)
               at org.jboss.deployment.SubDeployerSupport.createService(SubDeployerSupport.java:106)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:261)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
               at java.lang.reflect.Method.invoke(libgcj.so.7)
               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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
               at $Proxy0.create(Unknown Source)
               at org.jboss.system.ServiceController.create(ServiceController.java:331)
               at org.jboss.system.ServiceController.create(ServiceController.java:274)
               at java.lang.reflect.Method.invoke(libgcj.so.7)
               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.system.server.ServerImpl.startBootService(ServerImpl.java:564)
               at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:470)
               at org.jboss.system.server.ServerImpl.start(ServerImpl.java:367)
               at org.jboss.Main.boot(Main.java:201)
               at org.jboss.Main$1.run(Main.java:470)
               at java.lang.Thread.run(libgcj.so.7)
              Caused by: java.lang.ClassNotFoundException: javax.management.MBeanServer
               at java.lang.ClassLoader.findClass(libgcj.so.7)
               at java.lang.ClassLoader.loadClass(libgcj.so.7)
               at java.lang.ClassLoader.loadClass(libgcj.so.7)
               at org.jboss.mx.util.MBeanProxyExt$2.loadClass(MBeanProxyExt.java:375)
               at java.lang.Class.initializeClass(libgcj.so.7)
               ...35 more
              
              19:56:19,552 INFO [Server] Core system initialized
              19:56:19,572 ERROR [MainDeployer] Could not make local copy for file:/home/satimis/jboss-4.0.4.GA/server/default/conf/jboss-service.xml
              java.lang.NullPointerException
               at java.lang.String.startsWith(libgcj.so.7)
               at org.jboss.deployment.MainDeployer.inLocalCopyDir(MainDeployer.java:1185)
               at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:1159)
               at org.jboss.deployment.MainDeployer.init(MainDeployer.java:841)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:773)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:756)
               at java.lang.reflect.Method.invoke(libgcj.so.7)
               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.deploy(Unknown Source)
               at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:487)
               at org.jboss.system.server.ServerImpl.start(ServerImpl.java:367)
               at org.jboss.Main.boot(Main.java:201)
               at org.jboss.Main$1.run(Main.java:470)
               at java.lang.Thread.run(libgcj.so.7)
              
              19:56:19,607 ERROR [MainDeployer] Could not initialise deployment: file:/home/satimis/jboss-4.0.4.GA/server/default/conf/jboss-service.xml
              java.lang.NullPointerException
               at java.lang.String.startsWith(libgcj.so.7)
               at org.jboss.deployment.MainDeployer.inLocalCopyDir(MainDeployer.java:1185)
               at org.jboss.deployment.MainDeployer.init(MainDeployer.java:915)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:773)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:756)
               at java.lang.reflect.Method.invoke(libgcj.so.7)
               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.deploy(Unknown Source)
               at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:487)
               at org.jboss.system.server.ServerImpl.start(ServerImpl.java:367)
               at org.jboss.Main.boot(Main.java:201)
               at org.jboss.Main$1.run(Main.java:470)
               at java.lang.Thread.run(libgcj.so.7)
              
              Failed to boot JBoss:
              org.jboss.deployment.DeploymentException: Could not initialise deployment: file:/home/satimis/jboss-4.0.4.GA/server/default/conf/jboss-service.xml; - nested throwable: (java.lang.NullPointerException)
               at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:805)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:773)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:756)
               at java.lang.reflect.Method.invoke(libgcj.so.7)
               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.deploy(Unknown Source)
               at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:487)
               at org.jboss.system.server.ServerImpl.start(ServerImpl.java:367)
               at org.jboss.Main.boot(Main.java:201)
               at org.jboss.Main$1.run(Main.java:470)
               at java.lang.Thread.run(libgcj.so.7)
              Caused by: java.lang.NullPointerException
               at java.lang.String.startsWith(libgcj.so.7)
               at org.jboss.deployment.MainDeployer.inLocalCopyDir(MainDeployer.java:1185)
               at org.jboss.deployment.MainDeployer.init(MainDeployer.java:915)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
               ...15 more
              19:56:19,627 INFO [Server] Runtime shutdown hook called, forceHalt: true
              19:56:19,689 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
              19:56:19,701 INFO [Server] Shutdown complete
              Shutdown complete
              Halting VM


              What does "Make sure JAVA_HOME points to a JDK" refer? How to make it?

              Can I start "jrockit" alone? If YES, then HOW? TIA

              B.R.
              satimis

              • 4. Re: Installing JBoss application server
                Peter Johnson Master

                You are still running the JVM that comes with Ubuntu. Look at the output that says:

                19:56:19,034 INFO [ServerInfo] Java version: 1.4.2,Free Software Foundation, Inc.
                19:56:19,034 INFO [ServerInfo] Java VM: GNU libgcj 4.1.0 (Ubuntu 4.1.0-1ubuntu8),Free Software Foundation, Inc.


                You need to set JAVA_HOME to the JRockit JVM. You didn't say where you installed JRockit, but let's assume it is at /opt/jrockit-R26.4.0-jdk1.5.0_06. You should then enter the following command:

                export JAVA_HOME=/opt/jrockit-R26.4.0-jdk1.5.0_06


                You could also place the above in your .bashrc file, assuming that yoru are running bash.

                • 5. Re: Installing JBoss application server
                  Stephen Liu Newbie

                  Hi PeterJ,

                  JRockit was installed automatically on;

                  $ ls /home/satimis/jrockit-R26.4.0-jdk1.5.0_06/

                  bin demo jra lib memleak README.TXT src.zip
                  console include jre LICENSE mercuryprofiler sample


                  $ ls /home/satimis/jrockit-R26.4.0-jdk1.5.0_06/bin
                  appletviewer idlj javac jconsole jrcc keytool memleak policytool serialver
                  apt jar javadoc jdb jrcmd kinit native2ascii rmic servertool
                  console jarsigner javah jps jstat klist orbd rmid tnameserv
                  extcheck java javap jra jstatd ktab pack200 rmiregistry unpack200


                  But I can't find "jdk" there.

                  You need to set JAVA_HOME to the JRockit JVM.

                  I did it before running;

                  $ export JAVA_HOME=/home/satimis/jrockit-R26.4.0-jdk1.5.0_06/
                  $ sudo jboss-4.0.4.GA/bin/run.sh
                  ...
                  ....
                  ....
                  
                  08:47:00,591 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 16s:810ms
                  

                  It hung there with nothing started.

                  Others noted with tks.

                  B.R.
                  satimis

                  • 6. Re: Installing JBoss application server
                    Peter Johnson Master

                    The message you got, "Started in 16s...", means that the server is now started. You should now be able to open a browser and point it to http://localhost:8080 and get the JBoss home page.

                    If you do not get the home page, please post the full command output again.

                    • 7. Re: Installing JBoss application server
                      Stephen Liu Newbie

                      Hi PeterJ,

                      Tks for your advice.

                      on firefox

                      JBoss Online Resources
                      
                       * JBoss Documentation
                       * JBoss Wiki
                       * JBoss JIRA
                       * JBoss Forums
                      
                      JBoss Management
                      
                       * Tomcat status (full) (XML)
                       * JMX Console
                       * JBoss Web Console
                      
                      JBoss? Application Server

                      Why JBoss home page does not starte automatically?

                      I think I have to create a script to start JBoss including;
                      export JAVA_HOME=/home/satimis/jrockit-R26.4.0-jdk1.5.0_06
                      sudo jboss-4.0.4.GA/bin/run.sh


                      B.R.
                      satimis


                      • 8. Re: Installing JBoss application server
                        Stephen Liu Newbie

                         

                        "satimis" wrote:
                        Hi PeterJ,

                        Tks for your advice.

                        on firefox
                        JBoss Online Resources
                        
                         * JBoss Documentation
                         * JBoss Wiki
                         * JBoss JIRA
                         * JBoss Forums
                        
                        JBoss Management
                        
                         * Tomcat status (full) (XML)
                         * JMX Console
                         * JBoss Web Console
                        
                        JBoss? Application Server

                        Why JBoss home page does not start automatically?

                        I think I have to create a script to start JBoss including;
                        export JAVA_HOME=/home/satimis/jrockit-R26.4.0-jdk1.5.0_06
                        sudo jboss-4.0.4.GA/bin/run.sh


                        B.R.
                        satimis


                        • 9. Re: Installing JBoss application server
                          Peter Johnson Master

                          That is the correct home page. There is nothing in the run script to start your browser and open it at the home page. Remember, this is a server you are starting, not an application. It is expected, in production at least, that no-one from localhost will be using the server, instead there will be many people from remote locations using the server. Also note that the home page does not contain any links for web applications that are deployed to the server, so you still have to enter those URLs manually.