Openmrs loading issue


(shivakumar Akula) #1

Hello All,

I am facing an issue while loading openmrs it taking too much of time for loading

when i check the logs i found the below issue can any one please help me in solving it.

Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘emrEncounterService’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/emrapi/lib/emrapi-api-1.21.1-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘emrEncounterServiceTarget’ while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘emrEncounterServiceTarget’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/emrapi/lib/emrapi-api-1.21.1-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘adminService’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘adminService’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘adminServiceTarget’ while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘adminServiceTarget’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘adminDAO’ while setting bean property ‘administrationDAO’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘adminDAO’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘sessionFactory’ while setting bean property ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘sessionFactory’: FactoryBean which is currently in creation returned null from getObject WARN - AbstractBeanFactory.getTypeForFactoryBean(1427) |2017-09-25 05:15:08,064| Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘emrVisitService’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/emrapi/lib/emrapi-api-1.21.1-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘emrVisitServiceImpl’ while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘emrVisitServiceImpl’ defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/emrapi/lib/emrapi-api-1.21.1-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘visitService’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘visitService’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘visitServiceTarget’ while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘visitServiceTarget’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘visitDAO’ while setting bean property ‘visitDAO’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘visitDAO’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘sessionFactory’ while setting bean property ‘sessionFactory’;


(shivakumar Akula) #2

Issue resolved


(Siav R) #3

@shivakumar How did you resolve the issue? Did you delete .openmrs-lib-cache ?


(CLIFF GITA) #4

Hello Akula, kindly share how you resolved this issue such that when someone else lands on the same challenge they can easily refer to your solution.Thanks