3 Replies Latest reply on Nov 2, 2007 11:05 AM by Max Rydahl Andersen

    file permision prob

    juhi negi Newbie

      when i sun jboss from terminal it runs fine but from eclipse it gives error like 17:48:25,244 INFO [Server] Starting JBoss (MX MicroKernel)...
      17:48:25,245 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200702151948)
      17:48:25,246 INFO [Server] Home Dir: /opt/jboss-4.0.4.GA-src/build/output/jboss-4.0.4.GA
      17:48:25,246 INFO [Server] Home URL: file:/opt/jboss-4.0.4.GA-src/build/output/jboss-4.0.4.GA/
      17:48:25,247 INFO [Server] Patch URL: null
      17:48:25,247 INFO [Server] Server Name: default
      17:48:25,248 INFO [Server] Server Home Dir: /opt/jboss-4.0.4.GA-src/build/output/jboss-4.0.4.GA/server/default
      17:48:25,248 INFO [Server] Server Home URL: file:/opt/jboss-4.0.4.GA-src/build/output/jboss-4.0.4.GA/server/default/
      17:48:25,248 INFO [Server] Server Log Dir: /opt/jboss-4.0.4.GA-src/build/output/jboss-4.0.4.GA/server/default/log
      17:48:25,248 INFO [Server] Server Temp Dir: /opt/jboss-4.0.4.GA-src/build/output/jboss-4.0.4.GA/server/default/tmp
      17:48:25,249 INFO [Server] Root Deployment Filename: jboss-service.xml
      17:48:26,009 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
      17:48:26,009 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_06-b05,Sun Microsystems Inc.
      17:48:26,009 INFO [ServerInfo] OS-System: Linux 2.6.15-28-386,i386
      17:48:26,700 INFO [Server] Core system initialized
      17:48:26,721 ERROR [MainDeployer] Could not make local copy for file:/opt/jboss-4.0.4.GA-src/build/output/jboss-4.0.4.GA/server/default/conf/jboss-service.xml
      java.io.IOException: No such file or directory
      at java.io.UnixFileSystem.createFileExclusively(Native Method)
      at java.io.File.checkAndCreate(File.java:1345)
      at java.io.File.createTempFile(File.java:1434)
      at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:1167)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:840)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      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:585)
      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:464)
      at java.lang.Thread.run(Thread.java:595)
      17:48:26,772 ERROR [MainDeployer] Could not initialise deployment: file:/opt/jboss-4.0.4.GA-src/build/output/jboss-4.0.4.GA/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:616)
      at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      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:585)
      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:464)
      at java.lang.Thread.run(Thread.java:595)
      Failed to boot JBoss:17:48:26,785 INFO [Server] Runtime shutdown hook called, forceHalt: true
      17:48:26,786 INFO [Server] JBoss SHUTDOWN: Undeploying all packages

      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:616)
      at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      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:585)
      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:464)
      at java.lang.Thread.run(Thread.java:595)
      17:48:26,851 INFO [Server] Shutdown complete
      Shutdown complete
      Halting VM

      i guess there is some file permisson problem with linux can u plz help me how to get rid of this

        • 1. Re: file permision prob
          Rajesh Kumar Newbie

          Can you try few things?
          1) Please make sure that your JAVA_HOME environment variable is set before you run ./run.sh.

          2) Please Clean data, log, tmp and work directory from server/default. Restart jboss and see if you still have problem.

          You do not have to restart jboss for your new deployment to work. You can just keep your war file in /server/default/deploy and portal should pick it up.

          • 2. Re: file permision prob
            daya airody Newbie

            Could u please post how this probllem was overcome. I am seeing same error.

            -----------------------------------------------------------------------------------------------------
            23:38:31,654 INFO [Server] Starting JBoss (MX MicroKernel)...
            23:38:31,655 INFO [Server] Release ID: JBoss [Zion] 4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)
            23:38:31,658 INFO [Server] Home Dir: /scratch2/mqube/m5.deploy/IQNAV-AMBER-BLD-38/servers/jboss
            23:38:31,658 INFO [Server] Home URL: file:/scratch2/mqube/m5.deploy/IQNAV-AMBER-BLD-38/servers/jboss/
            23:38:31,659 INFO [Server] Patch URL: null
            23:38:31,659 INFO [Server] Server Name: default
            23:38:31,659 INFO [Server] Server Home Dir: /scratch2/mqube/m5.deploy/IQNAV-AMBER-BLD-38/servers/jboss/server/default
            23:38:31,659 INFO [Server] Server Home URL: file:/scratch2/mqube/m5.deploy/IQNAV-AMBER-BLD-38/servers/jboss/server/default/
            23:38:31,659 INFO [Server] Server Temp Dir: /scratch2/mqube/m5.deploy/IQNAV-AMBER-BLD-38/servers/jboss/server/default/tmp
            23:38:31,660 INFO [Server] Root Deployment Filename: jboss-service.xml
            23:38:32,075 INFO [ServerInfo] Java version: 1.5.0_08,Sun Microsystems Inc.
            23:38:32,075 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_08-b03,Sun Microsystems Inc.
            23:38:32,075 INFO [ServerInfo] OS-System: Linux 2.4.21-47.0.1.ELsmp,i386
            23:38:32,717 INFO [Server] Core system initialized
            23:38:32,751 ERROR [MainDeployer] Could not make local copy for file:/scratch2/mqube/m5.deploy/IQNAV-AMBER-BLD-38/servers/jboss/server/default/conf/jboss-service.xml
            java.io.IOException: No such file or directory
            at java.io.UnixFileSystem.createFileExclusively(Native Method)
            at java.io.File.checkAndCreate(File.java:1345)
            at java.io.File.createTempFile(File.java:1434)
            at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:1149)
            at org.jboss.deployment.MainDeployer.init(MainDeployer.java:822)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:780)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
            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:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
            at org.jboss.Main.boot(Main.java:187)
            at org.jboss.Main$1.run(Main.java:438)
            at java.lang.Thread.run(Thread.java:595)
            23:38:32,762 ERROR [MainDeployer] Could not initialise deployment: file:/scratch2/mqube/m5.deploy/IQNAV-AMBER-BLD-38/servers/jboss/server/default/conf/jboss-service.xml
            org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml
            at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:580)
            at org.jboss.deployment.SARDeployer.init(SARDeployer.java:164)
            at org.jboss.deployment.MainDeployer.init(MainDeployer.java:843)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:780)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
            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:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
            at org.jboss.Main.boot(Main.java:187)
            at org.jboss.Main$1.run(Main.java:438)
            at java.lang.Thread.run(Thread.java:595)
            Failed to boot JBoss:
            org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml
            at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:580)
            at org.jboss.deployment.SARDeployer.init(SARDeployer.java:164)
            at org.jboss.deployment.MainDeployer.init(MainDeployer.java:843)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:780)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
            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:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
            at org.jboss.Main.boot(Main.java:187)
            at org.jboss.Main$1.run(Main.java:438)
            at java.lang.Thread.run(Thread.java:595)
            23:38:32,771 INFO [Server] Runtime shutdown hook called, forceHalt: true
            23:38:32,771 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
            Shutting down
            23:38:32,780 INFO [Server] Shutdown complete
            Shutdown complete
            Halting VM

            • 3. Re: file permision prob
              Max Rydahl Andersen Master

              sounds like you got jboss and eclipse on two different filesystems and that triggers a bug in beta2.

              Use nightly builds to get a fix for it or put eclipse and jboss on the same filesystem.