OpenMRS openhie client module

Hello,

When i started openMRS after i added the openhie client module it gave me the following error :

The following error occurred at startup: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘serviceContext$child#3’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.springframework.transaction.interceptor.TransactionProxyFactoryBean#7be5f586’ of type [org.springframework.transaction.interceptor.TransactionProxyFactoryBean] while setting bean property ‘moduleService’ with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.transaction.interceptor.TransactionProxyFactoryBean#7be5f586’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl#59d9f7ce’ of type [org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl] while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl#59d9f7ce’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name “org/dcm4chee/xds2/infoset/ihe/ProvideAndRegisterDocumentSetRequestType”

org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘serviceContext$child#3’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.springframework.transaction.interceptor.TransactionProxyFactoryBean#7be5f586’ of type [org.springframework.transaction.interceptor.TransactionProxyFactoryBean] while setting bean property ‘moduleService’ with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.transaction.interceptor.TransactionProxyFactoryBean#7be5f586’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl#59d9f7ce’ of type [org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl] while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl#59d9f7ce’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name “org/dcm4chee/xds2/infoset/ihe/ProvideAndRegisterDocumentSetRequestType” at org.openmrs.web.WebDaemon.startOpenmrs(WebDaemon.java:65) at org.openmrs.web.Listener.contextInitialized(Listener.java:171) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: javax.servlet.ServletException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘serviceContext$child#3’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.springframework.transaction.interceptor.TransactionProxyFactoryBean#7be5f586’ of type [org.springframework.transaction.interceptor.TransactionProxyFactoryBean] while setting bean property ‘moduleService’ with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.transaction.interceptor.TransactionProxyFactoryBean#7be5f586’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl#59d9f7ce’ of type [org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl] while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl#59d9f7ce’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name “org/dcm4chee/xds2/infoset/ihe/ProvideAndRegisterDocumentSetRequestType” at org.openmrs.web.Listener.startOpenmrs(Listener.java:249) at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘serviceContext$child#3’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.springframework.transaction.interceptor.TransactionProxyFactoryBean#7be5f586’ of type [org.springframework.transaction.interceptor.TransactionProxyFactoryBean] while setting bean property ‘moduleService’ with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.transaction.interceptor.TransactionProxyFactoryBean#7be5f586’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl#59d9f7ce’ of type [org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl] while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl#59d9f7ce’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name “org/dcm4chee/xds2/infoset/ihe/ProvideAndRegisterDocumentSetRequestType” at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:382) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1469) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) at org.openmrs.module.ModuleUtil.refreshApplicationContext(ModuleUtil.java:836) at org.openmrs.module.web.WebModuleUtil.refreshWAC(WebModuleUtil.java:954) at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:624) at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:603) at org.openmrs.web.Listener.startOpenmrs(Listener.java:241) … 1 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.transaction.interceptor.TransactionProxyFactoryBean#7be5f586’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl#59d9f7ce’ of type [org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl] while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl#59d9f7ce’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name “org/dcm4chee/xds2/infoset/ihe/ProvideAndRegisterDocumentSetRequestType” at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1469) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299) … 20 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.openmrs.module.xdsbrepository.impl.XDSbServiceImpl#59d9f7ce’ defined in URL [jar:file:/usr/share/openshr/tomcat/temp/1503301409428.openmrs-lib-cache/xds-b-repository/xds-b-repository.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name “org/dcm4chee/xds2/infoset/ihe/ProvideAndRegisterDocumentSetRequestType” at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299) … 26 more Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name “org/dcm4chee/xds2/infoset/ihe/ProvideAndRegisterDocumentSetRequestType” at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.sun.proxy.$Proxy177.(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:739) at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:121) at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:109) at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.createProxy(AbstractAutoProxyCreator.java:447) at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:333) at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:293) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:422) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1571) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) … 28 more

and when i remove the module, the openMRS works just fine. Can anyone help me fix this error because i need the module for my application.

Thanks in advance.

Can you point us to the source of this module?

Hello,

i logged into openMRS in this demo : https://wiki.ohie.org/display/resources/OpenHIE+Demo

and then i exported the openhie client module from it.