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

Jean-Noel Rouvignac
12.50.2015 04b67b1f422eebad11f963a03c2ecda38a00268d
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, May 12, 2015 15:50 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, May 12, 2015 15:50 +0200
commit04b67b1f422eebad11f963a03c2ecda38a00268d
tree ffde16db93a959099517ae5ccd327ead8b2e1122 tree | zip | gz
parent d601e4ffd658a07065f14342d276b1548ceb8483 view | diff
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 ●●●● diff | view | raw | blame | history