[jboss-jira] [JBoss JIRA] (AS7-3020) Define and use different JDBC driver versions as modules

Michael Voegele (Created) (JIRA) jira-events at lists.jboss.org
Wed Dec 14 10:06:09 EST 2011


Define and use different JDBC driver versions as modules
--------------------------------------------------------

                 Key: AS7-3020
                 URL: https://issues.jboss.org/browse/AS7-3020
             Project: Application Server 7
          Issue Type: Bug
          Components: Documentation, Server
    Affects Versions: 7.1.0.Beta1b
            Reporter: Michael Voegele
            Assignee: Jason Greene


When defining a JDBC driver as module and providing two versions as follows:

JBOSS_HOME/modules/com/microsoft/sqlserver/main/
JBOSS_HOME/modules/com/microsoft/sqlserver/2.0/

with according jar and module.xml

and defining the driver as follows in standalone.xml:

<driver name="mssql" module="com.microsoft.sqlserver" major-version="2" minor-version="0">
  <xa-datasource-class>com.microsoft.sqlserver.jdbc.SQLServerXADataSource</xa-datasource-class>
</driver>

the following error is thrown:

15:53:32,805 ERROR [org.jboss.as.controller] (ServerService Thread Pool -- 25) -> JBAS014612: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("jdbc-driver" => "mssql")
]): java.lang.IllegalStateException: JBAS010435: Specified driver version doesn't match with actual driver version

When debugging class JdbcDriverAdd, the slot main is always used.

I also tried to configure the driver as:

<driver name="mssql" module="com.microsoft.sqlserver" slot="2.0">
or
<driver name="mssql" module="com.microsoft.sqlserver:2.0">

but this does not work and is also not foreseen as from the scheme.

Also, there is no documentation of how to use major- and minor-version, only the following can be seen in the xsd:

Specifies the major/minor version of this driver. If the major and minor version is omitted the fist available Driver in module will be used.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list