I love working with webMethods Service Designer. Its ease-of-installation and the fact that you get everything in a nice package make it a no-brainer for me.
The one thing I dislike about it is that you are being pushed to have the MSR running inside Designer. I need to restart Designer every now and then and MSR gets in the way here. But you can also run MSR separately. It comes with the usual scripts.
Unfortunately, there is a bug in server.sh (on Linux and macOS), which makes it impossible to start MSR this way. And since server.sh is used under the covers by startup.sh, the latter is no alternative either. But the issue is easy to fix, so here we go.
You need to correct the path for running the Java binary. So you need to search for the lines below. They are pretty much at the end of the script around line 123 or so.
## .... run Microservices Runtime
${JAVA_RUN} ${JAVA_D64} ${JAVA_OPTS} -DWM_HOME=${WM_HOME} -Dwatt.server.homeDir=${MSR_DIR} -classpath ${CLASSPATH} ${PROXY_MAIN} ${MSR_DIR}/bin/ini.cnf ${PREPENDCLASSES_SWITCH} ${PREPENDCLASSES} ${APPENDCLASSES_SWITCH} ${APPENDCLASSES} ${ENV_CLASSPATH_SWITCH} ${SAVED_CP}: $*
The problem is with ${JAVA_RUN}. It has been determined as a relative path. Nothing wrong with that in general. But here the current working directory has been changed after that, which obviously breaks things. So you must add a small snippet before ${JAVA_RUN}.
${SCRIPTDIR}/
Just copy-paste this before ${JAVA_HOME} and you are fine.
Alternatively you can run the following command, which will fix the script automatically. You must be in the same directory as server.sh for it to work.
sed -i bak 's/^${JAVA_RUN} ${JAVA_D64}/${SCRIPTDIR}\/${JAVA_RUN} ${JAVA_D64}/g' server.sh
I tested it with Server Designer 10.15 and 11.1, so it should work for you as well.
For other versions of Service Designer, you must check whether the script logic has been changed. Do not simply run it.
If you want me to write about other aspects of this topic, please leave a comment or send an email to info@jahntech.com. The same applies if you want to talk how we at JahnTech can help you with your project.
© 2024, 2025 by JahnTech GmbH and/or Christoph Jahn. No unauthorized use or distribution permitted.



