I want to start JBoss AS v7
and set standalone-full.xml
as default config. In my standalone.conf
I put this line:
JAVA_OPTS="$JAVA_OPTS -Djboss.server.default.config=standalone-full.xml"
.
But when I start server, it take standalone.xml
as config. My OS is Win7
Click on Browse button to locate standalone-full. xml & save the configuration. Start JBoss server from Eclipse, it will use full profile defined in standalone-full. xml to start.
Default configuration for a standalone server is stored in the EAP_HOME/standalone/configuration/standalone. xml file and default configuration for a managed domain is stored in the EAP_HOME/domain/configuration/domain. xml file.
JBoss Web Server's main configuration file, server. xml, is located in the server/xxx/ deploy/jbossweb.
Edit jboss-as-7.1.1.Final\bin\standalone.conf.bat and change
From
set "JAVA_OPTS=%JAVA_OPTS% -Djboss.server.default.config=standalone.xml"
To
set "JAVA_OPTS=%JAVA_OPTS% -Djboss.server.default.config=standalone-full.xml"
OR
Once can simply use below command to start the server form command prompt.
jboss-as-7.1.1.Final\bin>standalone.bat -c standalone-full.xml
For windows, you need to edit standalone.conf.bat
. standalone.conf
is for linux/unix environments.
You can configure JBoss to start using standalone-full.xml from Eclipse using below steps :-
Locate JBoss Server from Eclipse Server Tab :-
Double click on server to open JBoss Runtime Server Configuration :-
Now, Click on Runtime Environment link to open below dialog which allows to edit Jboss Server Runtime Configuration :-
Click on Browse button to locate standalone-full.xml & save the configuration. Start JBoss server from Eclipse, it will use full profile defined in standalone-full.xml to start.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With