Gewusst wie: hinzufügen PostgreSQL datasource WildFly 9.0?

Ich habe versucht die Anleitung auf mastertheboss.com:

  1. ./jboss-cli.sh
  2. module add --name=org.postgres --resources=/tmp/postgresql-9.3-1101.jdbc41.jar --dependencies=javax.api,javax.transaction.api
  3. /subsystem=datasources/jdbc-driver=postgres:add(driver-name="postgres",driver-module-name="org.postgres",driver-class-name=org.postgresql.Driver)
  4. data-source add --jndi-name=java:/PostGreDS --name=PostgrePool --connection-url=jdbc:postgresql://localhost/postgres --driver-name=postgres --user-name=postgres --password=postgres

Dieses tutorial funktioniert mit WildFly 8.2, aber es funktioniert nicht mit WildFly 9.0. 3. Schritt schlägt fehl mit der Fehlermeldung:

{
"outcome" => "failed",
"failure-description" => "WFLYJCA0041: Failed to load module for driver [org.portgres]",
"rolled-back" => true
}

Hinzufügen datasource Postgres zu WildFly 9.0?

InformationsquelleAutor czerny | 2015-07-04
Schreibe einen Kommentar