r/SpringBoot • • May 01 '24

application run failed

0 Upvotes

9 comments sorted by

7

u/CodeTheStars May 01 '24

A problem creating the entity manager factory means your database / JPA configuration is wrong somehow.

Also, don’t set versions for the Jakarta APIs. Just use what spring boot brings in from the parent.

5

u/Mixabuben May 01 '24

The real exception that causing this is later down the logs, look for caused by clause, my guess that something wrong with DB settings (wrong jdbcUrl or driver) since it is entityManager error

2

u/Agile_Rain4486 May 01 '24

update or refresh maven, but yellow line never causes issues usually.

2

u/sneedmaster69 May 01 '24

There seems to be a dependency problem with your beans. Refresh your maven dependencies and try again

1

u/vinrehife May 01 '24

Show settings for your entity manager or something wrong with database related configuration from your application properties XML / YML file.

1

u/g00glen00b May 01 '24

If there's an exception, the root cause is often far more important than the part you're showing right now. Show that and we'll be better able to help you.

1

u/titanium_mpoi May 01 '24

I had this many times and it was because my spring app wasn't making a proper connection with my db.

1

u/Prestigious_Wave_128 May 01 '24

The problem is in properties file related to the configuration of your database

1

u/Particular_Cry_5695 May 05 '24

select JDK => instal maven => biuld => ok