7 Replies Latest reply on Sep 4, 2008 1:30 PM by Richard Taylor

    Could not make local copy for file:  jboss-service.xml

    Viswanathan Ramamurthy Newbie

      I am getting the following error while stating the jboss in unix environment
      Could not make local copy for file: jboss-service.xml java.io.IOException: Operation not permitted

        • 1. Re:  Could not make local copy for file:  jboss-service.xml
          James Billa Newbie

          Have u resolved the issue? I am also getting the same error..Please let me.

          • 2. Re:  Could not make local copy for file:  jboss-service.xml
            jaikiran pai Master

            Which version of JBoss and Java do you use? And which operating system? Please post the entire exception stacktrace.

            • 4. Re:  Could not make local copy for file:  jboss-service.xml
              William Newbie

              I get the same error ... Here's the output ...

              
              =========================================================================
              
               JBoss Bootstrap Environment
              
               JBOSS_HOME: /opt/jboss-4.2.3.GA/
              
               JAVA: /etc/java-config-2/current-system-vm/bin/java
              
               JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.clien
              t.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIP
              v4Stack=true
              
               CLASSPATH: /opt/jboss-4.2.3.GA//bin/run.jar:/etc/java-config-2/current-system-
              vm/lib/tools.jar
              
              =========================================================================
              
              19:58:45,344 INFO [Server] Starting JBoss (MX MicroKernel)...
              19:58:45,344 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=
              JBoss_4_2_3_GA date=200807181417)
              19:58:45,345 INFO [Server] Home Dir: /opt/jboss-4.2.3.GA
              19:58:45,345 INFO [Server] Home URL: file:/opt/jboss-4.2.3.GA/
              19:58:45,346 INFO [Server] Patch URL: null
              19:58:45,346 INFO [Server] Server Name: default
              19:58:45,346 INFO [Server] Server Home Dir: /opt/jboss-4.2.3.GA/server/default
              19:58:45,346 INFO [Server] Server Home URL: file:/opt/jboss-4.2.3.GA/server/def
              ault/
              19:58:45,346 INFO [Server] Server Log Dir: /opt/jboss-4.2.3.GA/server/default/l
              og
              19:58:45,346 INFO [Server] Server Temp Dir: /opt/jboss-4.2.3.GA/server/default/
              tmp
              19:58:45,346 INFO [Server] Root Deployment Filename: jboss-service.xml
              19:58:45,594 INFO [ServerInfo] Java version: 1.6.0_06,Sun Microsystems Inc.
              19:58:45,595 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 10.0-
              b22,Sun Microsystems Inc.
              19:58:45,595 INFO [ServerInfo] OS-System: Linux 2.6.23-gentoo-r8,amd64
              19:58:45,803 INFO [Server] Core system initialized
              19:58:47,080 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationExcept
              ion: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry',
               Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.Ne
              tworkRegistry@6ab30913)]
              19:58:47,092 ERROR [MainDeployer] Could not create deployment: file:/opt/jboss-4
              .2.3.GA/server/default/conf/jboss-service.xml
              org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect
              .InvocationTargetException)
               at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
              :196)
               at org.jboss.system.ServiceController.install(ServiceController.java:226
              )
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
              java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:597)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
              er.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:251)
               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:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:597)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
              er.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
              or.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
              BeanOperationInterceptor.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)
              Caused by: java.lang.reflect.InvocationTargetException
               at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
              a:1451)
               at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
              a:1350)
               at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
              345)
               at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
               at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
              tor.java:451)
               at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
              :171)
               ... 36 more
              Caused by: javax.management.MBeanException
               at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptio
              ns(ReflectedDispatcher.java:180)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
              er.java:163)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
              or.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
              BeanOperationInterceptor.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.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
               at java.security.AccessController.doPrivileged(Native Method)
               at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
              a:1417)
               ... 41 more
              Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [O
              bjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.net
              work.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@6ab30913)]
               at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(Bas
              icMBeanRegistry.java:713)
               at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB
              eanRegistry.java:211)
               at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:597)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
              er.java:155)
               ... 51 more
              Caused by: java.lang.RuntimeException: Exception creating identity: Numbers: Num
              bers
               at org.jboss.remoting.ident.Identity.get(Identity.java:211)
               at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistr
              y.java:268)
               at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMB
              eanInvoker.java:966)
               at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBea
              nInvoker.java:489)
               at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInv
              oker.java:654)
               at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(Bas
              icMBeanRegistry.java:697)
               ... 56 more
              Failed to boot JBoss:
              org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect
              .InvocationTargetException)
               at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
              :196)
               at org.jboss.system.ServiceController.install(ServiceController.java:226
              )
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
              java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:597)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
              er.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:251)
               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:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:597)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
              er.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
              or.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
              BeanOperationInterceptor.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)
              Caused by: java.lang.reflect.InvocationTargetException
               at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
              a:1451)
               at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
              a:1350)
               at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
              345)
               at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
               at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
              tor.java:451)
               at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
              :171)
               ... 36 more
              Caused by: javax.management.MBeanException
               at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptio
              ns(ReflectedDispatcher.java:180)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
              er.java:163)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
              or.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
              BeanOperationInterceptor.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.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
               at java.security.AccessController.doPrivileged(Native Method)
               at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.jav
              a:1417)
               ... 41 more
              Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [O
              bjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.net
              work.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@6ab30913)]
               at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(Bas
              icMBeanRegistry.java:713)
               at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB
              eanRegistry.java:211)
               at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
              sorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:597)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
              er.java:155)
               ... 51 more
              Caused by: java.lang.RuntimeException: Exception creating identity: Numbers: Num
              bers
               at org.jboss.remoting.ident.Identity.get(Identity.java:211)
               at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistr
              y.java:268)
               at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMB
              eanInvoker.java:966)
               at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBea
              nInvoker.java:489)
               at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInv
              oker.java:654)
               at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(Bas
              icMBeanRegistry.java:697)
               ... 56 more
              19:58:47,097 INFO [Server] Runtime shutdown hook called, forceHalt: true
              19:58:47,097 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
              19:58:47,101 INFO [Server] Shutdown complete
              Shutdown complete
              Halting VM
              


              • 5. Re:  Could not make local copy for file:  jboss-service.xml
                jaikiran pai Master

                 

                19:58:47,080 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry',
                Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@6ab30913)]


                I guess, the contents of your etc/hosts file are incorrect. Read through this thread and a couple of other threads refered in that post:

                http://www.jboss.com/index.html?module=bb&op=viewtopic&t=124173



                • 6. Re:  Could not make local copy for file:  jboss-service.xml
                  Welcome Welcome Newbie

                  i am getting the same error when i enered as a different user....please any one help me for this

                  • 7. Re:  Could not make local copy for file:  jboss-service.xml
                    Richard Taylor Newbie

                    I got similar errors and found out that the permissions on various files in my jboss install had been messed up. I think the problem was that I ran JBoss as root at one point. To fix it I reinstalled JBoss and things work fine now. Not sure if you're seeing the same issues.