aileftech / snap-admin

A plug-and-play, auto-generated CRUD database admin panel for Spring Boot apps
MIT License
251 stars 18 forks source link

Entity manager not found #2

Closed DanilTk closed 10 months ago

DanilTk commented 11 months ago

o.s.b.SpringApplication - org.springframework.boot.SpringApplication.reportFailure : Application run failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbAdmin': Resolution of declared constructors on bean Class [tech.ailef.dbadmin.external.DbAdmin] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@251a69d7] failed; nested exception is java.lang.NoClassDefFoundError: jakarta/persistence/EntityManager at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors

aileftech commented 11 months ago

I've never encountered this error before, and I'm unable to reproduce. Could you provide some more information? Also, try the latest 0.1.3 version to see maybe if it's fixed?

aileftech commented 11 months ago

@DanilTk Hi, this could be related to #8 and already fixed #1, since it mentions the ClassLoader although the error message is different. Could you try with version 0.1.4?

aileftech commented 10 months ago

Since this now refers to relatively very old version, this issue has probably been fixed. I'm closing this for now, but I will examine again in case of new feedbacks.