1 Reply Latest reply on Nov 19, 2010 3:43 AM by Lukas Krejci

    ./rhq-server.sh start problem

    Tarun .. Newbie

      Hello

      All

       

      Im trying to start the server by ./rhq-server on my ubuntu machine. but im getting this error :

       

      But when i run the same command :sudo ./rhq-server.sh start i get no error. I dont wish to run this as root. So please help..

       

      Thanks.

      Tarun

       

      Starting RHQ Server in console...

      =========================================================================

       

        JBoss Bootstrap Environment

       

        JBOSS_HOME: /home/jopr/rhq-server-3.0.0/jbossas

       

        JAVA: /home/jopr/jdk1.6.0_20/jre/bin/java

       

        JAVA_OPTS: -Dprogram.name=run.sh -Dapp.name=rhq-server -Xms1024M -Xmx1024M -XX:PermSize=256M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.server.log.dir=/home/jopr/rhq-server-3.0.0/logs -Djava.awt.headless=true -Djboss.platform.mbeanserver -Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.util.logging.config.file=/home/jopr/rhq-server-3.0.0/jbossas/server/default/conf/logging.properties  -Djava.net.preferIPv4Stack=true

       

        CLASSPATH: /home/jopr/rhq-server-3.0.0/jbossas/bin/run.jar:/home/jopr/java/lib/tools.jar

       

      =========================================================================

       

      15:01:53,278 INFO  [Server] Starting JBoss (MX MicroKernel)...

      15:01:53,279 INFO  [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)

      15:01:53,280 INFO  [Server] Home Dir: /home/jopr/rhq-server-3.0.0/jbossas

      15:01:53,280 INFO  [Server] Home URL: file:/home/jopr/rhq-server-3.0.0/jbossas/

      15:01:53,280 INFO  [Server] Patch URL: null

      15:01:53,280 INFO  [Server] Server Name: default

      15:01:53,281 INFO  [Server] Server Home Dir: /home/jopr/rhq-server-3.0.0/jbossas/server/default

      15:01:53,281 INFO  [Server] Server Home URL: file:/home/jopr/rhq-server-3.0.0/jbossas/server/default/

      15:01:53,281 INFO  [Server] Server Log Dir: /home/jopr/rhq-server-3.0.0/logs

      15:01:53,281 INFO  [Server] Server Temp Dir: /home/jopr/rhq-server-3.0.0/jbossas/server/default/tmp

      15:01:53,281 INFO  [Server] Root Deployment Filename: jboss-service.xml

      15:01:53,567 INFO  [ServerInfo] Java version: 1.6.0_20,Sun Microsystems Inc.

      15:01:53,567 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 16.3-b01,Sun Microsystems Inc.

      15:01:53,567 INFO  [ServerInfo] OS-System: Linux 2.6.28-15-server,amd64

      15:01:53,837 INFO  [Server] Core system initialized

      15:01:53,859 ERROR [MainDeployer] Could not make local copy for file:/home/jopr/rhq-server-3.0.0/jbossas/server/default/conf/jboss-service.xml

      java.io.IOException: Permission denied

          at java.io.UnixFileSystem.createFileExclusively(Native Method)

          at java.io.File.checkAndCreate(File.java:1704)

          at java.io.File.createTempFile(File.java:1792)

          at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:1185)

          at org.jboss.deployment.MainDeployer.init(MainDeployer.java:851)

          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)

          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:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          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:508)

          at java.lang.Thread.run(Thread.java:619)

      15:01:53,864 ERROR [MainDeployer] Could not initialise deployment: file:/home/jopr/rhq-server-3.0.0/jbossas/server/default/conf/jboss-service.xml

      org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive jboss-service.xml

          at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:618)

          at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)

          at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)

          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)

          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:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          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:508)

          at java.lang.Thread.run(Thread.java:619)

      Failed to boot JBoss:

      org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive jboss-service.xml

          at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:618)

          at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)

          at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)

          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)

          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:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          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:508)

          at java.lang.Thread.run(Thread.java:619)

      15:01:53,870 INFO  [Server] Runtime shutdown hook called, forceHalt: true

      15:01:53,870 INFO  [Server] JBoss SHUTDOWN: Undeploying all packages

      15:01:53,887 INFO  [Server] Shutdown complete

      Shutdown complete

      Halting VM

        • 1. Re: ./rhq-server.sh start problem
          Lukas Krejci Apprentice

          The stack traces in your output seem to suggest there is a problem with file permissions. Please make sure that the user that you start the RHQ server as has full read/write access to the RHQ server installation directory.

          Specifically this line tells you what the problem is:

           

          15:01:53,859 ERROR [MainDeployer] Could not make local copy for  file:/home/jopr/rhq-server-3.0.0/jbossas/server/default/conf/jboss-service.xml

          java.io.IOException: Permission denied