I am trying to install remotelly on a Windows 2019 Server the DHIS2 2.40 version.
In the server they have XAMPP installed. It serves other web sites. They use Apache for those web sites,
I have tried locally on a Virtualbox, installing XAMPP also and with the same configuration and it works. But when I try to install it in their server, the War file does not seem to correctly deploy.
When I enter the ROOT folder under Webapps, very few folders are created.
No error is produced in catalina and it seems to deploy correctly but very few messages writen as well in the log file:
Hi
I can see at a quick glance that the Java version that is used is Java 8… DHIS2 2.40 requires at least Java 11 (Java 17 recommended) and Tomcat 9. Please check that your infrastructure meets all the software requirements, click here.
Yes that is the basic problem. There was a previous installation of Java in the server, a JRE for client porpouses, that was interfiering with the OpenJDK 25.0.2 LTS that was installed for DHIS2. If I started the Tomcat service manually (using setenv.bat and startup.bat scripts) it worked.
I have told the system admin to uninstall the other java version they are not using anymore,
Anyway I do not know why, when I started the Tomcat service from XAMPP, the setenv.bat scipt, that inizialices the environment variable JAVA_HOME, was not working.
I will shortly come back with the final resoultion.