Application Name: Platform, SmartContainer module Version Number: platform 2.0, smartcontainer-1.0.0 Java Version - java version “1.8.0_141” Tomcat - 9.0.1 OS - Windows
Question: I am new to openmrs and trying to deploy smart container module to the platform 2.0 and running into issues. Any ideas on how to get past this error? Below is the error snippet. Also here is the link for the openmrs log file - opemrs.log
I appreciate your help. Thanks
WARN - Module.expandExtensionNames(546) |2017-10-26 22:46:00,449| smartcontainer: Unable to find class definition for extension: org.openmrs.patientDashboardTab
java.lang.NoClassDefFoundError: org/openmrs/module/web/extension/PatientDashboardTabExt
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at org.openmrs.module.ModuleClassLoader.loadClass(ModuleClassLoader.java:637)
at org.openmrs.module.ModuleClassLoader.loadClass(ModuleClassLoader.java:556)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.openmrs.module.Module.expandExtensionNames(Module.java:538)
at org.openmrs.module.Module.getExtensions(Module.java:490)
at org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:664)
at org.openmrs.api.context.Daemon$1.run(Daemon.java:74)
Caused by: java.lang.ClassNotFoundException: org.openmrs.module.web.extension.PatientDashboardTabExt
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1275)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1104)
at org.openmrs.module.ModuleClassLoader.loadClass(ModuleClassLoader.java:563)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 16 more
ARN - AbstractApplicationContext.refresh(487) |2017-10-26 22:47:46,278| Exception encountered during context initialization - cancelling refresh attempt org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘messageSourceServiceTarget’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘mutableResourceBundleMessageSource’ while setting bean property ‘activeMessageSource’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘mutableResourceBundleMessageSource’ defined in class path resource [applicationContext-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor#0’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘transactionInterceptor’ while setting bean property ‘transactionInterceptor’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘transactionInterceptor’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘transactionManager’ while setting bean property ‘transactionManager’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘transactionManager’ 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.BeanCreationException: Error creating bean with name ‘sessionFactory’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: public java.util.Map org.openmrs.api.db.hibernate.HibernateSessionFactoryBean.interceptors; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.smartcontainer.web.controller.SmartcontainerPortletController] for bean with name ‘smartAppPortletController’ defined in URL [jar:file:/C:/Users/I_ADMIN/Application%20Data/OpenMRS/.openmrs-lib-cache/smartcontainer/smartcontainer.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/web/controller/PortletController Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.openmrs.module.smartcontainer.web.controller.SmartcontainerPortletController] for bean with name ‘smartAppPortletController’ defined in URL [jar:file:/C:/Users/I_ADMIN/Application%20Data/OpenMRS/.openmrs-lib-cache/smartcontainer/smartcontainer.jar!/moduleApplicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/openmrs/web/controller/PortletController Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘chartSearchService’ defined in URL [jar:file:/C:/Users/I_ADMIN/Application%20Data/OpenMRS/.openmrs-lib-cache/chartsearch/lib/chartsearch-api-2.0.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.openmrs.module.chartsearch.api.impl.ChartSearchServiceImpl#76ab5de9’ of type [org.openmrs.module.chartsearch.api.impl.ChartSearchServiceImpl] while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.openmrs.module.chartsearch.api.impl.ChartSearchServiceImpl#76ab5de9’ defined in URL [jar:file:/C:/Users/I_ADMIN/Application%20Data/OpenMRS/.openmrs-lib-cache/chartsearch/lib/chartsearch-api-2.0.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.openmrs.module.chartsearch.api.db.hibernate.HibernateChartSearchDAO#ca5e76e’ of type [org.openmrs.module.chartsearch.api.db.hibernate.HibernateChartSearchDAO] while setting bean property ‘dao’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.openmrs.module.chartsearch.api.db.hibernate.HibernateChartSearchDAO#ca5e76e’ defined in URL [jar:file:/C:/Users/I_ADMIN/Application%20Data/OpenMRS/.openmrs-lib-cache/chartsearch/lib/chartsearch-api-2.0.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘dbSessionFactory’ while setting bean property ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dbSessionFactory’ defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean ‘sessionFactory’ while setting constructor argument; nested exception is org.springframe