I get an error Environment variable DHIS2_HOME: null (TrayApp.java [main])when trying to start a connection dhis2-live.exewith Postgreson my Windows Vista machine.
However, the same application works fine if using H2 DB, but on demand I need to work with Postgres.
Here is the log file.
* INFO 23:48:27,232 Environment variable DHIS2_HOME: null (TrayApp.java [main])
* INFO 23:48:27,700 Initialising DHIS 2 Live... (TrayApp.java [main])
* INFO 23:48:28,574 Loading DHIS 2 on port: 8082 (WebAppServer.java [main])
* INFO 23:48:28,745 Setting DHIS 2 web app context to: /D:/dhis-live/webapps/dhis (WebAppServer.java [main])
* INFO 23:48:28,745 Lifecycle: server starting (TrayApp.java [Thread-2])
* INFO 23:48:55,001 System property dhis2.home points to /D:/dhis-live/conf (DefaultLocationManager.java [Thread-2])
* INFO 23:49:00,290 Hibernate configuration loaded, using dialect: org.hibernate.dialect.PostgreSQLDialect (DefaultHibernateConfigurationProvider.java [Thread-2])
* INFO 23:50:32,286 Found the following message senders: [org.hisp.dhis.message.EmailMessageSender@c0023f, org.hisp.dhis.sms.SmsMessageSender@b027dd] (DefaultMessageService.java [Thread-2])
* INFO 23:51:25,998 Lifecycle: server started (TrayApp.java [Thread-2])
hibernate.properties
hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.driver_class = org.postgresql.Driver
hibernate.connection.url = jdbc:postgresql:dhis2
hibernate.connection.username = dhis
hibernate.connection.password = dhis
hibernate.hbm2ddl.auto = update
source
share