Resolve WLSTException: Error occured while performing connect : Error getting the initial context. There is no server running.

If you are encountering no server running in Weblogic 10 MP1+ when trying to run wlst.sh to enable JMX for OEM, try the following tips to resolve the issue.