Opa, não estou conseguindo conectar com o banco. Da primeira vez que subo a aplicação para adicionar os drivers tenho estes erros no console do eclipse:
ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "agendamento-email-0.0.1-SNAPSHOT.war")]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.AgendamentoEmailDS"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.persistenceunit.\"agendamento-email-0.0.1-SNAPSHOT.war#AgendamentoEmailDS\" is missing [jboss.naming.context.java.AgendamentoEmailDS]",
"jboss.persistenceunit.\"agendamento-email-0.0.1-SNAPSHOT.war#AgendamentoEmailDS\".__FIRST_PHASE__ is missing [jboss.naming.context.java.AgendamentoEmailDS]"
]
}
FLYCTL0184: New missing/unsatisfied dependencies:
service jboss.naming.context.java.AgendamentoEmailDS (missing) dependents: [service jboss.persistenceunit."agendamento-email-0.0.1-SNAPSHOT.war#AgendamentoEmailDS", service jboss.persistenceunit."agendamento-email-0.0.1-SNAPSHOT.war#AgendamentoEmailDS".__FIRST_PHASE__]
Adiciono o driver do mysql, prossigo ao acesso no console admin do wildfly e registro a nova conexão porém obtenho outro erro ao executar o teste de conexão.
"WFLYJCA0040: failed to invoke operation: WFLYJCA0047: Connection is not valid"
15:41:15,904 ERROR [org.jboss.as.controller.management-operation] (External Management Request Threads -- 2) WFLYCTL0013: Operation ("test-connection-in-pool") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "agendamentoemaildb")
]) - failure description: "WFLYJCA0040: failed to invoke operation: WFLYJCA0047: Connection is not valid"
15:41:15,905 INFO [org.jboss.as.controller] (External Management Request Threads -- 2) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.persistenceunit."agendamento-email-0.0.1-SNAPSHOT.war#agendamentoemaildb": org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]