Are you configuring this datasource on the same JBoss AS/EAP instance that Teiid is deployed in?
I am creating a webservice EAR and deploying on the same JBoss server.
Please let me know how to fix it, if you have any idea.
The exception implies that you have a class loading issue. What do you mean by "I have used the "teiid-client-8.7.0.Final.jar" file"?
With Teiid installed, the configuration should already contain a definition of the teiid-local driver, which has access to JBoss modules and should get farther than the exception you are seeing.