-
1. Re: alternate server path
peterj Jan 4, 2008 3:52 PM (in response to really_rotten)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.