Erro ao iniciar um serviço

1 resposta
java
JamesplayHard

Olá a todos,já faz um bom tempo que eu fico sem programar um projeto que eu estava fazendo.E ao importar ele para o eclipse esta dando alguns problemas ao tentar inicia-lo.

Segue abaixo os problemas apresentados:

ev 19, 2020 11:25:52 PM org.hibernate.annotations.common.reflection.java.JavaReflectionManager
INFO: HCANN000001: Hibernate Commons Annotations {4.0.5.Final}
fev 19, 2020 11:25:52 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.3.11.Final}
fev 19, 2020 11:25:52 PM org.hibernate.cfg.Environment
INFO: HHH000206: hibernate.properties not found
fev 19, 2020 11:25:52 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
fev 19, 2020 11:25:52 PM org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
fev 19, 2020 11:25:52 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.dom4j.io.SAXContentHandler (file:/C:/Users/james/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar) to method com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$LocatorProxy.getEncoding()
WARNING: Please consider reporting this to the maintainers of org.dom4j.io.SAXContentHandler
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
fev 19, 2020 11:25:53 PM org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
fev 19, 2020 11:25:53 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
WARN: HHH000402: Using Hibernate built-in connection pool (not for production use!)
Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
fev 19, 2020 11:25:53 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://127.0.0.1:3306/drogaria]
fev 19, 2020 11:25:53 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000046: Connection properties: {password=****, user=root}
fev 19, 2020 11:25:53 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000006: Autocommit mode: false
fev 19, 2020 11:25:53 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000115: Hibernate connection pool size: 1 (min=1)
A fábrica de sessões não pode ser criadaorg.hibernate.exception.JDBCConnectionException: Error calling Driver#connect

1 Resposta

JamesplayHard

Para uma melhor compreenção

<?xml version="1.0" encoding="UTF-8"?>
<session-factory>

    <!-- Configurações de Conexão com o Banco de Dados -->
    <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
    <property name="connection.url">jdbc:mysql://127.0.0.1:3306/drogaria</property>
    <property name="connection.username">root</property>
    <property name="connection.password">q1w2e3r4</property>

    <!-- Pool de Conexões-->
    <property name="connection.pool_size">1</property>

    <!-- SQL dialect -->
    <property name="dialect">org.hibernate.dialect.MySQLDialect</property>

    <!-- EGerenciamento do Contexto das Sessões-->
    <property name="current_session_context_class">thread</property>

    <!-- Cache de segundo nivel -->
    <property name="cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</property>

    <!-- Mostra as SQLs Geradas -->
    <property name="show_sql">true</property>

    <!-- Cria as tabelas do banco -->
      <property name="hbm2ddl.auto">validate</property>


  <!--  Mapeamanto das entidades  -->
</session-factory>
Criado 20 de fevereiro de 2020
Ultima resposta 20 de fev. de 2020
Respostas 1
Participantes 1