Do you have the ojdbc jar embedded within your ear? It has to be configured as a jboss module so that all deployments can see it. See:
DataSource configuration - WildFly 10 - Project Documentation Editor
How to configure a Datasource with JBoss / WildFly