[JBoss JIRA] (WFCORE-3715) JBOSS_HOME is unset in powershell scripts
by Lin Gao (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3715?page=com.atlassian.jira.plugi... ]
Lin Gao moved JBEAP-14508 to WFCORE-3715:
-----------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-3715 (was: JBEAP-14508)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Scripts
(was: Scripts)
Affects Version/s: (was: 7.0.9.GA)
Fix Version/s: (was: 7.1.3.GA)
> JBOSS_HOME is unset in powershell scripts
> -----------------------------------------
>
> Key: WFCORE-3715
> URL: https://issues.jboss.org/browse/WFCORE-3715
> Project: WildFly Core
> Issue Type: Bug
> Components: Scripts
> Environment: Windows power-shell.
> Reporter: Lin Gao
>
> When using ps1 (power-shell) scripts in a windows environment the JBOSS_HOME environment variable is always unset at the end. For example using the {{jboss-cli.ps1}} script.
> That variable can be set by the user and this not be affected by the execution of the scripts.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (WFLY-10134) ee8.preview.mode property is racy
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFLY-10134?page=com.atlassian.jira.plugin... ]
Brian Stansberry commented on WFLY-10134:
-----------------------------------------
[~dmlloyd] Perhaps this non-extension module (i.e. kernel depends on it):
https://github.com/wildfly/wildfly-core/blame/master/core-feature-pack/sr...
which leads to this:
https://github.com/wildfly/wildfly-core/blame/master/core-feature-pack/sr...
This is nothing new though. And it doesn't match your traces, since ServerService Thread Pool shouldn't be loading the kernel-dependency modules, and the undertow extension wouldn't be in the mix. OTOH I don't see why this wouldn't have been a problem long ago, unless JBoss Modules defers loading optional=true modules until....<draws a blank/>.
> ee8.preview.mode property is racy
> ---------------------------------
>
> Key: WFLY-10134
> URL: https://issues.jboss.org/browse/WFLY-10134
> Project: WildFly
> Issue Type: Bug
> Components: EE
> Reporter: David Lloyd
> Priority: Critical
>
> The {{ee8-temp}} tests set the {{ee8.preview.mode}} property in the server management model, relying on system properties to get parsed and set before extensions which use Java EE 8 APIs are loaded. This assumption appears to be invalid.
> System properties are installed by the boot controller thread, and extensions are loaded in server service threads. In testing with the latest jboss-modules, I've observed cases where the controller thread does not add system properties until after some extension loading has happened in the server service threads. I haven't untangled why this happens only with the most recent jboss-modules in play, but the race exists regardless.
> Setting the {{ee8.preview.mode}} in {{arquillian.xml}} appears to work around the issue.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (WFLY-10134) ee8.preview.mode property is racy
by David Lloyd (JIRA)
[ https://issues.jboss.org/browse/WFLY-10134?page=com.atlassian.jira.plugin... ]
David Lloyd commented on WFLY-10134:
------------------------------------
>From my TRACE test output, it looks like {{javax.servlet.api}} is loaded by the Undertow extension (in this case by {{ServerService Thread Pool \-\- 65}}) chronologically ahead of the system property configuration being processed (which happens in {{Controller Boot Thread}}).
> ee8.preview.mode property is racy
> ---------------------------------
>
> Key: WFLY-10134
> URL: https://issues.jboss.org/browse/WFLY-10134
> Project: WildFly
> Issue Type: Bug
> Components: EE
> Reporter: David Lloyd
> Priority: Critical
>
> The {{ee8-temp}} tests set the {{ee8.preview.mode}} property in the server management model, relying on system properties to get parsed and set before extensions which use Java EE 8 APIs are loaded. This assumption appears to be invalid.
> System properties are installed by the boot controller thread, and extensions are loaded in server service threads. In testing with the latest jboss-modules, I've observed cases where the controller thread does not add system properties until after some extension loading has happened in the server service threads. I haven't untangled why this happens only with the most recent jboss-modules in play, but the race exists regardless.
> Setting the {{ee8.preview.mode}} in {{arquillian.xml}} appears to work around the issue.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (WFLY-10134) ee8.preview.mode property is racy
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFLY-10134?page=com.atlassian.jira.plugin... ]
Brian Stansberry commented on WFLY-10134:
-----------------------------------------
I have no idea how this could happen, unless the ExtensionXml is not being passed a DeferredExtensionContext in its constructor. And even then it shouldn't be racy, it should be a 100% case of the extension being loaded before the standalone.xml system property is set. (The extension loading is done by the server service threads but the controller boot thread blocks waiting for that parallel work to finish.)
What modules are you seeing loaded that you don't expect?
> ee8.preview.mode property is racy
> ---------------------------------
>
> Key: WFLY-10134
> URL: https://issues.jboss.org/browse/WFLY-10134
> Project: WildFly
> Issue Type: Bug
> Components: EE
> Reporter: David Lloyd
> Priority: Critical
>
> The {{ee8-temp}} tests set the {{ee8.preview.mode}} property in the server management model, relying on system properties to get parsed and set before extensions which use Java EE 8 APIs are loaded. This assumption appears to be invalid.
> System properties are installed by the boot controller thread, and extensions are loaded in server service threads. In testing with the latest jboss-modules, I've observed cases where the controller thread does not add system properties until after some extension loading has happened in the server service threads. I haven't untangled why this happens only with the most recent jboss-modules in play, but the race exists regardless.
> Setting the {{ee8.preview.mode}} in {{arquillian.xml}} appears to work around the issue.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month