Tallan's Technology Blog

Tallan's Top Technologists Share Their Thoughts on Today's Technology Challenges

Downloading and setting up Mule Enterprise Runtime with MMC on a Windows machine

Paul Gutierrez

While going through all the installation steps for setting up MuleSoft on my machine, I normally found the instructions on their site to be very detailed and informative. However, I encountered some difficulties while downloading and setting up the Mule Enterprise Runtime with MMC (Mule Management Console). The instructions MuleSoft provides can be found here. The instructions seemed pretty straightforward, but when I went to the URL provided to reach the MMC, my browser was unable to establish a connection.

So I decided to write this blog post with the steps that I took in downloading the Mule Enteprise Runtime, the issues I encountered, and how I went about resolving those issues on a Windows machine.

Here is the list of steps that I took:

  1. Installed the Java SE Development Kit 7. Important: As of this blog post MuleSoft does not support Java6 or Java8.
  2. Installed the Mule Enterprise Runtime. Make sure to install the Runtime as shown below

InstallMuleEnterpriseRuntime

  1.  Navigated to downloaded .zip file and unzipped it.
  2. Opened up the command prompt and navigated to the newly extracted folder. For me the destination was: C:\Mule\mmc-distribution-mule-console-bundle-3.6.1\mmc-distribution-mule-console-bundle-3.6.1
  3. Ran the following command in the command prompt window: startup.bat
  4. When the the command finished executing it gave a URL I could use to navigate to the MMC.

StartupBatFinsished

  1. This is where I ran into the issue. When I went to the specified URL no connection was established.

NoEstablishedConnection

  1.  Upon looking into the logged messages in the command prompt I found that neither the JAVA_HOME nor JRE_HOME environment variables were defined which are needed by the Tomcat Server that the MMC uses.

NoJavaHome

  1. In order to fix this problem I navigated to the Tomcat bin folder and created a file called setenv.bat. For me the destination of that folder was: C:\Mule\mmc-distribution-mule-console-bundle-3.6.1\mmc-distribution-mule-console-bundle-3.6.1\mmc-3.6.1\apache-tomcat-7.0.52\bin
  2. I opened the newly created setenv.bat file and inserted the following line: set JAVA_HOME=<JDK Folder> where the <JDK Folder> for me was C:\Program Files\Java\jdk1.7.0_79.
  3. I saved the file and ran the shutdown.bat file in the command prompt and then reran the startup.bat.
  4. After that I was able to establish a connection to my localhost instance and get to the MMC.

MuleMMC

So in the end, as we can see, the issue that can really cause some problems is the fact that you have to establish your JAVA_HOME environment variable in your tomcat instance. The logging on the command prompt can be a little deceptive because even though it recognizes the fact that you are missing this environment variable, it still notifies the end user that they can navigate to the MMC, even though they won’t be able to establish a connection. Hopefully this step by step recollection of my process in figuring out this issue can help somebody else avoid the headaches I encountered while setting up the MMC.

1 Comment. Leave new

thank you very much.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

\\\