2 Replies Latest reply on Aug 30, 2012 10:09 AM by Karsten Wutzke

    Why is my JDBC driver still getting a "New missing/unsatisfied dependencies" error

    Robert Nikander Newbie

      I read the manual, and a bunch of other posts. I'm probably missing something stupid ... what is it?

       

      The error messages:

       

      18:54:09,871 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.jdbc-driver.net_sourceforge_jtds (missing) dependents: [service jboss.data-source.java:/myds]

      ... later ...

      JBAS014776:    Newly corrected services:

            service jboss.jdbc-driver.net_sourceforge_jtds (new available)

       

       

      The 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.2.5.jar"/>
         </resources>
         <dependencies>
            <module name="javax.api"/>
         </dependencies>
      </module>
      

       

      $ ls modules/net/sourceforge/jtds/main/

      jtds-1.2.5.jar module.xml

       

      In standalone.xml:

       

      <datasources>               
            <datasource jndi-name="java:/myds" pool-name="myds-pool">
                 <connection-url>jdbc:jtds:sqlserver://localhost:1433/MYDB;loginTimeout=15</connection-url>
                 <driver>net.sourceforge.jtds</driver>
                 <pool>
                     <min-pool-size>3</min-pool-size>
                     <max-pool-size>99</max-pool-size>
                  </pool>
                 <security>
                    <user-name>myuser</user-name>
                    <password>mypass</password>
                  </security>
                  <statement>
                    <prepared-statement-cache-size>32</prepared-statement-cache-size>
                    <share-prepared-statements>true</share-prepared-statements>
                  </statement>
            </datasource>
            <drivers>
               <driver name="net.sourceforge.jtds" module="net.sourceforge.jtds">
                   <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>  <!-- with or without this it fails the same -->
                </driver>
            </drivers>
      </datasources>