Solved: new missing / unsatisfied dependencies: service jboss.jdbc-driver.com_ for Jboss / WildFly 10
Hi, first stop the WildFly server. then update the standalone.xml file to add detailed MS-SQL JTDS driver information and Datasource data, as shown below:
<subsystem xmlns="urn:jboss:domain:datasources:4.0"> <datasources> <datasource jta="true" jndi-name="java:/jdbc/speedtest-datasource" pool-name="MSSQLDSspeedTestDEV" enabled="true" use-ccm="true"> <connection-url>jdbc:jtds:sqlserver://serverName:1433;DatabaseName=dbName</connection-url> <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class> <driver>JTDS</driver> <security> <user-name>username</user-name> <password>password</password> </security> <validation> <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mssql.MSSQLValidConnectionChecker"/> <background-validation>true</background-validation> </validation> </datasource> <drivers> <driver name="JTDS" module="net.sourceforge"> <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class> </driver> </drivers> </datasources> </subsystem>
Module.xml for MS SQL JTDS: path: E: \ Softwares \ wildfly.10.1.0.Final \ wildfly.10.1.0.Final \ modules \ system \ layers \ base \ net \ sourceforge \ main (you must create the directory structure as highlighted and add module.xml and jtds-1.3.0.jar files).
(note that in this example I used the module name as "net.sourceforge" and created the folder structure path as "net \ sourceforge \ main"). Note that this is more important for matching the directory path and module name in the module, xml file.
<?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.0" name="net.sourceforge"> <resources> <resource-root path="jtds-1.3.0.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module>
Note. Please note that the path highlighted in green above in 2 places must match (for example, the directory structure and module name in the .xml module),
For example. If you created a directory structure like E: \ Softwares \ wildfly.10.1.0.Final \ wildfly.10.1.0.Final \ modules \ system \ layers \ base \ net \ sourceforge \ jtds \ main, then the module name in module.xml the file should be "net.sourceforge.jtds", as shown below in module.xml
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.0.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module>
now save these two files and restart the wildFLY server.
Regards, Rasool Javeed Mohammad javeed.mca@gmail.com
Mr javeed
source share