wildfly - WFLYCTL0412: Required services that are not installed: -


i'm trying add datasource in wildfly 10.0, when test connection error message throws:

unexpected http response: 500  request {     "address" => [         ("subsystem" => "datasources"),         ("data-source" => "postgrecrawlazo")     ],     "operation" => "test-connection-in-pool" }  response  internal server error {     "outcome" => "failed",     "failure-description" => "wflyjca0040: failed invoke operation: wflyjca0042: failed match pool. check jndiname: java:/crawlazo",     "rolled-back" => true,     "response-headers" => {"process-state" => "reload-required"} } 

the error server log:

2016-09-01 16:28:40,524 error [org.jboss.as.controller.management-operation] (controller boot thread) wflyctl0013: operation ("add") failed - address: ([     ("subsystem" => "datasources"),     ("data-source" => "postgrecrawlazo") ]) - failure description: {     "wflyctl0412: required services not installed:" => [         "jboss.jdbc-driver.postgres",         "jboss.jdbc-driver.postgres"     ],     "wflyctl0180: services missing/unavailable dependencies" => [         "jboss.driver-demander.java:/crawlazo missing [jboss.jdbc-driver.postgres]",         "org.wildfly.data-source.postgrecrawlazo missing [jboss.jdbc-driver.postgres]",         "org.wildfly.data-source.postgrecrawlazo missing [jboss.jdbc-driver.postgres]"     ] } 

i'm replicating same configuration files standalone.xml , module.xml

here part how set datasource in standalone.xml:

 <datasource jndi-name="java:/crawlazo" pool-name="postgrecrawlazo" enabled="true">                     <connection-url>jdbc:postgresql://x.x.x.x:5432/crawlazo</connection-url>                     <driver>postgres</driver>                     <pool>                         <min-pool-size>1</min-pool-size>                         <max-pool-size>40</max-pool-size>                     </pool>                     <security>                         <user-name>someuser</user-name>                         <password>somepasswd</password>                     </security>                 </datasource>                 <drivers>                     <driver name="h2" module="com.h2database.h2">                         <xa-datasource-class>org.h2.jdbcx.jdbcdatasource</xa-datasource-class>                     </driver>                     <driver name="postgres" module="org.postgres">                         <driver-class>org.postgresql.driver</driver-class>                     </driver>             </drivers> 

and module.xml:

<module xmlns="urn:jboss:module:1.0" name="org.postgresql">     <resources>         <resource-root path="postgresql-9.2-1004.jdbc3.jar"/>     </resources>     <dependencies>         <module name="javax.api"/>         <module name="javax.transaction.api"/>     </dependencies> </module> 

i have postgresql-9.2-1004.jdbc3.jar in deployment folder.

why error appears? have forgotten config?

the driver jar should in module folder not in deployment folder implying when wrote :

<resources>     <resource-root path="postgresql-9.2-1004.jdbc3.jar"/> </resources> 

Comments