Problem in running the application

Hi @mksd,

Checked out the 1.11.x version from Git and build and deployed on Tomcat. OpenMrs deployed all fine with running status as true. However on navigatin to http://localhost:8080/openmrs/initialsetup it appears as below.

Here is the log generated <logtext localhost.2016-07-20.log Jul 20, 2016 3:33:14 PM org.apache.catalina.core.ApplicationContext log INFO: Shutting down log4j Jul 20, 2016 3:33:14 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Jul 20, 2016 3:33:14 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Jul 20, 2016 5:07:35 PM org.apache.catalina.core.ApplicationContext log INFO: No Spring WebApplicationInitializer types detected on classpath Jul 20, 2016 5:07:36 PM org.apache.catalina.core.ApplicationContext log INFO: Set web app root system property: ‘webapp.root’ = [D:\Softwares\apache-tomcat-7.0.70\webapps\openmrs] Jul 20, 2016 5:07:36 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing log4j from [classpath:log4j.xml] Jul 20, 2016 5:07:45 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Jul 20, 2016 5:07:45 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Jul 20, 2016 5:07:45 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeAdded(‘org.apache.jasper.compiler.TldLocationsCache’, ‘org.apache.jasper.compiler.TldLocationsCache@73afc4b8’) Jul 20, 2016 5:46:29 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextDestroyed() Jul 20, 2016 5:46:29 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextDestroyed() Jul 20, 2016 5:46:29 PM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class org.openmrs.web.Listener org.openmrs.api.APIException: contextDAO is null at org.openmrs.api.context.Context.getContextDAO(Context.java:169) at org.openmrs.api.context.Context.closeSession(Context.java:776) at org.openmrs.web.Listener.contextDestroyed(Listener.java:550) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5146) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5810) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1587) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1576) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

Jul 20, 2016 5:46:29 PM org.apache.catalina.core.ApplicationContext log INFO: Shutting down log4j Jul 20, 2016 5:47:30 PM org.apache.catalina.core.ApplicationContext log INFO: No Spring WebApplicationInitializer types detected on classpath Jul 20, 2016 5:47:30 PM org.apache.catalina.core.ApplicationContext log INFO: Set web app root system property: ‘webapp.root’ = [D:\Softwares\apache-tomcat-7.0.70\webapps\openmrs] Jul 20, 2016 5:47:30 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing log4j from [classpath:log4j.xml] Jul 20, 2016 5:47:35 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Jul 20, 2016 5:47:35 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Jul 20, 2016 5:47:35 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeAdded(‘org.apache.jasper.compiler.TldLocationsCache’, ‘org.apache.jasper.compiler.TldLocationsCache@4c946252’) logtext/>

I found ContextDAO.class in {Openmrs_home}\api\target\classes\org\openmrs\api\db and is of size 2kb.

Restarted the tomcat Removed work and temp directory from tomcat Restarted Tomcat Get same error [TRUNK-4234] and [TRUNK-734] did not helped much either.

Any clue or guidance will be help!

P.S: I was wondering that the satandalone version has one openmrs-standalone-runtime.properties file which had the connection.username ,connection.url, connection.password mentioned which I could not find anywhere in the tree below {Openmrs_home}\ . Not sure if this is of any problem thought worth mentioning.