Work on Mendix with ZScaler enabled

0
I have started working on a new Mendix project within my organization which i recently joined and the company also started newly on Mendix. On my company device ZScaler should be always active. But I am facing various issues when it is enabled like -  1. While installing mendix and downloading project - Adoptium and git was blocked (which i got whitelisted) 2. After downloading project error comes -  a. Java dependency synchronization failed.  b. Build failures stating that plugin “org.cyclonedx.bom”  cannot be resolved.   3. When trying to run the application -  a. Error occur while creating the client configuration.Error Message: unable to find valid certification     path to requested target b.  com.mendix.m2ee.api.AdminException: Starting Mendix Runtime failed.    at com.mendix.m2ee.api.AdminExceptionExt$Extensions.withFeedback(AdminExceptionExt.scala:25) Caused by: com.mendix.m2ee.api.InfoAdminException: The after-startup-action failed with an exception or returned false.    at com.mendix.basis.impl.MxRuntimeImpl.$anonfun$initializeAfterStartupActions$1(MxRuntimeImpl.scala:571)   These are the error which i find found so far , but there may be more . Is there any proper documentation which i can refer to or or a list of at least basic things that i need , so that i can ask the IT team to provide all the necessary access so that i don't need to bother them every day.
asked
4 answers
0

Hi Anand, 

 

Have you tried running the application using Admin? I had the same issues and the only way I found around it was to run Mendix Studio pro as administrator.

 

Sincerely,

 

Florian

answered
0

Hello Anand,

 

this is due to your company proxy blocking network to plugins and java. if whitelisting is not helping, you can try with Proxifier. We had similar issue here and working with Proxifier fixed the issue.

answered
0

Hello Anand,

I'm facing the same issue with ZScaller and I have no solution...

But I have a workarounds:

1. use the offline installation of studio pro: https://docs.mendix.com/refguide/install/#offline

2. manually jar sync

- disable the gradle synchronization in the "Deployment" tab of Studio Pro Preference; it will stop the "Java dependency synchronization failed" error.

- open the "dependencies" tab in the settings page of your project and download manually all jars from Maven website.

- put all downloaded fjar files in the vendorlib folder in the App directory of your project

3. I have this error when I try to use a web service form another domain... In this case, you have to add missing certificate in the "certificates" tab of the settings page of your project.

 

 

answered
0

Hi Anand,

I hope you are doing well.

 

From personal experience I can tell you that the issue occurs because ZScaler intercepts network traffic, and Mendix Studio Pro (and its Java runtime) doesn’t trust ZScaler’s certificate by default. To solve the issue you need to add the ZScaler certificate to the Java truststore (cacerts) used by Studio Pro.

 

Here’s how to do it: 

  • Get the ZScaler Certificate

    • Ask your IT team for the ZScaler root certificate file (usually .cer or .crt).
  • Locate Your Java Installation

    • Check in Studio Pro: Edit > Preferences > Deployment > JDK Directory
    • Or look in C:\Program Files\Eclipse Adoptium\jdk-11 or similar.
  • Backup the Truststore

    • Go to [Java Path]\lib\security
    • Copy the file named cacerts and rename the copy to cacerts.backup.
  • Import the Certificate

    • Download KeyStore Explorer (free tool): http://keystore-explorer.org/downloads.html
    • Open cacerts in KeyStore Explorer.
    • Password: changeit (default for Java).
    • Use Tools > Import Trusted Certificate and select the ZScaler certificate.
    • Save changes (overwrite the original file).
  • Restart Your Computer

    • This ensures Java picks up the updated truststore.
  • Test in Studio Pro

    • Open your project and run it. The certificate error should be resolved.

 

Why this works:

Mendix uses Java for runtime and build processes. If ZScaler blocks or intercepts traffic, Java sees it as untrusted. Adding the ZScaler certificate to cacerts tells Java to trust it.

 

Extra Tips:

  • Make sure you have admin rights to modify files in the Java directory.
  • If issues persist, confirm Studio Pro is using the same JDK you updated.
  • Restart Studio Pro after making changes.

 

I hope this helps you solve your problem.

 

Best regards,

Oswaldo Valles

answered