You can/should place your custom modules in modules/foo/bar.
Thanks Jaikiran. Well I've tried creating a JDBC module under modules\org\mysql\main but it's not picked up by the application server:
<module xmlns="urn:jboss:module:1.1" name="org.mysql">
I'll try and see if I'm more lucky with the modules\system\layers\base path......
What's exactly do you mean by not picked by the server? Can you add some more details please?
Well it does not appear in the driver list
so if I try to create a new datasource, I'm unable to use the mysql driver. Also I remember adding an .index file in the folders "visited" by the module loader but maybe this is a peculiarity of JBoss 7. Just wondering if new data source can be created with AS 8.
It won't automatically appear in the driver-list. You will have to configure it as a driver in the datasource subsystem. Have you done that?
I beg your pardon. I remembered this happened automatically with the module installation. Sorry.