[jboss-jira] [JBoss JIRA] (WFLY-3333) Deploying a jdbc driver ignores the --name parameter in the cli

Peter Van Biesen (JIRA) issues at jboss.org
Mon Jun 23 04:51:28 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-3333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978465#comment-12978465 ] 

Peter Van Biesen edited comment on WFLY-3333 at 6/23/14 4:49 AM:
-----------------------------------------------------------------

*Update*: I just noticed --name is used in the drivername. The drivername seems to be {{<name>__<class>__<majver>_<minver>}} . So in stead of just using <name> for driver name, *a workaround* could be to get the /subsystem=datasources:installed-drivers-list, loop through it for a driver-name starting with <name>* . This workaround would also work with prior versions of jboss.


was (Author: peter.vanbiesen):
*Update*: I just noticed --name is used in the drivername. The drivername seems to be {{<name>_<class>_<majver>_<minver>}} . So in stead of just using <name> for driver name, *a workaround* could be to get the /subsystem=datasources:installed-drivers-list, loop through it for a driver-name starting with <name>* . This workaround would also work with prior versions of jboss.

> Deploying a jdbc driver ignores the --name parameter in the cli
> ---------------------------------------------------------------
>
>                 Key: WFLY-3333
>                 URL: https://issues.jboss.org/browse/WFLY-3333
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JCA
>    Affects Versions: 8.0.0.Final, 8.1.0.CR1, 8.1.0.Final
>         Environment: Debian Wheezy amd64, openjdk v1.7.0_55
>            Reporter: Peter Van Biesen
>            Assignee: Stefano Maestri
>
> Hi,
>  
> I'm in the process of migrating from 7.2.0 to 8.0.0Final. The command I use on the cli to deploy my jdbc drivers is :
>  
> deploy <jarname> --name <driver-name>
> e.g. : deploy db2jcc4.jar --name=db2
>  
> In 7.2.0, this would set the driver-name to db2. However, in wildfly this does not seem to work :
> {code} 
> 8.0.0:
>         {
>             "driver-name" => "db2_com.ibm.db2.jcc.DB2Driver_4_13",
>             "deployment-name" => "db2_com.ibm.db2.jcc.DB2Driver_4_13",
>             "driver-module-name" => undefined,
>             "module-slot" => undefined,
>             "driver-datasource-class-name" => undefined,
>             "driver-xa-datasource-class-name" => undefined,
>             "driver-class-name" => "com.ibm.db2.jcc.DB2Driver",
>             "driver-major-version" => 4,
>             "driver-minor-version" => 13,
>             "jdbc-compliant" => true
>         }
> 7.2.0:
>         {
>             "driver-name" => "db2",
>             "deployment-name" => "db2",
>             "driver-module-name" => undefined,
>             "module-slot" => undefined,
>             "driver-datasource-class-name" => undefined,
>             "driver-xa-datasource-class-name" => undefined,
>             "driver-class-name" => "com.ibm.db2.jcc.DB2Driver",
>             "driver-major-version" => 4,
>             "driver-minor-version" => 13,
>             "jdbc-compliant" => true
>         }
>  {code}
>  
> Strangly enough, deploy -l on 8.0.0 gives me :
> {code}
> NAME     RUNTIME-NAME ENABLED STATUS
> db2      db2          true    OK
> {code}
>  
> But when I try to define a datasource using this driver-name, I get :
> {code}
> "JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.driver-demander.java:/architectuurDS is missing [jboss.jdbc-driver.db2]","jboss.data-source.java:/architectuurDS is missing [jboss.jdbc-driver.db2]"]}}
> {code}
>  
> When I use "db2_com.ibm.db2.jcc.DB2Driver_4_13" as driver-name, the datasource works normally. I'm assuming it has something to do with WFLY-1269 ... ?
>  
> Is this a bug ? How do I get the driver to have the correct driver-name ?
>  
> Thanks !
>  
> Peter.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list