I’m not sure if this will be available anytime soon. You can see the feature request Jira issue target version is specifically from version 40. [DHIS2-13871] - Jira
Please share the errors in the Catalina.out log (without authentication/sensitive info) and would you share the errors that appear? It might be worth seeing if that can be resolved.