Unable to start DHIS2 after installation

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.

https://docs.dhis2.org/2.30/en/implementer/html/install_google_service_account_configuration.html
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

Thanks Sohel @jomutsani ,

But, I am not sure who marked this as a “Solution” but the issue is far from resolved and the final post can’t possibly constitute a definative solution.

1 Like

Hi @danboy,

Hope you are well. Did you manage to find a workaround this ?

Hi @jomutsani, sadly no!

1 Like

Have you tried using @sohel’s recommendations?

Hi James

You might be aware that Sohel’s recommendations differ wildly to the “recommended” or prescribed method in “Official” Implementation Guide dated May 2019. It is akin to try this or that and suck it and see!

However, if I don’t find a better alternative I may have no choice.

Thanks

Russell

1 Like

I hear you @danboy. Let me try and link you up with @julhas whom I am quite sure can help sort you out.

I hear you @danboy. Let me try and link you up with @julhas whom I am quite sure can help sort you out.

I hear you @danboy. Let me try and link you up with @julhas whom I am quite sure can help sort you out.

@danboy

Which JDK are you using? I see from earlier in the thread that you were using JDK11 initially at least. DHIS2 will not work with JDK11 at this time; you need JDK8.

Kind regards,
Phil

1 Like