1 of 1 people found this helpful
It should work if you copy the standalone folder and start with the option -Djboss.server.base.dir=XX.
I'm not sure what the command "sh ....." will do with the environment whether it is starting a subshell.
For me it works if I start it from a bash without the -Dlogging.config option(why you need it?) the configuration is used anyway.
Thanks Wolf-Dieter Fink,
actually I tried giving the -Dlogging.config option to direct JBOSS to look for that file in my copied standalone folder that i renamed and not in the original standalone folder. With or without giving this option I get the following printed on the server console, although the server starts succesfully:
JBoss Bootstrap Environment
JAVA_OPTS: -server -XX:+TieredCompilation -Xms512m -Xmx1024m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone-full.xml
Unable to read the logging configuration from 'file:/home/amit/my_copied_standalone_folder/configuration/logging.properties' (java.io.FileNotFoundException: /home/amit/baapt/configuration/logging.properties (No such file or directory))
I ma not sure why it goes and searches in /home/amit/my_copied_standalone_folder rather than in /opt/jboss/my_copied_standalone_folder
What JBoss version do you usr? 7.1.1.Final?
Do you use a fresh unipped JBoss and copy only the standalone folder?
Is there any JBOSS_ variable set in the environment?
Yes I am using the 7.1.1 Final JBOSS Version.
I am running this in the VM having Centos operating system.
Well before copying I had configured one application in the original standalone folder. But I overwrote the standalone-full.xml
Apart from the variables shown in my above reply that comes from standalone.conf, I haven't set any other JBOSS_variable except "-Djboss.server.base.dir" that I give while starting JBOSS from command terminal.
Still as you have pointed out I will try to do a fresh copy of this folder and see if this error goes away. If not I will update here, thanks a lot for the help extended to me.
I have 8 seperate JBOSS instances running on a single machine.
All are using the same directory JBOSS server.
step 1 have 8 DNS entries i.e. machine-01.com, machine-2.com etc
Then I have a script that starts each VJM as such: $JBOSS_HOME/bin/run.sh -c myserver --host=tparheedsg042-08 with the JVM ARGS
Works like a champ :-)
By the way the machine is 48 core 255Gig
welcome to the forum.
But as you are using a different version (AS6/5/4) it will be completely different.
Can u pls help me to create more instances in a single Jboss server along with the startup scripts. I'm using Jboss as 7.1.1 Final in RHEL.
Thanks in advance.
You might look into my comment, marked as helpful.
If you have special questions you should create a new thread.
I am also facing the same issue .
I have crated two insatnce with jboss 7.1.1 by just copying the standalone directory and changes the IP address and port detalils in standalone.xml for both instances.
While running jboss for a instance its throwing an error for logging.properties file :
Unable to read the logging configuration from 'file:/opt/jboss-as-7.1.1.Final/bin/instance_name/configuration/logging.properties' (java.io.FileNotFoundException: /opt/jboss-as-7.1.1.Final/bin/instance_name/configuration/logging.properties (No such file or directory))
I don know why its searching in bin folder , although logging .properties file is located at right place (instance_name/configuration)with 755 permission.
Please suggest how can i resolve this issue.