6 Replies Latest reply on May 24, 2013 8:59 AM by mylos78

    WildFly modules path


      Hi all !

      Looking into the module path contained in WildFly Alpha, I can see that modules are contained now in system\layers\base path. Is there any restriction against using JBoss 7.1.1 modules path (modules/org ..) ? is this module path is reserved for core application server modules ?



        • 1. Re: WildFly modules path

          You can/should place your custom modules in modules/foo/bar.

          • 2. Re: WildFly modules path

            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.xml

            ---------- mysql-connector-java-5.1.24-bin.jar


            <module xmlns="urn:jboss:module:1.1" name="org.mysql">



                    <resource-root path="mysql-connector-java-5.1.24-bin.jar"/>




                    <module name="javax.api"/>

                    <module name="javax.transaction.api"/>




            I'll try and see if I'm more lucky with the modules\system\layers\base path......

            • 3. Re: WildFly modules path

              What's exactly do you mean by not picked by the server? Can you add some more details please?

              • 4. Re: WildFly modules path

                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.



                • 5. Re: WildFly modules path

                  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?

                  • 6. Re: WildFly modules path

                    I beg your pardon. I remembered this happened automatically with the module installation. Sorry.