JDBC drivers (DB2, Oracle, etc) not available to WildFly Swarm when added as modules (like in WildFly/EAP) using <resource-root> instead of <artifact> in the module.xml.
Custom module "oracle.jdbc" (module.xml and JAR) copied into Uber-JAR's "modules\oracle\jdbc\main" directory (there are also some default modules there - jboss, javax, etc) when module is configured like this:
However, when running app (driver and datasource configured in the standalone.xml), I'm getting this error:
However, when it is configured in module.xml as:
JAR is copied to "m2repo\com\hynnet\oracle-driver-ojdbc6\188.8.131.52" directory of Uber-JAR and driver was successfully loaded.
Looks like WFS adding to classpath only what is in "m2repo", but not the "oracle" module in "modules" directory.
Am I missing some command-line parameter to define location of the custom modules, like "JBOSS_MODULEPATH" for JBoss EAP6?