[jboss-jira] [JBoss JIRA] Created: (JBBOOT-20) Bootstrap server relies on JVM lifecycle to shutdown the server
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Tue Mar 31 06:41:22 EDT 2009
Bootstrap server relies on JVM lifecycle to shutdown the server
---------------------------------------------------------------
Key: JBBOOT-20
URL: https://jira.jboss.org/jira/browse/JBBOOT-20
Project: JBoss Bootstrap
Issue Type: Bug
Affects Versions: 1.0.0-Beta-2
Reporter: jaikiran pai
Assignee: Andrew Lee Rubinger
Bootstrap server internally uses a runtime ShutdownHook which relies on a system property (defaulted to true) "jboss.shutdown.forceHalt". The shutdown hook then halts the VM with a default error code = 0 (=SUCCESS). Currently this affects the testcases which use bootstrap to start the server. Even if these tests fail, because of the shutdown hook, the JVM process exit code is always 0 (=SUCCESS). unless, the following 2 properties are set to "false" in the testcase:
...
props.put(ServerConfig.EXIT_ON_SHUTDOWN, "false");
System.setProperty("jboss.shutdown.forceHalt", "false");
...
server.init(props);
Build tools like Maven rely on the JVM process return code to decide whether the tests have succeeded to carry on with the rest of the build process steps.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list