Wildfly 10 Final postgres Treiber ClassCastException

Eventuell kann mir jemand helfen. Momentan habe ich ein wirklich seltsames Problem beim Starten vonwildfly 10 Final mit einem Postgres-Treiber, aber mit der gleichen Einstellungwildfly 10 CR4 wird gestartet.

Die Ausnahme, die ich bekomme, ist folgende:

Caused by: javax.resource.ResourceException: IJ031089: Failed to load datasource: org.postgresql.Driver
    at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getDataSource(LocalManagedConnectionFactory.java:650)
    at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:311)
    ... 6 more
Caused by: java.lang.ClassCastException: org.postgresql.Driver cannot be cast to javax.sql.DataSource
    at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getDataSource(LocalManagedConnectionFactory.java:633)
    ... 7 more

Das Seltsame ist, es funktioniert auf Wildfly 10 CR4, aber nicht auf der finalen Version von Wildfly 10 Final. Irgendeine Idee? Für mich sieht es nach einem Klassenladeproblem aus, aber ich bin kein Experte mit Wildfly, um es aufzuspüren.

my modules / org / postgres / main / module.xml:

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.postgres">
  <resources>
    <resource-root path="postgresql-9.4.1208.jar"/>
  </resources>
  <dependencies>
    <module name="javax.api"/>
    <module name="javax.transaction.api"/>
    <module name="javax.servlet.api" optional="true"/>
  </dependencies>
</module>

Meine Treiberdefinition in standalone.xml

<driver name="postgres" module="org.postgres">
    <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
    <datasource-class>org.postgresql.Driver</datasource-class>
</driver>

Java JDK ist: jdk1.8.0_73

Würde mich über jede Hilfe bei der Behebung meines Problems sehr freuen.

Thx im Voraus

/Davi

Antworten auf die Frage(2)

Ihre Antwort auf die Frage