Estou com um erro de conexão e já pesquisei em várias fontes e tenho o meu drive na estrutura :
C:\ServidorWildfly\wildfly-15.0.1.Final\modules\net\sourceforge\jtds\main
Conteúdo:
- jtds-1.3.1.jar
- module.xml
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="net.sourceforge.jtds">
<resources>
<resource-root path="jtds-1.3.1.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
Meu arquivo Standalone.xml
<subsystem xmlns="urn:jboss:domain:datasources:5.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/DBCliente" pool-name="DBCliente"
enabled="true" use-java-context="true">
<connection-url>jdbc:jtds:sqlserver://localhost:1433/DBCliente</connection-url>
<driver>jtds</driver>
<security>
<user-name>sa</user-name>
<password>root</password>
</security>
</datasource>
<drivers>
<driver name="jtds" module="net.sourceforge.jtds">
<driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
</driver>
</drivers>
</datasources>
</subsystem>