You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the hapi-fhir-jpaserver-starter project with v6.9.9-SNAPSHOT of hapi-fhir. When building, I am seeing the following exception:
Caused by: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'helperSvc' defined in class path resource [ca/uhn/fhir/jpa/config/JpaConfig.class]: Cannot register bean definition [Root bean: class [null]; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=ca.uhn.fhir.jpa.config.JpaConfig; factoryMethodName=helperSvc; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [ca/uhn/fhir/jpa/config/JpaConfig.class]] for bean 'helperSvc': There is already [Root bean: class [null]; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=ca.uhn.fhir.jpa.config.MdmJpaConfig; factoryMethodName=helperSvc; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [ca/uhn/fhir/jpa/config/MdmJpaConfig.class]] bound.
Describe the bug
I am trying to use the hapi-fhir-jpaserver-starter project with v6.9.9-SNAPSHOT of hapi-fhir. When building, I am seeing the following exception:
This is due to the "helperSvc" bean being defined twice.
In the JpaConfig here: https://github.com/hapifhir/hapi-fhir/blob/master/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/JpaConfig.java#L875-L878
And in the imported config from MdmJpaConfig here: https://github.com/hapifhir/hapi-fhir/blob/master/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/MdmJpaConfig.java#L53-L56
To Reproduce
Steps to reproduce the behavior:
mvn package
Expected behavior
No build errors.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: