Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The following error occurred at startup:
- Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in URL [jar:file:/C:/Users/hp/openmrs/openmrs_pih/.openmrs-lib-cache/providermanagement/providermanagement.jar!/webModuleApplicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.pihcore.config.Config org.openmrs.module.pihcore.web.ConfigController.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/openmrs_pih/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
- org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in URL [jar:file:/C:/Users/hp/openmrs/openmrs_pih/.openmrs-lib-cache/providermanagement/providermanagement.jar!/webModuleApplicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.pihcore.config.Config org.openmrs.module.pihcore.web.ConfigController.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/openmrs_pih/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
- at org.openmrs.web.WebDaemon.startOpenmrs(WebDaemon.java:65)
- at org.openmrs.web.Listener.contextInitialized(Listener.java:192)
- at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5077)
- at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5591)
- at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
- at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
- 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 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in URL [jar:file:/C:/Users/hp/openmrs/openmrs_pih/.openmrs-lib-cache/providermanagement/providermanagement.jar!/webModuleApplicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.pihcore.config.Config org.openmrs.module.pihcore.web.ConfigController.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/openmrs_pih/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
- at org.openmrs.web.Listener.startOpenmrs(Listener.java:259)
- at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42)
- Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in URL [jar:file:/C:/Users/hp/openmrs/openmrs_pih/.openmrs-lib-cache/providermanagement/providermanagement.jar!/webModuleApplicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.pihcore.config.Config org.openmrs.module.pihcore.web.ConfigController.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/openmrs_pih/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
- 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.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:888)
- at org.openmrs.module.web.WebModuleUtil.refreshWAC(WebModuleUtil.java:847)
- at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:632)
- at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:612)
- at org.openmrs.web.Listener.startOpenmrs(Listener.java:251)
- ... 1 more
- Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.pihcore.config.Config org.openmrs.module.pihcore.web.ConfigController.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/openmrs_pih/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202)
- 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.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:956)
- at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:286)
- at org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:265)
- at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.detectHandlers(AbstractDetectingUrlHandlerMapping.java:82)
- at org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.initApplicationContext(AbstractDetectingUrlHandlerMapping.java:58)
- at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:120)
- at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:76)
- at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:74)
- at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:119)
- at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:94)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1558)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
- ... 14 more
- Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.pihcore.config.Config org.openmrs.module.pihcore.web.ConfigController.config; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/openmrs_pih/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)
- at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
- ... 34 more
- Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'config' defined in URL [jar:file:/C:/Users/hp/openmrs/openmrs_pih/.openmrs-lib-cache/pihcore/pihcore.jar!/org/openmrs/module/pihcore/config/Config.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1093)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1038)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
- 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.findAutowireCandidates(DefaultListableBeanFactory.java:1127)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)
- ... 36 more
- Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.pihcore.config.Config]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error parsing json configuration
- at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
- at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1086)
- ... 47 more
- Caused by: java.lang.RuntimeException: Error parsing json configuration
- at org.openmrs.module.pihcore.config.ConfigLoader.load(ConfigLoader.java:118)
- at org.openmrs.module.pihcore.config.ConfigLoader.loadFromRuntimeProperties(ConfigLoader.java:45)
- at org.openmrs.module.pihcore.config.Config.(Config.java:22)
- 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 org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
- ... 49 more
- Caused by: java.lang.IllegalStateException: Unable to find config file for configuration mirebalais
- at org.openmrs.module.pihcore.config.ConfigLoader.load(ConfigLoader.java:94)
- ... 56 more
- See the server log for full output.
Add Comment
Please, Sign In to add comment