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
using SpringBoot 1.3.0, cloudslang-all 9.2.0 and score-all 0.3.3
exception:
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116) ~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014) ~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545) ~[spring-beans-4.2.3.RELEASE.jar:4.2.3.RELEASE]
... 175 common frames omitted
Caused by: java.lang.IllegalArgumentException: Not an managed type: class io.cloudslang.score.facade.entities.RunningExecutionPlan
at org.hibernate.jpa.internal.metamodel.MetamodelImpl.managedType(MetamodelImpl.java:219) ~[hibernate-entitymanager-4.3.10.Final.jar:4.3.10.Final]
at org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformation.<init>(JpaMetamodelEntityInformation.java:68) ~[spring-data-jpa-1.9.0.RELEASE.jar:na]
at org.springframework.data.jpa.repository.support.JpaEntityInformationSupport.getEntityInformation(JpaEntityInformationSupport.java:67) ~[spring-data-jpa-1.9.0.RELEASE.jar:na]
at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getEntityInformation(JpaRepositoryFactory.java:142) ~[spring-data-jpa-1.9.0.RELEASE.jar:na]
The text was updated successfully, but these errors were encountered:
The problem was with the use of @EnableAutoConfiguration(). When you use this annotation, Spring registers its location and will later use it for the JPA package scanning. The packages supplied in @EntityScan will be ignored.
The @EnableAutoConfiguration() annotation should be in the package we want to use for scanning. An empty configuration class was added under the package “io.cloudslang” with this annotation. It registered this location as well and now the JPA entities are found.
example configuration class in SpringBoot application:
using SpringBoot 1.3.0, cloudslang-all 9.2.0 and score-all 0.3.3
exception:
The text was updated successfully, but these errors were encountered: