When trying to preview a source/view model, the data source is not created with error:
org.teiid.runtime.client.TeiidClientException: java.lang.RuntimeException:
Remote org.teiid.api.exception.query.QueryPlannerException: TEIID30498 Capabilities for SOURCE_MODEL_NAME were not avaialable.
The command could not be planned properly.
and found in the Teiid log something like:
20:49:44,159 INFO [org.teiid.RUNTIME] (MSC service thread 1-7) Data Source PREVIEW_dbddb3d1-32c2-46c9-a88a-b433fd2fe06d_xxx_yyy_SOURCE_MODEL_NAME not accessible.
it migh be because of your jdbc driver file (JAR) is not comply with JDBC 4.0 Driver spec, which should include file META-INF/services/java.sql.Driver
inside the JAR file.
So Teiid/JDV runtime does not find the driver class.
If you are using JBDS 8.1, removing Connection Profile of a Source Model and then set the Connection Profile again might not change the location of JDBC JAR file. I think this is a bug. What you need to do is to open the XMI file using text editor and change the location of JDBC JAR file manually.