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

    WildFly modules path

    mylos78

      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 ?

      Thanks!

      Mylos

        • 1. Re: WildFly modules path
          jaikiran

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

          • 2. Re: WildFly modules path
            mylos78

            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:

             

            C:\jboss-as-8.0.0.Alpha1-SNAPSHOT\modules\org\mysql\main

            ---------- module.xml

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

             

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

             

                <resources>

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

                </resources>

             

                <dependencies>

                    <module name="javax.api"/>

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

                </dependencies>

            </module>

             

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

            • 3. Re: WildFly modules path
              jaikiran

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

              • 4. Re: WildFly modules path
                mylos78

                Well it does not appear in the driver list

                /subsystem=datasources:installed-drivers-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.

                Thanks

                Mylos

                • 5. Re: WildFly modules path
                  jaikiran

                  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
                    mylos78

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