[jboss-jira] [JBoss JIRA] (WFLY-816) Boot log writer ignores -Djboss.server.base.dir
James Perkins (JIRA)
issues at jboss.org
Thu Jul 31 16:32:30 EDT 2014
[ https://issues.jboss.org/browse/WFLY-816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Perkins closed WFLY-816.
------------------------------
Resolution: Out of Date
Closing this as the boot.log has gone away.
> Boot log writer ignores -Djboss.server.base.dir
> -----------------------------------------------
>
> Key: WFLY-816
> URL: https://issues.jboss.org/browse/WFLY-816
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Domain Management, Logging
> Reporter: Heiko Rupp
> Assignee: James Perkins
> Labels: rhq
>
> When on OS/X you start a server with -Djboss.server.base.dir this directory is used for configuration and also server.log, but not to populate the boot.log, which is still written to standalone/logs/boot.log.
> This is bad, as it will overwrite a boot.log for a server configuration that is running in parallel without -Djboss.server.base.dir= flag.
> Actually the logging config also seems to point at the old place
> hrupp 78046 0,0 1,1 1537296 96228 s005 S+ 10:55am 0:03.70 /usr/bin/java -D[Standalone] -d32 -client -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -Dorg.jboss.boot.log.file=/devel/jboss-as-7.1.1.Final/standalone/log/boot.log -Dlogging.configuration=file:/devel/jboss-as-7.1.1.Final/standalone/configuration/logging.properties -jar /devel/jboss-as-7.1.1.Final/jboss-modules.jar -mp /devel/jboss-as-7.1.1.Final/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/devel/jboss-as-7.1.1.Final -Djboss.server.base.dir=/devel/jboss-as-7.1.1.Final/standalone2
> Turns out that the magic to detect -Djboss.server.base.dir in standalone.sh only works for linux:
> if $linux; then
> # consolidate the server and command line opts
> SERVER_OPTS="$JAVA_OPTS $@"
> # process the standalone options
> for var in $SERVER_OPTS
> as readlink is using '-m' flag that does not exist on OS/X.
> That dependency on linux and readlink -m will probably render this -Djboss.server.base.dir feature invalid for AIX/HP-UX/Solaris etc.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jboss-jira
mailing list