Hi Team, am a new user
Question: I am setting up a vanila DHIS2 local server on my personal WINDOWS 11 laptop.
I installed Java version 21.0.2.0
I installed postgresql 16.1
Tomcat 9.0.85
DHIS2 40/dhis2-stable-latest.war
My apache tomcat is working properly.
But when i access localhost:8080/dhis2 i keep getting the error
The requested resource [/dhis2] is not available
I have checked all my environment variables are set correctly. Multiple times
The log file catalina gives an error
30-Jan-2024 08:28:15.074 SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [C:\Users\matha\apache-tomcat-9.0.85\apache-tomcat-9.0.85\webapps\dhis2.war]
dhis.conf is mentioned below. username: postgres with no password
Based on 2 days i spent trouble shooting i think i have narrowed it down to
either versions mismatch
or wrong configuration of dhis.conf file
Can someone please help me with this?
dhis.conf
# ----------------------------------------------------------------------
# Database connection
# ----------------------------------------------------------------------
# JDBC driver class
connection.driver_class = org.postgresql.Driver
# Database connection URL (assuming the database is running on localhost and default port)
connection.url = jdbc:postgresql://localhost:5432/dhis2
# Database username
connection.username = postgres
# Database password (set this if your database has a password)
connection.password =
# ----------------------------------------------------------------------
# Server
# ----------------------------------------------------------------------
# Enable secure settings if deployed on HTTPS, default 'off', can be 'on'
# server.https = on
# Server base URL (uncomment and set this if accessing DHIS2 through a specific URL)
# server.base.url = https://yourserver.com
15 posts - 3 participants