Languages

Spring Boot - Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured (mchange-commons-java-0.2.19.jar).

7 points
Asked by:
Wallace
636

I am working with my Spring Boot Application.

I have got some error:

1 answer
3 points
Answered by:
Root-ssh
178180

As I see the JAR file name was changed from mchange-commons-java-0.2.19.jar to c3p0-0.9.5.5.jar.

Expected file path:

Found file path:

Hints:

  • it looks like bug caused by changes against detected vulnerabilities in Mchange Commons Java » 0.2.19 (check this link)
  • if you use hibernate-c3p0, check latest versions and site notification:
    Note: This artifact was moved to: org.hibernate.orm » hibernate-c3p0 » 6.0.0.CR2

Screenshot with changed name:

Solution

You can try to:

  1. Upgrade hibernate-c3p0
    https://mvnrepository.com/artifact/org.hibernate/hibernate-c3p0
  2. or: do not use:
0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join