1 Reply Latest reply on Jul 23, 2013 6:13 AM by Wolf-Dieter Fink

    filesystem paths overrides

    renevanwijk Newbie

      According to the documention

      - https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.1/html-single/Administration_and_Configuration_Guide/index.html#Filesystem_Paths1


      it must be possible overriding jboss.server.log.dir and jboss.server.data.dir.


      "Users can add their own paths or override all except the first five of the above by adding a path element to their configuration file."


      When using something like



              <path name="jboss.server.log.dir" path="log/cluster-server1" relative-to="jboss.server.base.dir"/>

              <path name="jboss.server.data.dir" path="data/cluster-server1" relative-to="jboss.server.base.dir"/>



      in the standalone.xml, an error is thrown during start-up, saying that jboss.server.log.dir is reserved.


      By using system properties like



              <property name="jboss.server.log.dir" value="/some/path"/>



      you get the clear message that the property jboss.server.log.dir must be set on the command-line (otherwise it is too late).


      When setting the properties on the command-line


      ${JBOSS_HOME}/bin/standalone.sh --server-config=cluster-server1.xml -Djboss.server.log.dir=${JBOSS_HOME}/standalone/log/cluster-server1 -Djboss.server.data.dir=${JBOSS_HOME}/standalone/data/cluster-server1


      there is no problem.


      Is the last option the only way? If so it might be handy to update the documentation.