Ainda não tem acesso? Estude com a gente! Matricule-se
Ainda não tem acesso? Estude com a gente! Matricule-se

Solucionado (ver solução)

Aplicação com Spring MVC, AngularJS, JPA e Wildfly , Erro em JPA , o que pode ser?

Boa Noite, Error não entendido na Stack, se alguém entender , por favor faça uma observação:

18:31:48,417 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("data-source" => "base_usuario")
]) - failure description: {
    "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.mysql"],
    "WFLYCTL0180: Services with missing/unavailable dependencies" => [
        "org.wildfly.data-source.base_usuario is missing [jboss.jdbc-driver.mysql]",
        "jboss.driver-demander.java:jboss/datasources/base_usuraioDS is missing [jboss.jdbc-driver.mysql]"
    ]
}
18:31:49,058 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "Sistema.war")]) - failure description: {
    "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"Sistema.war\".POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"Sistema.war\"
    Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.naming.context.java.module.Sistema.Sistema is already registered"},
    "WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.jboss.datasources.base_usuarioDS"],
    "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"Sistema.war#PERSISTENCE_UNIT\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jboss.datasources.base_usuarioDS]"]
}
18:31:49,067 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("data-source" => "base_usuario")
]) - failure description: {
    "WFLYCTL0412: Required services that are not installed:" => [
        "jboss.jdbc-driver.mysql",
        "jboss.jdbc-driver.mysql"
    ],
    "WFLYCTL0180: Services with missing/unavailable dependencies" => [
        "org.wildfly.data-source.base_usuario is missing [jboss.jdbc-driver.mysql]",
        "jboss.driver-demander.java:jboss/datasources/base_usuraioDS is missing [jboss.jdbc-driver.mysql]",
        "org.wildfly.data-source.base_usuario is missing [jboss.jdbc-driver.mysql]"
    ]
}
18:31:49,345 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 44) WFLYSRV0010: Deployed "Sistema.war" (runtime-name : "Sistema.war")
18:31:49,348 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 44) WFLYSRV0010: Deployed "Sistema" (runtime-name : "Sistema")
18:31:49,358 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 44) WFLYSRV0010: Deployed "pom.xml" (runtime-name : "pom.xml")
18:31:49,369 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0184:    New missing/unsatisfied dependencies:
      service jboss.jdbc-driver.mysql (missing) dependents: [service org.wildfly.data-source.base_usuario, service jboss.driver-demander.java:jboss/datasources/base_usuraioDS] 
      service jboss.naming.context.java.jboss.datasources.base_usuarioDS (missing) dependents: [service jboss.persistenceunit."Sistema.war#PERSISTENCE_UNIT".__FIRST_PHASE__] 
WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."Sistema.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "Sistema.war"
WFLYCTL0448: 2 additional services are down due to their dependencies being missing or failed
18:31:49,855 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
18:31:49,862 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
18:31:49,863 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
18:31:49,863 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 18.0.1.Final (WildFly Core 10.0.3.Final) started (with errors) in 43973ms - Started 472 of 695 services (6 services failed or missing dependencies, 378 services are lazy, passive or on-demand)
5 respostas

Fala Marcio, tudo bem?

WFLYCTL0184:    New missing/unsatisfied dependencies:
      service jboss.jdbc-driver.mysql (missing) dependents

Você chegou a configurar o module com o driver MySQL?

Download do driver:

sudo wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.17.tar.gz

module.xml:

<module xmlns="urn:jboss:module:1.5" name="com.mysql">
    <resources>
        <resource-root path="mysql-connector-java-8.0.17.jar" />
    </resources>
    <dependencies>
        <module name="javax.api"/>
        <module name="javax.transaction.api"/>
    </dependencies>
</module>

Otávio, Bom Dia !!!

Vou rever essas configurações, mas parece que está tudo normal , se não conseguir volto , aqui pra mostrar novos erros.

Até;)

Otávio, Boa Tarde !!!

Acho que o arquivo do MySQL Workbench 8.0, não deve ser compativel com MySql JDBC Driver 5.1, vou verificar isso.

Erro de Digitação para passagem de parametro ao datasource , e isso estava se refletindo em todo os codigos que linkava para acesso ao banco de dados, agora apareceu outros erros , se não conseguir resolver volto aqui.

Valeu ;)

solução

O erro é devido a incompatibilidade entre as versãos do MySQL8 , estava usando a versão do WorkBench 8 e então mudei para versão MySQL 5.7 WorkBench 5, é funcionou o deployment corretamente.