Unable to start openmrs on azure

Application Name: Platform, Reference Application Version Number: 2.3.0 (openmrs) and 2.10.0 (ref-app)

Question: Unable to start openmrs . Keep getting Injection of autowired dependencies failed.

The stack trace is here.

My JDK version is openjdk version "1.8.0_265" and Tomcat version is tomcat8

Please advice.

Are you sure that you are not using tomcat 9?

Yes, I have only Tomcat8 .

lib-cache/appframework/appframework.jar!/moduleApplicationContext. Hi @dkayiwa it seems this is something to do with spring upgrade I remember we changed this file in diffrent modules like webservices core apps and others I will share the Trunk epic PR where we did a followup some modules after upgrading spring

1 Like

Do you get the same error when you use tomcat7?

1 Like

I am on Ubuntu18.04 and Tomcat8 . There is no package for Tomcat7 on Ubuntu18.04

Can you confirm the version of Java that your tomcat is pointing to?

Like I mentioned in the first post, it is openjdk version "1.8.0_265"

How do you confirm that your tomcat is using that version of Java instead of another?

 java -cp /usr/share/tomcat8/lib/catalina.jar  org.apache.catalina.util.ServerInfo
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:     5.4.0-1023-azure
Architecture:   amd64
JVM Version:    1.8.0_265-8u265-b01-0ubuntu2~18.04-b01
JVM Vendor:     Private Build

This command tells me that Tomcat is using 1.8 JDK

Strange. For this usually happens when tomcat is using JDK versions above 8. Can you try the latest version of tomcat in the 8.5.x series?