Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Configuração do DS

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]"

Quando tento subir meu WildFly, recebo essa mensagem. Segui todos os passos até o momento, como mostrado nas aulas.

3 respostas

Bom dia Guilherme, pode colar aqui os trechos que incluiu no module.xml e standalone.xml por favor?

<datasources>
                    <datasource jndi-name="java:jboss/datasources/casadocodigoDS" pool-name="casadocodigoDS">
                                    <connection-url>jdbc:mysql://localhost:3306/casadocodigo_javaee</connection-url>
                                    <connection-property name="DatabaseName">casadocodigo_javaee</connection-property>
                                    <driver>mysql</driver>
                                    <pool>
                                        <min-pool-size>10</min-pool-size>
                                        <max-pool-size>20</max-pool-size>
                                    </pool>
                                    <security>
                                        <user-name>root</user-name>
                                    </security>
                                </datasource>
                <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
                    <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
                    <driver>h2</driver>
                    <security>
                        <user-name>sa</user-name>
                        <password>sa</password>
                    </security>
                </datasource>
                <drivers>
                    <driver name="h2" module="com.h2database.h2">
                        <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
                    </driver>
                    <driver name="mysql" module="com.mysql">
                        <datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlDataSource</datasource-class>
                    </driver>
                </drivers>
            </datasources>
solução!

Achei o erro. Faltava fechar um >