3
respostas

Servidor não sobe após conexão com o banco

#ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 82) MSC000001: Failed to start service jboss.persistenceunit."agendamentoemail-0.0.1-SNAPSHOT.war#agendamentobd": org.jboss.msc.service.StartException in service jboss.persistenceunit."agendamentoemail-0.0.1-SNAPSHOT.war#agendamentobd": org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
#Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
    at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:275)
#Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set.
#Caused by: java.sql.SQLException: The server time zone value 'unknown' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
3 respostas

Fala Miguel, tudo bem?

Aparentemente faltou configurar o módulo do driver:

module add --name=com.mysql --resources=/path/to/mysql-connector-java-8.0.15.jar --dependencies=javax.api,javax.transaction.api

/subsystem=datasources/jdbc-driver=mysql:add(driver-name=mysql,driver-module-name=com.mysql,driver-xa-datasource-class-name=com.mysql.cj.jdbc.MysqlXADataSource)

Aula em questão: https://cursos.alura.com.br/course/java-ee-8-e-ejb-3/task/60691

Configurei tudo certinho.

Terceira vez refazendo esse projeto e ainda com problemas. Nunca tive tantos problemas em um único curso.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software