Cannot resolve reference to bean 'jpaSharedEM_entityManagerFactory' while setting bean property 'entityManager' #4173

when spring boot 4.0.2 and hibernate 7.2.1 and spring-data-jpa 4.0.2。

compile project with graalvm native 25

when run the build app. the fllow error .

java.lang.IllegalArgumentException: Invalid logger interface org.hibernate.jpa.internal.JpaLogger (implementation not found)
gtm-1  |        at org.jboss.logging.Logger.doGetMessageLogger(Logger.java:2630)
gtm-1  |        at org.jboss.logging.Logger.getMessageLogger(Logger.java:2536)
gtm-1  |        at org.jboss.logging.Logger.getMessageLogger(Logger.java:2521)
gtm-1  |        at org.hibernate.jpa.internal.JpaLogger.<clinit>(JpaLogger.java:39)

when the spring boot 4.0.1 and hibernate 7.2.0 and spring-data-jpa 4.0.1
all are ok

This is the Hibernate ORM forum, not a Spring forum, so you better ask these GraalVM native related questions in the Spring forum. I can tell you that Hibernate ORM works great in native mode in Quarkus, but it’s the framework that needs to take care of such details.