Dear all,
I tried to back up and restore my instance which is running on the 2.31.9 war file. The following is the information about the installation:
Server version: Apache Tomcat/8.5.39 (Ubuntu)
Server built: Sep 9 2019 19:47:51 UTC
Server number: 8.5.39.0
OS Name: Linux
OS Version: 4.15.0-145-generic
Architecture: amd64
Java Home: /usr/lib/jvm/java-11-openjdk-amd64
JVM Version: 11.0.11+9-Ubuntu-0ubuntu2.18.04
JVM Vendor: Ubuntu
CATALINA_BASE: /home/hmis/tomcat-hmis
CATALINA_HOME: /usr/share/tomcat8
The error in the log file is:
ERROR 2021-09-02 15:56:04,385 Context initialization failed (ContextLoader.java [localhost-startStop-1])
org.springframework.beans.factory.BeanCreationException: Error creating bean with name âtransactionManagerâ defined in URL [jar:file:/home/hmis/tomcat-hmis/webapps/ROOT/WEB-INF/lib/dhis-support-hibernate-2.31.9.jar!/META-INF/dhis/beans.xml]: Cannot resolve reference to bean âsessionFactoryâ while setting bean property âsessionFactoryâ; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name âflywayâ defined in URL [jar:file:/home/hmis/tomcat-hmis/webapps/ROOT/WEB-INF/lib/dhis-support-db-migration-2.31.9.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/hmis/tomcat-hmis/webapps/ROOT/WEB-INF/lib/dhis-support-hibernate-2.31.9.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/hmis/tomcat-hmis/webapps/ROOT/WEB-INF/lib/dhis-support-hibernate-2.31.9.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/hmis/tomcat-hmis/webapps/ROOT/WEB-INF/lib/dhis-support-hibernate-2.31.9.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