Defining a jboss.server.base.dir doesn't really work
lups Nov 30, 2012 12:34 PMHi all,
I'm using JBoss AS 7.1.1 and trying to use a standalone server outside of the JBOSS_HOME "standalone" subdirectory.
To do this, I can't find a howto, so I tried these steps :
- I copy the C:\My Program Files\jboss\jboss-as-7.1.1.Final\standalone directory in my working environment : C:\Myenv\standalone
- I execute these lines :
set JBOSS_HOME=C:\My Program Files\jboss\jboss-as-7.1.1.Final
set JBOSS_BASE_DIR=C:\Myenv\standalone
set PATH=%JBOSS_HOME%\bin;%PATH%
standalone.bat
This doesn't work, do to https://issues.jboss.org/browse/AS7-3800, so I changed last line to
standalone.bat -Djboss.server.base.dir="%JBOSS_BASE_DIR%"
This time, JBoss starts without error.
However, I think that this simple configuration is still incorrect :
- The add-user script do not change my C:\Myenv\standalone\configuration\mgmt-users.properties, but my C:\My Program Files\jboss\jboss-as-7.1.1.Final\standalone\configuration\mgmt-users.properties !
- I also tried (with same failure) :
add-user -Djboss.server.base.dir="%JBOSS_BASE_DIR%"
- The jboss-cli command
/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
reports some references to %JBOSS_HOME%\standalone instead of %JBOSS_BASE_DIR%, as shown in this extract (jboss.server.* are correct but logging.configuration and org.jboss.boot.log.file are invalid) :
"jboss.server.base.dir" => "C:\\Myenv\\standalone",
"jboss.server.config.dir" => "C:\\Myenv\\standalone\\configuration",
"jboss.server.data.dir" => "C:\\Myenv\\standalone\\data",
"jboss.server.default.config" => "standalone.xml",
"jboss.server.deploy.dir" => "C:\\Myenv\\standalone\\data\\content",
"jboss.server.log.dir" => "C:\\Myenv\\standalone\\log",
"jboss.server.name" => "xxxxxx",
"jboss.server.temp.dir" => "C:\\Myenv\\standalone\\tmp",
"line.separator" => "
",
"logging.configuration" => "file:C:\\My Program Files\\jboss\\jboss-as-7.1.1.Final\\standalone/configuration/logging.properties",
"module.path" => "C:\\My Program Files\\jboss\\jboss-as-7.1.1.Final\\modules",
"org.jboss.boot.log.file" => "C:\\My Program Files\\jboss\\jboss-as-7.1.1.Final\\standalone\\log\\boot.log",
How do you recommand to configure JBoss to have a dedicated standalone server outside of the Jboss install directory ?
Regards,
Bernard