Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Exception (The application must supply JDBC connections)

Não conecta com o banco. Segue oque o console mostra.

ago. 17, 2021 5:31:09 PM org.hibernate.jpa.internal.util.LogHelper logPersistenceUnitInformation
INFO: HHH000204: Processing PersistenceUnitInfo [name: loja]
ago. 17, 2021 5:31:10 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate ORM core version 5.4.27.Final
ago. 17, 2021 5:31:10 PM org.hibernate.annotations.common.reflection.java.JavaReflectionManager <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
ago. 17, 2021 5:31:10 PM org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator initiateService
WARN: HHH000181: No appropriate connection provider encountered, assuming application will be supplying connections
ago. 17, 2021 5:31:10 PM org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator initiateService
WARN: HHH000342: Could not obtain connection to query metadata
java.lang.UnsupportedOperationException: The application must supply JDBC connections
    at org.hibernate.engine.jdbc.connections.internal.UserSuppliedConnectionProviderImpl.getConnection(UserSuppliedConnectionProviderImpl.java:44)
1 resposta
solução!

Gente descobri o erro. Foi na linha de código do meu persistence.xml

Lá eu escrevi da seguinte forma

<property name="java.persistence.jdbc.driver" value="org.h2.Driver"/>
            <property name="java.persistence.jdbc.url" value="jdbc:h2:mem:loja"/>

Faltou o X na palavra java... sendo assim o correto:

<property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
            <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:loja"/>

Rodou bonitinho agora.