I tried in vain trying to get platform 2.0 to work with our modules over the last couple of days (Platform 2.0 doesn’t work with our modules). I figured it was a hibernate issue (we are still using version 3) but didn’t find time to get to the bottom of the issue.
However, I tried reverting back to my working version 1.11.x_dev and I just can’t get it to start. I have downgraded from Java 8 to 7. Cleaned up my db. Checked out openmrs-core branch 1.11.x_dev afresh but it won’t start.
I keep getting
Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘sessionFactory’: FactoryBean which is currently in creation returned null from getObject…
Related cause:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userService’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘userServiceTarget’ while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userServiceTarget’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘userDAO’ while setting bean property ‘userDAO’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userDAO’ 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
Just to add to this, I have experience the exact same issue on a Mac. Since building and running the omrs platform 2.0.x (via mvn jetty:run) I have not been able to run older versions of the platform. I have likewise double checked that I’m using java 1.7 and created a new database.
@insiderish does it still fail to start if you revert all modules (in the application data modules folder) to what they were before you attempted to upgrade them?