[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: alternate server path

PeterJ do-not-reply at jboss.com
Fri Jan 4 15:52:40 EST 2008


JBossAS supports a variety of system properties that define the locations of the server directories. Unfortunately, you cannot simply change the location of "server" and have the other locations automatically adjusted - instead you need change *every* server directory related system property. Here are the properties, and their defaults:

jboss.server.base.dir = $JBOSS_HOME/server
jboss.server.base.url = file:/$JBOSS_HOME/server
jboss.server.home.dir = $JBOSS_HOME/xxx (where 'xxx' is the config name, such as 'default' or 'all')
jboss.server.home.url = file:/$JBOSS_HOME/xxx
jboss.server.log.dir = $JBOSS_HOME/xxx/log
jboss.server.temp.dir = $JBOSS_HOME/xxx/tmp
jboss.server.data.dir= $JBOSS_HOME/xxx/data
jboss.server.config.url = file:/$JBOSS_HOME/xxx/conf
jboss.server.lib.dir= $JBOSS_HOME/xxx/lib

Set these by providing them a JVM command line options. For example, modify run.conf (Unix, Linux) or  run.bat (Windows), changing the setting of JAVA_OPTS as follows:

JAVA_OPTS = ... -Djboss.server.temp.dir=/home/me/jboss/server/tmp


There is, however, and alternative. Either grant yourself write access to the server dir, or install JBossAS somewhere where you do have write access.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117204#4117204

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117204



More information about the jboss-user mailing list