GetApplicationURL java action returns the value of the constant ApplicationRootUrl
final String applicationURL = UNDER_TEST ? "http://localhost:8080/" : Core.getConfiguration().getApplicationRootUrl();
Try setting the value of the ApplicationRootURL properly.
Refer this document: https://docs.mendix.com/refguide/custom-settings/#ApplicationRootUrl