Unable to start DHIS2 after installation

Hi all,

I have installed DHIS2 on my server by following the installation guide. But DHIS2 is not starting and the error log shows the following

23-May-2019 08:58:36.338 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common/classes], exists: [false], isDirectory: [false], canRead: [false]
23-May-2019 08:58:36.347 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common], exists: [false], isDirectory: [false], canRead: [false]
23-May-2019 08:58:36.349 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server/classes], exists: [false], isDirectory: [false], canRead: [false]
23-May-2019 08:58:36.350 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server], exists: [false], isDirectory: [false], canRead: [false]
23-May-2019 08:58:36.351 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
23-May-2019 08:58:36.352 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared], exists: [false], isDirectory: [false], canRead: [false]
23-May-2019 08:58:37.030 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.32 (Ubuntu)
23-May-2019 08:58:37.030 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Dec 10 2018 14:08:07 UTC
23-May-2019 08:58:37.031 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.32.0
23-May-2019 08:58:37.032 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
23-May-2019 08:58:37.032 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.4.0-131-generic
23-May-2019 08:58:37.033 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
23-May-2019 08:58:37.033 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
23-May-2019 08:58:37.034 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_212-8u212-b03-0ubuntu1.16.04.1-b03
23-May-2019 08:58:37.034 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
23-May-2019 08:58:37.034 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/dhis/tomcat-dhis
23-May-2019 08:58:37.035 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/share/tomcat8
23-May-2019 08:58:37.035 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/dhis/tomcat-dhis/conf/logging.properties
23-May-2019 08:58:37.036 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
23-May-2019 08:58:37.036 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true
23-May-2019 08:58:37.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx128M
23-May-2019 08:58:37.037 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=/usr/share/tomcat8/endorsed
23-May-2019 08:58:37.038 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/dhis/tomcat-dhis
23-May-2019 08:58:37.038 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomcat8
23-May-2019 08:58:37.038 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/home/dhis/tomcat-dhis/temp
23-May-2019 08:58:37.204 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8080”]
23-May-2019 08:58:37.220 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
23-May-2019 08:58:37.222 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 674 ms
23-May-2019 08:58:37.243 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
23-May-2019 08:58:37.243 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.32 (Ubuntu)
23-May-2019 08:58:37.349 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /home/dhis/tomcat-dhis/webapps/ROOT.war
23-May-2019 08:58:53.047 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were $
23-May-2019 08:58:55.081 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
23-May-2019 08:58:55.089 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
23-May-2019 08:58:55.109 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /home/dhis/tomcat-dhis/webapps/ROOT.war has finished in 17,759 ms
23-May-2019 08:58:55.111 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“http-nio-8080”]
23-May-2019 08:58:55.115 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 17892 ms
23-May-2019 09:16:23.562 INFO [Thread-3] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
23-May-2019 09:16:23.617 INFO [Thread-3] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
23-May-2019 09:16:23.619 INFO [Thread-3] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“http-nio-8080”]
23-May-2019 09:16:23.621 INFO [Thread-3] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler [“http-nio-8080”]
23-May-2019 09:19:29.272 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common/classes], exists: [false], isDirectory: [false], canRead: [false]
23-May-2019 09:19:29.281 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common], exists: [false], isDirectory: [false], canRead: [false]
23-May-2019 09:19:29.282 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server/classes], exists: [false], isDirectory: [false], canRead: [false]
23-May-2019 09:19:29.283 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server], exists: [false], isDirectory: [false], canRead: [false]
23-May-2019 09:19:29.284 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
23-May-2019 09:19:29.284 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared], exists: [false], isDirectory: [false], canRead: [false]
23-May-2019 09:19:29.736 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.32 (Ubuntu)
23-May-2019 09:19:29.737 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Dec 10 2018 14:08:07 UTC
23-May-2019 09:19:29.738 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.32.0
23-May-2019 09:19:29.738 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
23-May-2019 09:19:29.739 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.4.0-131-generic
23-May-2019 09:19:29.739 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
23-May-2019 09:19:29.740 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
23-May-2019 09:19:29.740 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_212-8u212-b03-0ubuntu1.16.04.1-b03
23-May-2019 09:19:29.741 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
23-May-2019 09:19:29.741 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/dhis/tomcat-dhis
23-May-2019 09:19:29.742 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/share/tomcat8

Thank you
Nuredin

1 Like

HI @lenuredin,

Check out detailed instructions on this topic - Technical advice for first installation of DHIS2 for information and link to @julhas’ tutorial with step-by-step instructions and @meghasl also updated the link on this thread: Installing DHIS2 on a Windows Local Server .

Let us know if this helps.

Best,
James.

Hi

I’m not sure, did any of the info in the links help? It’s also unclear from @Nuredin’s log that his setup is running on Windows.

I have the same issue running on Ubuntu Bionic, Postgres 11 and OpenJDK 11 and Tomcat 8. Has anyone else had similar experience or any pointers to a solution?

Many thanks

Russell

2 Likes

Hi @danboy,

Welcome to the DHIS2 Community!

We had another discussion on ubuntu installation by our brother @sohelInstallation on Ubuntu 18.04 LTS

Let us know if it helps.

Best,
James.

@danboy
will you please share your catalina log? you definitely find something error in it. Also you may try with tomcat 9 if you have option…

1 Like

@lenuredin,

From your log only visible problem showing

org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common/classes], exists: [false], isDirectory: [false], canRead: [false

Check your directory permission and dhis2 user have access write to these directory.

May be you missed some steps in this installation guideline (DHIS2: District Health Information System: DHIS2 Installation Guide for Ubuntu 16.04 LTS)

1 Like

Many thanks, I’ll review the link.

1 Like

Hi Sarder

I thought I’d double check your link and the steps which as best as I can see have been accurately followed.

I should point out while I have tried installing a seperate Tomcat 9 installation. While Tomcat works fine DHIS would not. I have since reverted to the “Standard” installtion procedure as prescribed Home - DHIS2 Documentation

so I have a ~dhis/tomcat-dhis/ directory and have run the appropriate commands and scripts.

To answer your question /usr/share/tomcat8 is owned by root and has 755 permissions.

Below is most of the catalina.out file, I hope the cause is contained in it.

Many thanks

NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
09-Sep-2019 12:40:17.818 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/common/classes], exists: [false], isDirectory: [false], canRead: [false]
09-Sep-2019 12:40:17.828 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/common], exists: [false], isDirectory: [false], canRead: [false]
09-Sep-2019 12:40:17.829 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common/classes], exists: [false], isDirectory: [false], canRead: [false]
09-Sep-2019 12:40:17.829 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common], exists: [false], isDirectory: [false], canRead: [false]
09-Sep-2019 12:40:17.833 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/server/classes], exists: [false], isDirectory: [false], canRead: [false]
09-Sep-2019 12:40:17.833 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/server], exists: [false], isDirectory: [false], canRead: [false]
09-Sep-2019 12:40:17.833 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server/classes], exists: [false], isDirectory: [false], canRead: [false]
09-Sep-2019 12:40:17.834 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server], exists: [false], isDirectory: [false], canRead: [false]
09-Sep-2019 12:40:17.835 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
09-Sep-2019 12:40:17.836 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/shared], exists: [false], isDirectory: [false], canRead: [false]
09-Sep-2019 12:40:17.838 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
09-Sep-2019 12:40:17.839 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared], exists: [false], isDirectory: [false], canRead: [false]
09-Sep-2019 12:40:19.181 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.39 (Ubuntu)
09-Sep-2019 12:40:19.190 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: May 9 2019 13:50:49 UTC
09-Sep-2019 12:40:19.190 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.39.0
09-Sep-2019 12:40:19.190 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
09-Sep-2019 12:40:19.190 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.15.0-58-generic
09-Sep-2019 12:40:19.191 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
09-Sep-2019 12:40:19.191 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-11-openjdk-amd64
09-Sep-2019 12:40:19.191 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.4+11-post-Ubuntu-1ubuntu218.04.3
09-Sep-2019 12:40:19.191 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Ubuntu
09-Sep-2019 12:40:19.191 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/dhis/tomcat-dhis
09-Sep-2019 12:40:19.192 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/share/tomcat8
09-Sep-2019 12:40:19.192 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
09-Sep-2019 12:40:19.192 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
09-Sep-2019 12:40:19.192 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
09-Sep-2019 12:40:19.193 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/dhis/tomcat-dhis/conf/logging.properties
09-Sep-2019 12:40:19.193 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
09-Sep-2019 12:40:19.193 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx7500m
09-Sep-2019 12:40:19.193 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms4000m
09-Sep-2019 12:40:19.193 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
09-Sep-2019 12:40:19.193 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
09-Sep-2019 12:40:19.194 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
09-Sep-2019 12:40:19.194 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
09-Sep-2019 12:40:19.194 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/dhis/tomcat-dhis
09-Sep-2019 12:40:19.194 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomcat8
09-Sep-2019 12:40:19.195 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/home/dhis/tomcat-dhis/temp
09-Sep-2019 12:40:19.196 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib]
09-Sep-2019 12:40:19.279 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8080”]
09-Sep-2019 12:40:19.305 SEVERE [main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:113)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:552)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at org.apache.catalina.startup.Catalina.load(Catalina.java:639)
at org.apache.catalina.startup.Catalina.load(Catalina.java:662)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:309)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:996)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
… 12 more
Caused by: java.net.BindException: Address already in use
at java.base/sun.nio.ch.Net.bind0(Native Method)
at java.base/sun.nio.ch.Net.bind(Net.java:461)
at java.base/sun.nio.ch.Net.bind(Net.java:453)
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
at java.base/sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:80)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:219)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1105)
at org.apache.tomcat.util.net.AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:224)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:581)
at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:68)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:993)
… 13 more

09-Sep-2019 12:40:19.306 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1170 ms
09-Sep-2019 12:40:19.418 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
09-Sep-2019 12:40:19.418 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.39 (Ubuntu)
09-Sep-2019 12:40:19.508 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/dhis/tomcat-dhis/webapps/sample.war]
09-Sep-2019 12:40:21.350 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
09-Sep-2019 12:40:21.422 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/home/dhis/tomcat-dhis/webapps/sample.war] has finished in [1,913] ms
09-Sep-2019 12:40:21.512 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/dhis/tomcat-dhis/webapps/dhis_232.war]
09-Sep-2019 12:40:39.540 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

  • INFO 2019-09-09 12:40:43,709 System property dhis2.home not set (DefaultLocationManager.java [localhost-startStop-1])
  • INFO 2019-09-09 12:40:43,715 Environment variable DHIS2_HOME points to /home/dhis/config (DefaultLocationManager.java [localhost-startStop-1])
  • INFO 2019-09-09 12:40:43,797 File /home/dhis/config/dhis-google-auth.json does not exist (DefaultLocationManager.java [localhost-startStop-1])
  • INFO 2019-09-09 12:40:43,797 Could not find dhis-google-auth.json (DefaultDhisConfigurationProvider.java [localhost-startStop-1])
  • INFO 2019-09-09 12:40:43,797 File /home/dhis/config/dhis-google-auth.json does not exist (DefaultLocationManager.java [localhost-startStop-1])
  • INFO 2019-09-09 12:40:43,797 Could not find dhis-google-auth.json (DefaultDhisConfigurationProvider.java [localhost-startStop-1])
  • WARN 2019-09-09 12:40:46,474 Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.validation.ValidationRuleStore’: Unsatisfied dependency expressed through field ‘currentUserService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserService’: Unsatisfied dependency expressed through field ‘currentUserStore’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserStore’: Unsatisfied dependency expressed through field ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-db-migration-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘flywayConfig’ while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘databaseInfoProvider’: Unsatisfied dependency expressed through field ‘jdbcTemplate’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jdbcTemplate’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘dataSource’ while setting bean property ‘dataSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘driverClass’ while setting bean property ‘driverClass’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘driverClass’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘hibernateConfigurationProvider’ while setting bean property ‘hibernateConfigurationProvider’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘hibernateConfigurationProvider’: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException (AbstractApplicationContext.java [localhost-startStop-1])
  • ERROR 2019-09-09 12:40:46,480 Context initialization failed (ContextLoader.java [localhost-startStop-1])
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.validation.ValidationRuleStore’: Unsatisfied dependency expressed through field ‘currentUserService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserService’: Unsatisfied dependency expressed through field ‘currentUserStore’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserStore’: Unsatisfied dependency expressed through field ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-db-migration-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘flywayConfig’ while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘databaseInfoProvider’: Unsatisfied dependency expressed through field ‘jdbcTemplate’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jdbcTemplate’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘dataSource’ while setting bean property ‘dataSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘driverClass’ while setting bean property ‘driverClass’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘driverClass’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘hibernateConfigurationProvider’ while setting bean property ‘hibernateConfigurationProvider’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘hibernateConfigurationProvider’: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:364)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1269)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4770)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5236)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:980)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1852)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
    Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserService’: Unsatisfied dependency expressed through field ‘currentUserStore’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserStore’: Unsatisfied dependency expressed through field ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-db-migration-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘flywayConfig’ while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘databaseInfoProvider’: Unsatisfied dependency expressed through field ‘jdbcTemplate’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jdbcTemplate’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘dataSource’ while setting bean property ‘dataSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘driverClass’ while setting bean property ‘driverClass’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘driverClass’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘hibernateConfigurationProvider’ while setting bean property ‘hibernateConfigurationProvider’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘hibernateConfigurationProvider’: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:364)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1269)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1136)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1064)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:583)
    … 28 more
    … 71 more
2 Likes

It seems 8080 port used by other application, please try other port or close the application which using that port .

1 Like

Thanks Sarder, I’ll check it but. Perhaps it wasn’t freed up after stopping the free-standing Tomcat 9 that was running. I’ll remove it and try again. And let you know.

1 Like

OK Sarder, some progress. Tomcat is running and loads other Sample war files but not dhis
I don’t see anything obvious, but your trained eye might.

Thx

NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
10-Sep-2019 16:08:51.029 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/common/classes], exists: [false], isDirectory: [false], canRead: [false]
10-Sep-2019 16:08:51.036 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/common], exists: [false], isDirectory: [false], canRead: [false]
10-Sep-2019 16:08:51.036 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common/classes], exists: [false], isDirectory: [false], canRead: [false]
10-Sep-2019 16:08:51.036 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common], exists: [false], isDirectory: [false], canRead: [false]
10-Sep-2019 16:08:51.040 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/server/classes], exists: [false], isDirectory: [false], canRead: [false]
10-Sep-2019 16:08:51.040 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/server], exists: [false], isDirectory: [false], canRead: [false]
10-Sep-2019 16:08:51.040 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server/classes], exists: [false], isDirectory: [false], canRead: [false]
10-Sep-2019 16:08:51.040 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server], exists: [false], isDirectory: [false], canRead: [false]
10-Sep-2019 16:08:51.041 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
10-Sep-2019 16:08:51.041 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/shared], exists: [false], isDirectory: [false], canRead: [false]
10-Sep-2019 16:08:51.041 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
10-Sep-2019 16:08:51.042 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared], exists: [false], isDirectory: [false], canRead: [false]
10-Sep-2019 16:08:53.126 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.39 (Ubuntu)
10-Sep-2019 16:08:53.126 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: May 9 2019 13:50:49 UTC
10-Sep-2019 16:08:53.126 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.39.0
10-Sep-2019 16:08:53.126 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
10-Sep-2019 16:08:53.126 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.15.0-60-generic
10-Sep-2019 16:08:53.126 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
10-Sep-2019 16:08:53.127 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-11-openjdk-amd64
10-Sep-2019 16:08:53.127 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.4+11-post-Ubuntu-1ubuntu218.04.3
10-Sep-2019 16:08:53.127 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Ubuntu
10-Sep-2019 16:08:53.127 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/dhis/tomcat-dhis
10-Sep-2019 16:08:53.127 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/share/tomcat8
10-Sep-2019 16:08:53.127 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
10-Sep-2019 16:08:53.127 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
10-Sep-2019 16:08:53.127 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
10-Sep-2019 16:08:53.127 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/dhis/tomcat-dhis/conf/logging.properties
10-Sep-2019 16:08:53.128 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
10-Sep-2019 16:08:53.128 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx7500m
10-Sep-2019 16:08:53.128 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms4000m
10-Sep-2019 16:08:53.128 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
10-Sep-2019 16:08:53.128 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
10-Sep-2019 16:08:53.128 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
10-Sep-2019 16:08:53.128 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
10-Sep-2019 16:08:53.128 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/dhis/tomcat-dhis
10-Sep-2019 16:08:53.128 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomcat8
10-Sep-2019 16:08:53.128 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/home/dhis/tomcat-dhis/temp
10-Sep-2019 16:08:53.128 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib]
10-Sep-2019 16:08:53.264 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8080”]
10-Sep-2019 16:08:53.352 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
10-Sep-2019 16:08:53.392 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1945 ms
10-Sep-2019 16:08:53.541 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
10-Sep-2019 16:08:53.541 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.39 (Ubuntu)
10-Sep-2019 16:08:53.657 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/dhis/tomcat-dhis/webapps/sample.war]
10-Sep-2019 16:08:55.821 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
10-Sep-2019 16:10:09.308 WARNING [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [73,469] milliseconds.
10-Sep-2019 16:10:09.375 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/home/dhis/tomcat-dhis/webapps/sample.war] has finished in [75,718] ms
10-Sep-2019 16:10:09.467 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/dhis/tomcat-dhis/webapps/dhis_232.war]
10-Sep-2019 16:10:28.023 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

  • INFO 2019-09-10 16:10:31,949 System property dhis2.home not set (DefaultLocationManager.java [localhost-startStop-1])
  • INFO 2019-09-10 16:10:31,951 Environment variable DHIS2_HOME points to /home/dhis/config (DefaultLocationManager.java [localhost-startStop-1])
  • INFO 2019-09-10 16:10:32,007 File /home/dhis/config/dhis-google-auth.json does not exist (DefaultLocationManager.java [localhost-startStop-1])
  • INFO 2019-09-10 16:10:32,008 Could not find dhis-google-auth.json (DefaultDhisConfigurationProvider.java [localhost-startStop-1])
  • INFO 2019-09-10 16:10:32,008 File /home/dhis/config/dhis-google-auth.json does not exist (DefaultLocationManager.java [localhost-startStop-1])
  • INFO 2019-09-10 16:10:32,008 Could not find dhis-google-auth.json (DefaultDhisConfigurationProvider.java [localhost-startStop-1])
  • WARN 2019-09-10 16:10:34,645 Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.validation.ValidationRuleStore’: Unsatisfied dependency expressed through field ‘currentUserService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserService’: Unsatisfied dependency expressed through field ‘currentUserStore’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserStore’: Unsatisfied dependency expressed through field ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-db-migration-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘flywayConfig’ while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘databaseInfoProvider’: Unsatisfied dependency expressed through field ‘jdbcTemplate’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jdbcTemplate’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘dataSource’ while setting bean property ‘dataSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘driverClass’ while setting bean property ‘driverClass’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘driverClass’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘hibernateConfigurationProvider’ while setting bean property ‘hibernateConfigurationProvider’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘hibernateConfigurationProvider’: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException (AbstractApplicationContext.java [localhost-startStop-1])
  • ERROR 2019-09-10 16:10:34,651 Context initialization failed (ContextLoader.java [localhost-startStop-1])
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.validation.ValidationRuleStore’: Unsatisfied dependency expressed through field ‘currentUserService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserService’: Unsatisfied dependency expressed through field ‘currentUserStore’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserStore’: Unsatisfied dependency expressed through field ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-db-migration-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘flywayConfig’ while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘databaseInfoProvider’: Unsatisfied dependency expressed through field ‘jdbcTemplate’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jdbcTemplate’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘dataSource’ while setting bean property ‘dataSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘driverClass’ while setting bean property ‘driverClass’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘driverClass’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘hibernateConfigurationProvider’ while setting bean property ‘hibernateConfigurationProvider’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘hibernateConfigurationProvider’: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:364)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1269)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4770)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5236)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:980)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1852)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
    Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserService’: Unsatisfied dependency expressed through field ‘currentUserStore’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserStore’: Unsatisfied dependency expressed through field ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-db-migration-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘flywayConfig’ while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘databaseInfoProvider’: Unsatisfied dependency expressed through field ‘jdbcTemplate’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jdbcTemplate’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘dataSource’ while setting bean property ‘dataSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘driverClass’ while setting bean property ‘driverClass’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘driverClass’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis_232/WEB-INF/lib/dhis-support-hibernate-2.32.1.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘hibernateConfigurationProvider’ while setting bean property ‘hibernateConfigurationProvider’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘hibernateConfigurationProvider’: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:364)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1269)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1136)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1064)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:583)
    … 28 more
2 Likes

It seems it is looking for /home/dhis/config/dhis-google-auth.json inside dhis2_home directory and that file does not exist there

1 Like

Thanks but where would I get it and should it not have been included/installed? Should that be a show stopper?

Thanks

Russell

2 Likes

@danboy
can you please follow the steps in here, let me know if it helps.

by the way which version of dhis2 you are trying to set up?

1 Like

Hi I have installed the Google Api .json file but we are playing Wack a Mole!

Now I need to resolve,

Error creating bean with name ‘org.hisp.dhis.validation.ValidationRuleStore’ which seems to be a common issue.

DHIS Version 2.32

Thx

1 Like

Hi @danboy,
Very sorry for you, can you please share your full catalina log now. It is very hard for me to understand the problem with that line.

1 Like

Hi Sohel

I’ve tried an older version with the same outcome. Here’s some of the file.

NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
11-Sep-2019 12:39:35.953 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/common/classes], exists: [false], isDirectory: [false], canRead: [false]
11-Sep-2019 12:39:35.959 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/common], exists: [false], isDirectory: [false], canRead: [false]
11-Sep-2019 12:39:35.960 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common/classes], exists: [false], isDirectory: [false], canRead: [false]
11-Sep-2019 12:39:35.960 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common], exists: [false], isDirectory: [false], canRead: [false]
11-Sep-2019 12:39:35.968 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/server/classes], exists: [false], isDirectory: [false], canRead: [false]
11-Sep-2019 12:39:35.970 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/server], exists: [false], isDirectory: [false], canRead: [false]
11-Sep-2019 12:39:35.970 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server/classes], exists: [false], isDirectory: [false], canRead: [false]
11-Sep-2019 12:39:35.970 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server], exists: [false], isDirectory: [false], canRead: [false]
11-Sep-2019 12:39:35.970 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
11-Sep-2019 12:39:35.973 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/shared], exists: [false], isDirectory: [false], canRead: [false]
11-Sep-2019 12:39:35.973 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
11-Sep-2019 12:39:35.974 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared], exists: [false], isDirectory: [false], canRead: [false]
11-Sep-2019 12:39:37.054 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.39 (Ubuntu)
11-Sep-2019 12:39:37.056 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 9 2019 19:47:51 UTC
11-Sep-2019 12:39:37.056 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.39.0
11-Sep-2019 12:39:37.056 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
11-Sep-2019 12:39:37.059 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.15.0-60-generic
11-Sep-2019 12:39:37.059 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
11-Sep-2019 12:39:37.059 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-11-openjdk-amd64
11-Sep-2019 12:39:37.060 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.4+11-post-Ubuntu-1ubuntu218.04.3
11-Sep-2019 12:39:37.060 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Ubuntu
11-Sep-2019 12:39:37.060 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/dhis/tomcat-dhis
11-Sep-2019 12:39:37.061 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/share/tomcat8
11-Sep-2019 12:39:37.062 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
11-Sep-2019 12:39:37.063 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
11-Sep-2019 12:39:37.063 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
11-Sep-2019 12:39:37.063 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/dhis/tomcat-dhis/conf/logging.properties
11-Sep-2019 12:39:37.067 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
11-Sep-2019 12:39:37.067 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx7500m
11-Sep-2019 12:39:37.067 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms4000m
11-Sep-2019 12:39:37.067 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
11-Sep-2019 12:39:37.068 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
11-Sep-2019 12:39:37.068 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
11-Sep-2019 12:39:37.068 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
11-Sep-2019 12:39:37.068 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/dhis/tomcat-dhis
11-Sep-2019 12:39:37.069 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomcat8
11-Sep-2019 12:39:37.069 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/home/dhis/tomcat-dhis/temp
11-Sep-2019 12:39:37.070 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib]
11-Sep-2019 12:39:37.145 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8080”]
11-Sep-2019 12:39:37.175 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
11-Sep-2019 12:39:37.209 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1142 ms
11-Sep-2019 12:39:37.329 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
11-Sep-2019 12:39:37.330 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.39 (Ubuntu)
11-Sep-2019 12:39:37.371 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/dhis/tomcat-dhis/webapps/sample.war]
11-Sep-2019 12:39:39.007 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
11-Sep-2019 12:42:57.848 WARNING [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [198,832] milliseconds.
11-Sep-2019 12:42:57.883 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/home/dhis/tomcat-dhis/webapps/sample.war] has finished in [200,507] ms
11-Sep-2019 12:42:57.921 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/dhis/tomcat-dhis/webapps/dhis.2_29.war]
11-Sep-2019 12:43:10.234 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

  • INFO 2019-09-11 12:43:16,143 System property dhis2.home not set (DefaultLocationManager.java [localhost-startStop-1])
  • INFO 2019-09-11 12:43:16,145 Environment variable DHIS2_HOME points to /home/dhis/config (DefaultLocationManager.java [localhost-startStop-1])
  • INFO 2019-09-11 12:43:16,576 Loaded dhis-google-auth.json authentication file (DefaultDhisConfigurationProvider.java [localhost-startStop-1])
  • WARN 2019-09-11 12:43:16,786 Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.hisp.dhis.dataadmin.action.minmaxvalidation.GenerateMinMaxValuesAction’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis.2_29/WEB-INF/lib/dhis-web-maintenance-dataadmin-2.29.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘org.hisp.dhis.dataset.DataSetService’ while setting bean property ‘dataSetService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.dataset.DataSetService’: Unsatisfied dependency expressed through field ‘currentUserService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserService’: Unsatisfied dependency expressed through field ‘currentUserStore’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserStore’: Unsatisfied dependency expressed through field ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis.2_29/WEB-INF/lib/dhis-support-hibernate-2.29.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘dataSource’ while setting bean property ‘dataSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis.2_29/WEB-INF/lib/dhis-support-hibernate-2.29.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘driverClass’ while setting bean property ‘driverClass’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘driverClass’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis.2_29/WEB-INF/lib/dhis-support-hibernate-2.29.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘hibernateConfigurationProvider’ while setting bean property ‘hibernateConfigurationProvider’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘hibernateConfigurationProvider’: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException (AbstractApplicationContext.java [localhost-startStop-1])
  • ERROR 2019-09-11 12:43:16,793 Context initialization failed (ContextLoader.java [localhost-startStop-1])
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.hisp.dhis.dataadmin.action.minmaxvalidation.GenerateMinMaxValuesAction’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis.2_29/WEB-INF/lib/dhis-web-maintenance-dataadmin-2.29.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘org.hisp.dhis.dataset.DataSetService’ while setting bean property ‘dataSetService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.dataset.DataSetService’: Unsatisfied dependency expressed through field ‘currentUserService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserService’: Unsatisfied dependency expressed through field ‘currentUserStore’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserStore’: Unsatisfied dependency expressed through field ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis.2_29/WEB-INF/lib/dhis-support-hibernate-2.29.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘dataSource’ while setting bean property ‘dataSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis.2_29/WEB-INF/lib/dhis-support-hibernate-2.29.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘driverClass’ while setting bean property ‘driverClass’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘driverClass’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis.2_29/WEB-INF/lib/dhis-support-hibernate-2.29.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘hibernateConfigurationProvider’ while setting bean property ‘hibernateConfigurationProvider’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘hibernateConfigurationProvider’: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4770)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5236)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:980)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1852)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
    Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.dataset.DataSetService’: Unsatisfied dependency expressed through field ‘currentUserService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserService’: Unsatisfied dependency expressed through field ‘currentUserStore’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org.hisp.dhis.user.CurrentUserStore’: Unsatisfied dependency expressed through field ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis.2_29/WEB-INF/lib/dhis-support-hibernate-2.29.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘dataSource’ while setting bean property ‘dataSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis.2_29/WEB-INF/lib/dhis-support-hibernate-2.29.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘driverClass’ while setting bean property ‘driverClass’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘driverClass’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis.2_29/WEB-INF/lib/dhis-support-hibernate-2.29.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean ‘hibernateConfigurationProvider’ while setting bean property ‘hibernateConfigurationProvider’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘hibernateConfigurationProvider’: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
    … 28 more
1 Like

Hi Sohel

Here’s the catalina.2019-09-12 file

12-Sep-2019 22:34:44.459 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/common/classes], exists: [false], isDirectory: [false], canRead: [false]
12-Sep-2019 22:34:44.465 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/common], exists: [false], isDirectory: [false], canRead: [false]
12-Sep-2019 22:34:44.465 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common/classes], exists: [false], isDirectory: [false], canRead: [false]
12-Sep-2019 22:34:44.465 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/common], exists: [false], isDirectory: [false], canRead: [false]
12-Sep-2019 22:34:44.468 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/server/classes], exists: [false], isDirectory: [false], canRead: [false]
12-Sep-2019 22:34:44.468 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/server], exists: [false], isDirectory: [false], canRead: [false]
12-Sep-2019 22:34:44.468 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server/classes], exists: [false], isDirectory: [false], canRead: [false]
12-Sep-2019 22:34:44.468 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/server], exists: [false], isDirectory: [false], canRead: [false]
12-Sep-2019 22:34:44.469 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
12-Sep-2019 22:34:44.469 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/home/dhis/tomcat-dhis/shared], exists: [false], isDirectory: [false], canRead: [false]
12-Sep-2019 22:34:44.469 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
12-Sep-2019 22:34:44.470 WARNING [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat8/shared], exists: [false], isDirectory: [false], canRead: [false]
12-Sep-2019 22:34:46.638 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.39 (Ubuntu)
12-Sep-2019 22:34:46.643 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 9 2019 19:47:51 UTC
12-Sep-2019 22:34:46.644 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.39.0
12-Sep-2019 22:34:46.644 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
12-Sep-2019 22:34:46.644 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.15.0-62-generic
12-Sep-2019 22:34:46.644 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
12-Sep-2019 22:34:46.644 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-11-openjdk-amd64
12-Sep-2019 22:34:46.644 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.4+11-post-Ubuntu-1ubuntu218.04.3
12-Sep-2019 22:34:46.644 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Ubuntu
12-Sep-2019 22:34:46.644 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/dhis/tomcat-dhis
12-Sep-2019 22:34:46.644 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/share/tomcat8
12-Sep-2019 22:34:46.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
12-Sep-2019 22:34:46.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
12-Sep-2019 22:34:46.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
12-Sep-2019 22:34:46.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/dhis/tomcat-dhis/conf/logging.properties
12-Sep-2019 22:34:46.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
12-Sep-2019 22:34:46.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx7500m
12-Sep-2019 22:34:46.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms4000m
12-Sep-2019 22:34:46.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
12-Sep-2019 22:34:46.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
12-Sep-2019 22:34:46.645 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
12-Sep-2019 22:34:46.646 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
12-Sep-2019 22:34:46.646 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/dhis/tomcat-dhis
12-Sep-2019 22:34:46.646 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomcat8
12-Sep-2019 22:34:46.646 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/home/dhis/tomcat-dhis/temp
12-Sep-2019 22:34:46.646 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib]
12-Sep-2019 22:34:46.779 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8080”]
12-Sep-2019 22:34:46.857 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
12-Sep-2019 22:34:46.889 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1912 ms
12-Sep-2019 22:34:47.028 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
12-Sep-2019 22:34:47.029 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.39 (Ubuntu)
12-Sep-2019 22:34:47.092 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/dhis/tomcat-dhis/webapps/sample.war]
12-Sep-2019 22:34:49.200 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
12-Sep-2019 22:40:13.210 WARNING [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [323,993] milliseconds.
12-Sep-2019 22:40:13.276 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/home/dhis/tomcat-dhis/webapps/sample.war] has finished in [326,183] ms
12-Sep-2019 22:40:13.376 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/dhis/tomcat-dhis/webapps/dhis.2_29.war]
12-Sep-2019 22:40:29.517 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
12-Sep-2019 22:40:36.497 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
12-Sep-2019 22:40:36.497 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/dhis.2_29] startup failed due to previous errors
12-Sep-2019 22:40:36.590 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/home/dhis/tomcat-dhis/webapps/dhis.2_29.war] has finished in [23,214] ms
12-Sep-2019 22:40:36.611 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/dhis/tomcat-dhis/webapps/SampleWebApp.war]
12-Sep-2019 22:40:37.035 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
12-Sep-2019 22:40:37.040 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/home/dhis/tomcat-dhis/webapps/SampleWebApp.war] has finished in [429] ms
12-Sep-2019 22:40:37.048 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“http-nio-8080”]
12-Sep-2019 22:40:37.076 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 350185 ms
12-Sep-2019 22:46:31.265 INFO [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance.
12-Sep-2019 22:46:31.266 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
12-Sep-2019 22:46:31.276 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
12-Sep-2019 22:46:31.313 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“http-nio-8080”]
12-Sep-2019 22:46:31.316 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler [“http-nio-8080”]

1 Like

Hi @danboy,

Thanks for sending details log. I understand your hard work :slight_smile:. Actually many things could be happened, when you downgrade the version I presume you deleted the earlier database created for unsuccessful installation. For version choice of different DHIS2 base software (OS, java, database ,tomcat ) , I would suggest you again be with regular/most popular community choices. Though theoretically it should work with all latest version in practice a lot of new kind of scenario would appear. If you are not expert of handling and dealing with these dynamic scenarios please clear and uninstall everything from your local environment and be with regular/most popular community choices.
Here I am giving you my choices for your help (you/other may totally different kind of preference )
OS:ubuntu 16.04, java:8, postgres:10, tomcat:8.59/9, dhis2:2.32/2.31

1 Like

Many thanks Sohel

2 Likes