4 Replies Latest reply on Feb 1, 2013 7:28 AM by jaikiran

    I am trying to add JDBC Drviers as Modules in Domain Mode

    techsjs2012

      I am trying to add JDBC Drviers as Modules in Domain Mode. so I copy the drivers and the module.xml files to the modules folder just like I do on the standalone mode.

       

      I then stop the admin with jboss-cli.sh and I do a connect.

       

      After I am connected I issue the following commands just like I do in the standalond mode but I get the following errors

       

      [domain@localhost:9999 /] /subsystem=datasources/jdbc-driver=as400:add(driver-name="as400",driver-module-name="com.ibm.as400",driver-xa-datasource-class-name="com.ibm.as400")

      Failed to get the list of the operation properties: "JBAS010850: No handler for operation read-operation-description at address [

          ("subsystem" => "datasources"),

          ("jdbc-driver" => "as400")

      ]"

      [domain@localhost:9999 /] /subsystem=datasources/jdbc-driver=mysql:add(driver-name="mysql",driver-module-name="com.mysql.jdbc",driver-xa-datasource-class-name="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource")

      Failed to get the list of the operation properties: "JBAS010850: No handler for operation read-operation-description at address [

          ("subsystem" => "datasources"),

          ("jdbc-driver" => "mysql")

      ]"

        • 1. Re: I am trying to add JDBC Drviers as Modules in Domain Mode
          nickarls

          Modules can't be distributed in domain mode. The operations are local even if you connect to a domain.

          • 2. Re: I am trying to add JDBC Drviers as Modules in Domain Mode
            techsjs2012

            That's ok. I am doing it from the local box. I just don't see or understand how to do it

            • 3. Re: I am trying to add JDBC Drviers as Modules in Domain Mode
              nickarls

              What AS are you on? I just tried

               

              /subsystem=datasources/jdbc-driver=foo:add(driver-name="foo", driver-module-name="com.oracle.db") against my oracle module and it worked fine

              • 4. Re: I am trying to add JDBC Drviers as Modules in Domain Mode
                jaikiran

                techsjs2012 wrote:

                [domain@localhost:9999 /] /subsystem=datasources/jdbc-driver=as400:add(driver-name="as400",driver-module-name="com.ibm.as400",driver-xa-datasource-class-name="com.ibm.as400")

                Failed to get the list of the operation properties: "JBAS010850: No handler for operation read-operation-description at address [

                    ("subsystem" => "datasources"),

                    ("jdbc-driver" => "as400")

                ]"

                [domain@localhost:9999 /] /subsystem=datasources/jdbc-driver=mysql:add(driver-name="mysql",driver-module-name="com.mysql.jdbc",driver-xa-datasource-class-name="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource")

                Failed to get the list of the operation properties: "JBAS010850: No handler for operation read-operation-description at address [

                    ("subsystem" => "datasources"),

                    ("jdbc-driver" => "mysql")

                ]"

                You are in domain mode. You'll have to specify the profile name before the subsystem address. Something like:

                 

                [domain@localhost:9999 /] /profile=<profile-name>/subsystem=....