]
Steven Hawkins resolved TEIID-4070.
-----------------------------------
Resolution: Done
Refactored the api modules to use their own packages.
Issues with resource adapters with api modules in wildfly
---------------------------------------------------------
Key: TEIID-4070
URL:
https://issues.jboss.org/browse/TEIID-4070
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors
Affects Versions: 8.13, 9.0
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 9.0, 8.13.3
It appears that WildFly has issues with packages spanning modules, which JBossAS did
not.
With the simpledb and google spreadsheet translators the api module was simply pulled out
of the resource adapter with the same package names. This leads to odd errors at
runtime:
org.teiid.resource.adapter.google.GoogleSpreadsheetConnection:
java.lang.ClassCastException: org.teiid.resource.adapter.google.SpreadsheetConnectionImpl
cannot be cast to org.teiid.resource.adapter.google.GoogleSpreadsheetConnection
Even though SpreadsheetConnectionImpl does implement GoogleSpreadsheetConnection and both
the resource adapter and translator reference the same api module.