2 Replies Latest reply on Jun 19, 2012 8:38 AM by Yaro Sheng

    Datasource error in web-console (domain)

    Yaro Sheng Newbie

      Hello,

       

      I get an error while trying to view datasource configuration in web-console (domain):

       

      [Server:loader] 14:12:57,025 ERROR [org.jboss.as.controller.management-operation] (host-controller-connection-threads - 1) Operation ("read-children-resources") failed - address: ([("subsystem" => "datasources")]) - failure description: "JBAS014807: Management resource '[(\"subsystem\" => \"datasources\")]' not found"

      [Host Controller] 14:12:57,028 FINE  [com.sun.net.httpserver] (HttpManagementService-threads - 2) POST /management HTTP/1.1 [500  Internal Server Error] ()

       

       

      Datasource is defined as follows and is properly handled in web-console when server is in standalone mode:

       

       

      <subsystem xmlns="urn:jboss:domain:datasources:1.0">
                  <datasources>
                      <datasource jndi-name="java:/MySqlDS" pool-name="MySqlDS" enabled="true">
                          <connection-url>jdbc:mysql://some_server:3306/db</connection-url>
                          <driver>mysql-connector-java-5.1.7-bin.jar</driver>
                          <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
                          <pool>
                              <min-pool-size>100</min-pool-size>
                              <max-pool-size>200</max-pool-size>
                          </pool>
                          <security>
                              <user-name>root</user-name>
                              <password>root</password>
                          </security>
                          <statement>
                              <prepared-statement-cache-size>100</prepared-statement-cache-size>
                              <share-prepared-statements>true</share-prepared-statements>
                          </statement>
                      </datasource>
                      <datasource jta="false" jndi-name="java:/MySqlDS2" pool-name="MySqlDS2" enabled="true">
                          <connection-url>jdbc:mysql://some_server:3306/db_s?autoReconnect=true</connection-url>
                          <driver>mysql-connector-java-5.1.7-bin.jar</driver>
                          <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
                          <pool>
                              <min-pool-size>100</min-pool-size>
                              <max-pool-size>500</max-pool-size>
                          </pool>
                          <security>
                              <user-name>root</user-name>
                              <password>root</password>
                          </security>
                          <statement>
                              <prepared-statement-cache-size>100</prepared-statement-cache-size>
                              <share-prepared-statements>true</share-prepared-statements>
                          </statement>
                      </datasource>
                      <drivers>
                          <driver name="h2" module="com.h2database.h2">
                              <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
                          </driver>
                          <driver name="mysql-connector-java-5.1.7-bin.jar" module="com.mysql">
                              <driver-class>com.mysql.jdbc.Driver</driver-class>
                          </driver>
                      </drivers>
                  </datasources>
      

       

       

      Is it a bug?