-
Bug
-
Resolution: Done
-
Major
-
29.0.0.Beta6
-
None
This bug concens all versions from Wildfly 18 (no problem on Wildfly 10, the problems has been introduced between WF 10 and 18 and is still present).
There is a difference between the standalone.sh and the standalone.bat file.
The sh script is using a unique block of code protected by the PRESERVE_JAVA_OPTS variable whereas the bat script is using two blocks of code. The problem is the second block is not using the PRESERVE_JAVA_OPTS but a PRESERVE_JAVA_OPT variable (surely a typo error, the S is missing), so this block of code is always executed, contrary to the equivalent code in the Linux version.
The typo error should be fixed, the Java's security manager activation has been added in this second block of code.
The erroneous block in the standalone.bat file is as following :
if not "%PRESERVE_JAVA_OPT%" == "true" (
if "%GC_LOG%" == "true" (