mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
12.50.2015 04b67b1f422eebad11f963a03c2ecda38a00268d
OPENDJ-1795 On Windows: "multiple SLF4J bindings" error while using stop-ds tool against a remote instance

Problem is down to scripts calling each other.
stop-ds.bat calls
set SCRIPT_UTIL_CMD=set-full-server-environment-and-test-java
then goes to stopUsingProtocol label where it "calls" "_client-script.bat"
which then calls
set SCRIPT_UTIL_CMD=set-full-environment

And the CLASSPATH variable ends up with bootstrap.jar (with server logger) and bootstrap-client.jar (with java.util.logging logger) in it.



On Windows batch, "call" executes a script in the current bash context. It seems to be the equivalent of bash's "source".
The fix is to empty the CLASSPATH before calling "_client-script.bat"
1 files modified
1 ■■■■ changed files
opendj-server-legacy/resource/bin/stop-ds.bat 1 ●●●● patch | view | raw | blame | history
opendj-server-legacy/resource/bin/stop-ds.bat
@@ -115,6 +115,7 @@
:stopUsingProtocol
echo %SCRIPT%: stop using protocol >> %LOG%
set CLASSPATH=""
call "%INSTALL_ROOT%\lib\_client-script.bat" %*
goto end