2 Replies Latest reply on Feb 18, 2007 3:34 AM by Jeroen Wenting

    jboss not running on ubuntu

    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 o/s
      can u plz help me how to get rid of this

        • 1. Re: jboss not running on ubuntu
          Peter Johnson Master

          Did you install JBoss while running as root? And you are now trying to run it as your account? You could either change the ownership of the files, or change the access mode.

          By the way, what I did was first changed /opt to be fully accessible by everyone, then I installed JBoss using my own account. Might not be the most secure mechanism, but worked for me.

          • 2. Re: jboss not running on ubuntu
            Jeroen Wenting Newbie

            would have been more secure to give full access to just your account or accountgroup, yes.
            But seeing the number of machines that have only a root account which is used for everything it's no less secure than the majority of servers out there.