Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jboss 7 standalon-full.xml as config

Tags:

jboss

jboss7.x

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

like image 250
Yuriy Mayorov Avatar asked Oct 03 '13 11:10

Yuriy Mayorov


People also ask

How do I start JBoss with standalone full ha xml?

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.

Where is standalone xml in JBoss?

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.

Where is JBoss server xml?

JBoss Web Server's main configuration file, server. xml, is located in the server/xxx/ deploy/jbossweb.


3 Answers

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
like image 150
Vinayak Dornala Avatar answered Nov 16 '22 00:11

Vinayak Dornala


For windows, you need to edit standalone.conf.bat. standalone.conf is for linux/unix environments.

like image 37
eis Avatar answered Nov 15 '22 23:11

eis


You can configure JBoss to start using standalone-full.xml from Eclipse using below steps :-

Locate JBoss Server from Eclipse Server Tab :-

JBoss Server In Eclipse Server Tab

Double click on server to open JBoss Runtime Server Configuration :-

JBoss Runtime Configuration

Now, Click on Runtime Environment link to open below dialog which allows to edit Jboss Server Runtime Configuration :-

Edit JBoss 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.

like image 44
OO7 Avatar answered Nov 16 '22 00:11

OO7