1 Reply Latest reply on Dec 10, 2018 4:53 PM by ctomc

    Why won't wildfly recognize those datasources

    vfbsilva

      I have the following error:

      15:11:55,645 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("subsystem" => "webservices")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}

       

      Into this datasource declaration:

      <datasources>

                          <datasource jndi-name="java:jboss/datasources/UnifiedPushDS" pool-name="UnifiedPushDS" enabled="true" use-ccm="false">

                              <connection-url>jdbc:postgresql://IP:5432/unifiedpush</connection-url>

                              <driver>org.postgresql</driver>

                              <pool>

                                  <max-pool-size>25</max-pool-size>

                              </pool>

                              <security>

                                  <user-name>password</user-name>

                                  <password>password</password>

                              </security>

                              <timeout>

                                  <blocking-timeout-millis>5000</blocking-timeout-millis>

                              </timeout>

                          </datasource>

                          <datasource jndi-name="java:jboss/datasources/KeycloakDS" pool-name="KeycloakDS" enabled="true" use-ccm="false">

                              <connection-url>jdbc:postgresql://IP:5432/keycloak</connection-url>

                              <driver>org.postgresql</driver>

                              <pool>

                                  <max-pool-size>25</max-pool-size>

                              </pool>

                              <security>

                                  <user-name>password</user-name>

                                  <password>password</password>

                              </security>

                              <timeout>

                                  <blocking-timeout-millis>5000</blocking-timeout-millis>

                              </timeout>

                          </datasource>

                          <drivers>

                              <driver name="h2" module="com.h2database.h2">

                                  <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>

                              </driver>

                              <driver name="org.postgresql" module="org.postgresql">

                                  <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>

                            

       

           <driver-class>org.postgresql.Driver</driver-class>

                          </driver>

                      </drivers>

                  </datasources>

       

      Those are theconfig files fot the aerogear unified push server. These configs worked well into jboss eap but are not properly workign in Wildfly. I've used the following file as basis for my config. But something is amiss. I can't understand why undefined is listed as a dependency.