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)

Porque usar o standalone-full.xml e não o standalone.xml?

Qual a diferença entre o arquivo standalone-full.xml e standalone.xml, ao criar o projeto nao configurei pra usar o full e agora nao esta funcionando ao tentar criar a tabela no bd.

7 respostas
solução

O standalone vem com mais módulos ativados, por exemplo o de mensageria, essa é a diferença. A parte de datasource vem ativada nos dois, então, na minha opinião, deveria funcionar :(. Qual o erro que ta dando?

segue o erro:

17:26:46,510 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.2.Final 17:26:46,711 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final 17:26:46,772 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) starting 17:26:48,039 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found casadocodigo.war in deployment directory. To trigger deployment create a file called casadocodigo.war.dodeploy 17:26:48,086 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http) 17:26:48,106 INFO [org.xnio] (MSC service thread 1-1) XNIO version 3.4.0.Final 17:26:48,114 INFO [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.4.0.Final 17:26:48,194 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 33) WFLYCTL0013: Operation ("add") failed - address: ([ ("subsystem" => "datasources"), ("jdbc-driver" => "mysql") ]) - failure description: "WFLYJCA0041: Failed to load module for driver [com.mysql]"

17:26:51,347 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([ ("subsystem" => "datasources"), ("data-source" => "casadocodigoDS") ]) - failure description: { "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.mysql"], "WFLYCTL0180: Services with missing/unavailable dependencies" => [ "jboss.driver-demander.java:jboss/datasources/casadocodigoDS is missing [jboss.jdbc-driver.mysql]", "org.wildfly.data-source.casadocodigoDS is missing [jboss.jdbc-driver.mysql]" ] } 17:26:51,350 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([ ("subsystem" => "datasources"), ("data-source" => "casadocodigoDS") ]) - failure description: { "WFLYCTL0412: Required services that are not installed:" => [ "jboss.jdbc-driver.mysql", "jboss.jdbc-driver.mysql" ], "WFLYCTL0180: Services with missing/unavailable dependencies" => [ "jboss.driver-demander.java:jboss/datasources/casadocodigoDS is missing [jboss.jdbc-driver.mysql]", "org.wildfly.data-source.casadocodigoDS is missing [jboss.jdbc-driver.mysql]", "org.wildfly.data-source.casadocodigoDS is missing [jboss.jdbc-driver.mysql]" ], "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.data-source.reference-factory.casadocodigoDS", "jboss.naming.context.java.jboss.datasources.casadocodigoDS" ], "Services that may be the cause:" => [ "jboss.jdbc-driver.mysql", "jboss.naming.context.java.jboss.datasources.ExampleDS" ] }

Failed to load module for driver [com.mysql]" Você precisa seguir o passo e configurar o driver do mysql.

Sim tinha gravado as pastas com\mysql\main no caminho errado, coloquei no caminho: wildfly-10.1.0.Final\modules\system\layers\base\com\mysql\main e funcionou, criou a tabela no banco

só que agora nao ta mais abrindo a tela com formularios????

404 - Not Found

já funcionou eu tinha deletado as linhas datasource exemple da standalone.xml agora funcionou.