3 Replies Latest reply on Sep 24, 2008 1:00 PM by Kevin Taute

    run.sh giving trouble

    sarang sonawane Newbie

      i installed jdk 1.5 from sun on my new rhel 5 box. Installed jboss-as and when i execute ./run.sh it throws the following error message :

      CLASSPATH: /home/jboss-as/bin/run.jar

      ./run.sh: line 231: usr/java/jdk1.5.0_16/bin/bin/java: No such file or directory

      I can see that there is no 'bin' directory inside usr/java/jdk1.5.0_16/bin/
      So something is wrong. Can someone please help me.

      Thank you in advance.

        • 1. Re: run.sh giving trouble
          Kevin Taute Newbie

          looks like you have bin in your JAVA_HOME environment variable. Try removing that and restarting.

          Most java program recognize that the executables will be in the bin subdirectory of the JAVA_HOME.

          • 2. Re: run.sh giving trouble
            sarang sonawane Newbie

            Thanks Kevin. That solved the problem. however this is the error that i am getting now . Would be great if someone can point me to the issue :

            18:32:25,505 INFO [Server] Core system initialized
            18:32:25,531 ERROR [MainDeployer] Could not make local copy for file:/home/jboss-as/server/production/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: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: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:508)
            at java.lang.Thread.run(Thread.java:595)
            18:32:25,542 ERROR [MainDeployer] Could not initialise deployment: file:/home/jboss-as/server/production/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:872)

            • 3. Re: run.sh giving trouble
              Kevin Taute Newbie

              Based on what is included, it looks like jboss is trying to create a file but it is unable to do so.

              It looks like jboss is installed in /home... You need to check the permissions of the directory listed in the error message. Since it appears you are running on a Linux/Unix machine, try changing the owner and group with the -r option so it changes in all subdirectories as well. The owner and group need to be set to the userid (and appropriate group) of the user that you are starting jboss as.