Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2203

Error deploying multiple *-ds.xml files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 8.0.0.Final
    • 8.0.0.Beta1
    • JCA
    • None

      Our individual *-ds.xml datasources were all deploying fine in Alpha4 but in the Beta1 nightlies this error appears on startup:

      15:07:52,111 ERROR [org.jboss.msc.service] (MSC service thread 1-4) MSC000002: Invocation of listener "org.jboss.as.connector.subsystems.datasources.D
      ataSourceStatisticsListener@7d18ac99" failed: java.lang.IllegalArgumentException: JBAS014742: A node is already registered at '(deployment => *)(subsy
      stem => datasources)(data-source => *)(statistics => jdbc)'
              at org.jboss.as.controller.registry.NodeSubregistry.register(NodeSubregistry.java:86) [wildfly-controller-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1
      -SNAPSHOT]
              at org.jboss.as.controller.registry.ConcreteResourceRegistration.registerSubModel(ConcreteResourceRegistration.java:149) [wildfly-controller-8
      .0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
              at org.jboss.as.controller.registry.AbstractResourceRegistration.registerSubModel(AbstractResourceRegistration.java:90) [wildfly-controller-8.
      0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
              at org.jboss.as.connector.subsystems.datasources.DataSourceStatisticsListener.transition(DataSourceStatisticsListener.java:72) [wildfly-connec
      tor-8.0.0.Beta1-SNAPSHOT.jar:8.0.0.Beta1-SNAPSHOT]
              at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1533) [jboss-msc-1.2.0.Beta2.jar:1.2.0.Beta2]
      

      Our datasource files look like this. I haven't tried putting all the datasource elements into one file.

      <?xml version="1.0" encoding="UTF-8"?>
      <datasources>
        <datasource jndi-name="java:/AlphaDS" enabled="true" use-java-context="true" pool-name="AlphaDS">
          <connection-url>jdbc:oracle:thin://@db-host:1666/dev-db</connection-url> 
          <driver>oracle</driver>
          <security>
            <user-name>XXX</user-name>
            <password>YYY</password>
          </security>
          <connection-property name="defaultNChar">true</connection-property>
        </datasource>
      </datasources>
      
      <?xml version="1.0" encoding="UTF-8"?>
      <datasources>
        <datasource jndi-name="java:/BetaDS" enabled="true" use-java-context="true" pool-name="BetaDS">
          <connection-url>jdbc:oracle:thin://@db-host:1666/dev-db</connection-url> 
          <driver>oracle</driver>
          <security>
            <user-name>XXX</user-name>
            <password>YYY</password>
          </security>
          <connection-property name="defaultNChar">true</connection-property>
        </datasource>
      </datasources>
      

              bstansbe@redhat.com Brian Stansberry
              nickh_jira Nick Howes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: