onc-healthit / reference-ccda-validator

Deployable C-CDA Validator war source code. Use this repository to build and deploy a validator on your local environment.
BSD 2-Clause "Simplified" License
35 stars 37 forks source link

Error creating bean with name 'vocabularyCCDAValidator' #22

Closed stkleinbaum closed 5 years ago

stkleinbaum commented 6 years ago

Hi,

I followed the readme to run referenceccdaservice.war locally on tomcat 8 but it fails with an exception

12:51:23,762 INFO  [ContextLoader:307] Root WebApplicationContext: initialization started
12:51:23,883 INFO  [AnnotationConfigWebApplicationContext:578] Refreshing Root WebApplicationContext: startup date [Sun Jan 07 12:51:23 CET 2018]; root of context hierarchy
12:51:23,950 INFO  [AnnotationConfigWebApplicationContext:207] Registering annotated classes: [class org.sitenv.referenceccda.configuration.MvcConfiguration,class org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration,class org.sitenv.contentvalidator.configuration.ContentValidatorApiConfiguration,class org.sitenv.referenceccda.configuration.SwaggerConfig]
12:51:25,058 INFO  [DefaultListableBeanFactory:839] Overriding bean definition for bean 'propertyPlaceholderConfigurer' with a different definition: replacing [Root bean: class [org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=propertyPlaceholderConfigurer; initMethodName=null; destroyMethodName=(inferred); defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration] with [Root bean: class [org.sitenv.contentvalidator.configuration.ContentValidatorApiConfiguration]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=propertyPlaceholderConfigurer; initMethodName=null; destroyMethodName=(inferred); defined in org.sitenv.contentvalidator.configuration.ContentValidatorApiConfiguration]
12:51:25,649 INFO  [PostProcessorRegistrationDelegate$BeanPostProcessorChecker:328] Bean 'org.springframework.cache.annotation.ProxyCachingConfiguration' of type [class org.springframework.cache.annotation.ProxyCachingConfiguration$$EnhancerBySpringCGLIB$$1c54fdcb] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
12:51:26,076 INFO  [EmbeddedDatabaseFactory:185] Starting embedded database: url='jdbc:hsqldb:mem:testdb', username='sa'
12:51:26,422 INFO  [ScriptUtils:443] Executing SQL script from class path resource [schema.sql]
12:51:26,432 INFO  [ScriptUtils:502] Executed SQL script from class path resource [schema.sql] in 10 ms.
12:51:26,453 INFO  [LocalContainerEntityManagerFactoryBean:339] Building JPA container EntityManagerFactory for persistence unit 'default'
12:51:26,488 INFO  [LogHelper:31] HHH000204: Processing PersistenceUnitInfo [
    name: default
    ...]
12:51:26,711 INFO  [Version:37] HHH000412: Hibernate Core {5.0.7.Final}
12:51:26,714 INFO  [Environment:213] HHH000206: hibernate.properties not found
12:51:26,717 INFO  [Environment:317] HHH000021: Bytecode provider name : javassist
12:51:26,816 INFO  [Version:66] HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
12:51:27,117 INFO  [Dialect:156] HHH000400: Using dialect: org.hibernate.dialect.HSQLDialect
12:51:27,425 WARN  [SessionFactoryBuilderImpl:648] Unrecognized hbm2ddl_auto value : none.  Supported values include create, create-drop, update, and validate.  Ignoring
12:51:28,099 INFO  [QueryTranslatorFactoryInitiator:47] HHH000397: Using ASTQueryTranslatorFactory
12:51:28,675 INFO  [Jaxb2Marshaller:531] Creating JAXBContext by scanning packages [org.sitenv.vocabularies.configuration]
12:51:28,781 WARN  [AnnotationConfigWebApplicationContext:546] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'referenceCCDAValidationService' defined in file [/development/apache-tomcat-8.0.36/webapps/referenceccdaservice/WEB-INF/classes/org/sitenv/referenceccda/services/ReferenceCCDAValidationService.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [org.sitenv.referenceccda.validators.vocabulary.VocabularyCCDAValidator]: : Error creating bean with name 'vocabularyCCDAValidator' defined in file [/development/apache-tomcat-8.0.36/webapps/referenceccdaservice/WEB-INF/classes/org/sitenv/referenceccda/validators/vocabulary/VocabularyCCDAValidator.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.validation.services.VocabularyValidationService]: : Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyCCDAValidator' defined in file [/development/apache-tomcat-8.0.36/webapps/referenceccdaservice/WEB-INF/classes/org/sitenv/referenceccda/validators/vocabulary/VocabularyCCDAValidator.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.validation.services.VocabularyValidationService]: : Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations
12:51:28,784 INFO  [EmbeddedDatabaseFactory:217] Shutting down embedded database: url='jdbc:hsqldb:mem:testdb'
12:51:28,792 ERROR [ContextLoader:353] Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'referenceCCDAValidationService' defined in file [/development/apache-tomcat-8.0.36/webapps/referenceccdaservice/WEB-INF/classes/org/sitenv/referenceccda/services/ReferenceCCDAValidationService.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [org.sitenv.referenceccda.validators.vocabulary.VocabularyCCDAValidator]: : Error creating bean with name 'vocabularyCCDAValidator' defined in file [/development/apache-tomcat-8.0.36/webapps/referenceccdaservice/WEB-INF/classes/org/sitenv/referenceccda/validators/vocabulary/VocabularyCCDAValidator.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.validation.services.VocabularyValidationService]: : Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyCCDAValidator' defined in file [/development/apache-tomcat-8.0.36/webapps/referenceccdaservice/WEB-INF/classes/org/sitenv/referenceccda/validators/vocabulary/VocabularyCCDAValidator.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.validation.services.VocabularyValidationService]: : Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4840)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:587)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1798)
    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:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyCCDAValidator' defined in file [/development/apache-tomcat-8.0.36/webapps/referenceccdaservice/WEB-INF/classes/org/sitenv/referenceccda/validators/vocabulary/VocabularyCCDAValidator.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.validation.services.VocabularyValidationService]: : Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
    ... 28 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:311)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
    ... 42 more
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:464)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:512)
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:486)
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:615)
    at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308)
    ... 54 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
    ... 69 more
Caused by: java.lang.ClassCastException: org.sitenv.vocabularies.configuration.ConfiguredExpression cannot be cast to org.sitenv.vocabularies.configuration.Configurations
    at org.sitenv.vocabularies.configuration.ValidationConfigurationLoader.xmlToObject(ValidationConfigurationLoader.java:35)
    at org.sitenv.vocabularies.configuration.ValidationConfigurationLoader.afterPropertiesSet(ValidationConfigurationLoader.java:43)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
    ... 80 more

How can I fix this?

Best

drbgfc commented 6 years ago

Are you still having this issue? We have not been able to reproduce it. Will need all of your configuration data to assess.

jxfish2 commented 6 years ago

I am getting a similar error, but since nobody added to this thread, I do not know how to proceed:

 Error creating bean with name 'referenceCCDAValidationController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.sitenv.referenceccda.services.ReferenceCCDAValidationService org.sitenv.referenceccda.controllers.ReferenceCCDAValidationController.referenceCcdaValidationService; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: 

 Error creating bean with name 'referenceCCDAValidationService' defined in file [/opt/tomcat/webapps/referenceccdaservice/WEB-INF/classes/org/sitenv/referenceccda/services/ReferenceCCDAValidationService.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [org.sitenv.referenceccda.validators.vocabulary.VocabularyCCDAValidator]: : 

 Error creating bean with name 'vocabularyCCDAValidator' defined in file [/opt/tomcat/webapps/referenceccdaservice/WEB-INF/classes/org/sitenv/referenceccda/validators/vocabulary/VocabularyCCDAValidator.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.validation.services.VocabularyValidationService]: : 

 Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: 

 Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : 

 Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: Factory method 'validationConfigurationLoader' threw exception; nested exception is java.lang.NoClassDefFound

 Error: javax/xml/bind/JAXBException; nested exception is org.springframework.beans.factory.BeanCreationException: 

 Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: Factory method 'validationConfigurationLoader' threw exception; nested exception is java.lang.NoClassDefFound

 Error: javax/xml/bind/JAXBException; nested exception is org.springframework.beans.factory.BeanCreationException: 

 Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: 

 Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: : 

Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: Factory method 'validationConfigurationLoader' threw exception; nested exception is java.lang.NoClassDefFound

 Error: javax/xml/bind/JAXBException; nested exception is org.springframework.beans.factory.BeanCreationException: 

 Error creating bean with name 'validationConfigurationLoader' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sitenv.vocabularies.configuration.ValidationConfigurationLoader]: Factory method 'validationConfigurationLoader' threw exception; nested exception is java.lang.NoClassDefFound

 Error: javax/xml/bind/JAXBException; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: 

 Error creating bean with name 'vocabularyCCDAValidator' defined in file [/opt/tomcat/webapps/referenceccdaservice/WEB-INF/classes/org/sitenv/referenceccda/validators/vocabulary/VocabularyCCDAValidator.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.validation.services.VocabularyValidationService]: : 

 Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: 

PLEASE NOTE:

Everything is installed per the instructions supplied via this GitHub project, but:

 1)  I am a systems engineer.  I am not a Java developer.  So, these Java related errors are completely foreign to me.  

 2)  As it relates to this project, I have NO idea which value sets to download, as the value set names mean nothing to me.  Any assistance in identifying value sets to be downloaded, would also be greatly appreciated.
drbgfc commented 6 years ago

Do you have the code-validator dependency/did you also follow the instructions here https://github.com/siteadmin/code-validator-api and here https://github.com/siteadmin/code-validator-api/tree/master/codevalidator-api/docs ?

forgotpw1 commented 6 years ago

@drbgfc I just encountered something similar.

Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyCCDAValidator' defined in file [/opt/glassfish4/glassfish/domains/domain1/applications/referenceccdaservice/WEB-INF/classes/org/sitenv/referenceccda/validators/vocabulary/VocabularyCCDAValidator.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.sitenv.vocabularies.validation.services.VocabularyValidationService]: : Error creating bean with name 'vocabularyValidationService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'vocabularyValidationConfigurations' defined in org.sitenv.vocabularies.configuration.CodeValidatorApiConfiguration: Unsatisfied dependenc .... msg.seeServerLog

java version "1.8.0_181" Java(TM) SE Runtime Environment (build 1.8.0_181-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

Deploying on Glassfish 4.12

Ubuntu 18

drbgfc commented 6 years ago

@forgotpw1 what version are you using of the ref val? Did you update recently? Was it successful ever before for you with the exact same setup (machine/server/etc.)? If so, what version? Thanks.

forgotpw1 commented 6 years ago

@drbgfc Thank you for your quick reply. This is the first crack on running it.

I am using the most recent release

It might be missing the configuration with https://github.com/siteadmin/code-validator-api

Looking into how to include these extra params and code sets with glassfish.

drbgfc commented 6 years ago

@forgotpw1 No Problem. Unfortunately we've never run it on anything other than Tomcat so I can't really help in that regard. Maybe you can get it running on Tomcat first and then you can try configuring on glassfish knowing there are no issues unrelated to glassfish itself.

forgotpw1 commented 6 years ago

@drbgfc Thank you for bringing that up. Yes. I am going to try on tomcat8

forgotpw1 commented 6 years ago

@drbgfc I gave this a try on tomcat 8 and after some tinkering get the following output... referenceccdaservice.2018-08-03.log

drbgfc commented 6 years ago

Thanks for posting the log. I will try to reproduce locally so that I can address the issue.

drbgfc commented 6 years ago

I have been trying to repro this for the last couple of hours with no luck. The latest version of the war works for me both locally and works in the SITE test server as well as the SITE prod server. I tried different value sets as well locally. I will keep looking into it but maybe one of you can try the prior WAR to see if it has anything to do with the version? Thanks.

*Did either of you try tomcat 7?

forgotpw1 commented 6 years ago

@drbgfc Thank you for looking into the war. It could be the contents of the code_repository and valueset_repository folders we have to set up differently. The directions aren't exactly clear what go in there. After digging around it seems like the valueset_repository should be XLS files (?), and the codeset_repository? no idea. this file? https://raw.githubusercontent.com/siteadmin/reference-ccda-validator/develop/configuration/codesystems.txt

Is there a minimum set of code_repository data and valueset data we can use so the app loads that could be included in the repository in the correct location

I will try a earlier version of the war and reading the source more to see why this fails

I have seen your responses in google groups. I seems like the explanation of the dependency of the code-validator-api (https://github.com/siteadmin/code-validator-api) on might need a better example.

Should we be moving the source of https://github.com/siteadmin/code-validator-api someplace?

drbgfc commented 6 years ago

No problem.

The valueset_repository should be '.xlsx' files. They used to be .xls files but we have since updated to support the '.xlsx' and the newer format must be used. Sorry for any confusion. These formats are standardized to the VSAC formatting. Any value sets which are not in VSAC we hand-created and provided in the same format. A user can do the same with any set they want to support.

The code_repository should contain folders such as CDT, CPT, LOINC, SNOMED-CT, etc. Within each folder the file types can vary from .xlsx, to .csv, to .txt. The formats can vary as well. The reason for this is that there is no standard for these. Each licensee has their own format and there is little to no coordination between code systems. In addition, there is no standard for even the same code system as when they are updated they often change the formatting, if only slightly. But it can be a breaking change. We can't control how they provide the data, and we can't supply the data in a controlled manner since it is licensed. This makes it it unfortuante and hard to manage. I don't think there is a minimum set of code systems that must be supplied in order for the application to load. For testing purposes, I would start with 1, such as SNOMED-CT.

To solve the issues I would need to take a close look at your file structure and at a minimum your referenceccdaservice.xml file and its location.

The code-validator dependency is injected in the WAR so one should not need to handle that on their own. I'm sure we could improve the documentation. We are currently working on updating all of the value sets and thus related documentation. If you look in https://github.com/siteadmin/code-validator-api/tree/master/codevalidator-api/docs in the develop branch, some of that work has already been done, and will be merged to master end of month.

drbgfc commented 6 years ago

Also - This information will help resolve if you are still having issues: --Log files: ---What you see on startup and the log for that date in tomcat/logs/ e.g. referenceccdaservice.2018-08-XX.log --File structure and configuration: ---file structure of value set repo and code repo ---referenceccdaservice.xml (located tomcat/conf/Catalina/localhost) ---Is ccdaReferenceValidatorConfig.xml located in the path configured in referenceccdaservice.xml?

rabindra0388 commented 6 years ago

localhost.2018-08-10.log catalina.2018-08-10.log referenceccdaservice.2018-08-10.log I have configured but getting error attached is log file.

Below is directory configuration:

image

image

image

image

image

rabindra0388 commented 6 years ago

image

rabindra0388 commented 6 years ago

image

drbgfc commented 5 years ago

There are many, many, many reasons the error "Error creating bean with name 'vocabularyCCDAValidator'" can be triggered. As such, @rabindra0388 can you create a new issue if you are still having the issue? Closing this for now to keep th issues separated. Sorry for the inconvenience.