start server on localhost as other user
davles Jun 10, 2004 9:21 AMI am unable to start my jboss server from the JBoss IDE navigator.
I've installed jboss-3.2.4 on my PC (Fedora Core 1, j2sdk1.4.2_04):
# cd /usr/local
# tar xf /downloads/jboss-3.2.4.tar
# ln -s jboss-3.2.4 jboss
Then, I made it belong to user jboss:
# groupadd jboss
# useradd -g jboss jboss
# su - jboss
$ vi .bash_profile
<define/export JAVA_HOME; update PATH>
$exit
# chown -R jboss:jboss jboss-3.2.4
Make it a service at bootup:
# cp bin/jboss_init_redhat.sh /etc/init.d/jboss
# chkconfig --add jboss
And then run it:
# service jboss start
And all is well.
Then I installed JBossIDE, as explained in the installation guide.
Created a 'configuration':
- JBoss 3.2.x
- name: Local 3.2.4
- home directory: /usr/local/jboss-3.2.4
- start program arguments: -c all
1. the server navigator does not show the server is running, although it is,
2. I can not start the server, even if it has been stopped:
15:09:00,913 INFO [Server] Starting JBoss (MX MicroKernel)... 15:09:00,915 INFO [Server] Release ID: JBoss [WonderLand] 3.2.4 (build: CVSTag=JBoss_3_2_4 date=200406040847) 15:09:00,915 INFO [Server] Home Dir: /datadisk/installations/usr/local/jboss-3.2.4 15:09:00,915 INFO [Server] Home URL: file:/datadisk/installations/usr/local/jboss-3.2.4/ 15:09:00,916 INFO [Server] Library URL: file:/datadisk/installations/usr/local/jboss-3.2.4/lib/ 15:09:00,917 INFO [Server] Patch URL: null 15:09:00,917 INFO [Server] Server Name: all 15:09:00,917 INFO [Server] Server Home Dir: /datadisk/installations/usr/local/jboss-3.2.4/server/all 15:09:00,918 INFO [Server] Server Home URL: file:/datadisk/installations/usr/local/jboss-3.2.4/server/all/ 15:09:00,918 INFO [Server] Server Data Dir: /datadisk/installations/usr/local/jboss-3.2.4/server/all/data 15:09:00,918 INFO [Server] Server Temp Dir: /datadisk/installations/usr/local/jboss-3.2.4/server/all/tmp 15:09:00,918 INFO [Server] Server Config URL: file:/datadisk/installations/usr/local/jboss-3.2.4/server/all/conf/ 15:09:00,918 INFO [Server] Server Library URL: file:/datadisk/installations/usr/local/jboss-3.2.4/server/all/lib/ 15:09:00,919 INFO [Server] Root Deployment Filename: jboss-service.xml 15:09:00,922 INFO [Server] Starting General Purpose Architecture (GPA)... 15:09:01,395 INFO [ServerInfo] Java version: 1.4.2_04,Sun Microsystems Inc. 15:09:01,395 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_04-b05,Sun Microsystems Inc. 15:09:01,396 INFO [ServerInfo] OS-System: Linux 2.4.22-1.2188.nptl,i386 15:09:01,686 INFO [Server] Core system initialized 15:09:01,706 ERROR [MainDeployer] Could not make local copy for file:/datadisk/installations/usr/local/jboss-3.2.4/server/all/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:1314) at java.io.File.createTempFile(File.java:1402) at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:997) at org.jboss.deployment.MainDeployer.init(MainDeployer.java:677) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:635) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592) 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:324) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311) at org.jboss.Main.boot(Main.java:144) at org.jboss.Main$1.run(Main.java:389) at java.lang.Thread.run(Thread.java:534) 15:09:02,001 ERROR [MainDeployer] Could not initialise deployment: file:/datadisk/installations/usr/local/jboss-3.2.4/server/all/conf/jboss-service.xml org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:522) at org.jboss.deployment.SARDeployer.init(SARDeployer.java:137) at org.jboss.deployment.MainDeployer.init(MainDeployer.java:700) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:635) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592) 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:324) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311) at org.jboss.Main.boot(Main.java:144) at org.jboss.Main$1.run(Main.java:389) at java.lang.Thread.run(Thread.java:534) Failed to boot JBoss: org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:522) at org.jboss.deployment.SARDeployer.init(SARDeployer.java:137) at org.jboss.deployment.MainDeployer.init(MainDeployer.java:700) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:635) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592) 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:324) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311) at org.jboss.Main.boot(Main.java:144) at org.jboss.Main$1.run(Main.java:389) at java.lang.Thread.run(Thread.java:534) 15:09:02,025 INFO [Server] JBoss SHUTDOWN: Undeploying all packages Shutting down Shutdown complete Halting VM
It all has to do with user privileges, or so it seems.
I've allready added myself to the jboss group, but to no avail.
Is there a way to install & run jboss for user 'jboss', and at the same time enable a different user (say 'david') to start/stop jboss from within JBoss IDE (with some arguments I missed?)
David