I'll preface this by saying I've never used this and I'm not sure why you want to use a different connection pooling and datasource provider than Wildfly, but the Wildfly <datasource> does provide a <datasource-class> property that you can conceivably configure to use the BasicDataSource instead.
I did a quick search and found this: https://developer.jboss.org/thread/203514?tstart=0
For JBoss AS 7.1.1, that should conceivably work for Wildfly as well.
<datasource jta="false" jndi-name="java:jboss/datasources/MyDS" pool-name="MyDataSource" enabled="true" use-ccm="false">
<connection-url>jdbc:mysql://localhost/xxx</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<datasource-class>org.apache.commons.dbcp.BasicDataSource</datasource-class>
<driver>custom.mysql</driver>
<security>
<user-name>xxx</user-name>
<password>xxx</password>
</security>
</datasource>
That said, I tried configuring a datasource as specified above (the driver module, in this case for mysql, would has to know about these apache commons JAR resources, my first attempt resulted in a ClassDefNotFound), and then referencing them in a quick test with WildFly 8.1.0 final like this:
InitialContext initCtx = null;
DataSource ds = null;
initCtx = new InitialContext();
ds = (DataSource) initCtx.lookup("java:jboss/datasources/MyDS");
Connection conn = ds.getConnection();
This resulted in a 'ds' object that was indeed a BasicDataSource (no class cast exception), but on the next line I got the following exception:
Caused by: java.lang.UnsupportedOperationException: Not supported by BasicDataSource
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1062)
at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:308)
... 45 more
So maybe that helps you get a step further. I would check the Wildfly docs regarding to configure a module for a different jdbc driver and how to configure datasources in general, maybe you don't need to use the commons library at all:
https://docs.jboss.org/author/display/WFLY8/DataSource+configuration
https://sheemoul.wordpress.com/2014/06/17/configure-mysql-datasource-in-wildfly-8-0/