3
respostas

Não conecta no banco

Configurei conforme o vídeo porém sem sucesso não consigo conectar no banco dando o erro abaixo, alguem consegue me ajudar?

ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 36) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("jdbc-driver" => "mysql")
]) - failure description: "WFLYJCA0041: Failed to load module for driver [com.mysql]"

17:39:30,886 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "casadocodigo.war")]) - failure description: {"WFLYCTL0288: One or more services were unable to start due to one or more indirect dependencies not being available." => {
    "Services that were unable to start:" => [
        "jboss.deployment.unit.\"casadocodigo.war\".POST_MODULE",
        "jboss.persistenceunit.\"casadocodigo.war#casadocodigo-dev\".__FIRST_PHASE__"
    ],
    "Services that may be the cause:" => ["jboss.jdbc-driver.mysql"]
}}
17:39:30,888 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("data-source" => "casadocodigoDS")
]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => [
    "org.wildfly.data-source.casadocodigoDS is missing [jboss.jdbc-driver.mysql]",
    "jboss.driver-demander.java:jboss/datasources/casadocodigoDS is missing [jboss.jdbc-driver.mysql]"
]}
17:39:30,893 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("data-source" => "casadocodigoDS")
]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => [
    "org.wildfly.data-source.casadocodigoDS is missing [jboss.jdbc-driver.mysql]",
    "jboss.driver-demander.java:jboss/datasources/casadocodigoDS is missing [jboss.jdbc-driver.mysql]",
    "org.wildfly.data-source.casadocodigoDS is missing [jboss.jdbc-driver.mysql]"
]}
3 respostas

Alguém consegue me ajudar?

Chegou a colocar o mysql-connector-java-5.1.35.jar lá no diretório modules/com/mysql/main/ e a criar o module.xml?

Se sim, dê uma conferida nos diretórios e no conteúdo do module.xml pois parece que o erro é no módulo do driver do MySQL.

coloquei sim, como no vídeo, até tentei outras soluções na internet e nada