1 Reply Latest reply on Jul 21, 2011 6:40 PM by Stuart Douglas

    Migrating owner libs from 4.2 to AS7, how?

    Douglas Souza Newbie

      Hi there friends

      I've configurated my own lib directories on JBossAS-4.2.0, just to avoid confusions.

       

      Thus, I set into jboss-service.xml:

       

         <!-- Load all jars from the JBOSS_DIST/server/<config>/lib directory. This

           can be restricted to specific jars by specifying them in the archives

           attribute.

          -->

         <classpath codebase="${jboss.server.lib.url:lib}" archives="*"/>

         <classpath codebase="${jboss.server.libmylibs.url:libmylibs}" archives="*"/>

       

       

      so into "myserver/myserver/libmylibs" there are some files:

       

      PersonProfitWsClient-2.1.0.jar CommonsBeanUtils-1.6.0.jar

      CommonsDigester-1.8.0.jar      CommonsDiscovery-0.2.jar

      CommonsFileUpload-1.1.1.jar    CommonsIo-1.1.jar

      CommonsLang-2.1.0.jar          CommonsNet-1.4.1.jar

      CommonsValidator-1.1.3.jar     ComunsMine-3.0.2.jar

      Json-0.4.1.jar                 Logon-2.0.3.jar

      MQetClient-6.0.2.jar           Ojdbc14-10.2.0.4.jar

      PersistenceApi-1.0.0.jar       Provider-1.0.0.jar

      MyBean-1.2.0.jar               Axis-1.3.0.jar

      and so on ...

       

      But in AS7 standalone, how should I leave available these libraries to applications?

       

      Would be by creating my directory structure bellow modules, such as:

      "jboss7/modules/my/own/libs" and to specify a module.xml ?

       

       

      <module xmlns="urn:jboss:module:1.0" name="my.own.libs">

          <resources>

              <!-- Insert resources here -->

              <resource-root path="repeatingToEachOneBellow.jar"/>

       

      PersonProfitWsClient-2.1.0.jar CommonsBeanUtils-1.6.0.jar

      CommonsDigester-1.8.0.jar      CommonsDiscovery-0.2.jar

      CommonsFileUpload-1.1.1.jar    CommonsIo-1.1.jar

      CommonsLang-2.1.0.jar          CommonsNet-1.4.1.jar

      CommonsValidator-1.1.3.jar     ComunsMine-3.0.2.jar

      Json-0.4.1.jar                 Logon-2.0.3.jar

      MQetClient-6.0.2.jar           Ojdbc14-10.2.0.4.jar

      PersistenceApi-1.0.0.jar       Provider-1.0.0.jar

      MyBean-1.2.0.jar               Axis-1.3.0.jar

       

          </resources>

       

          <dependencies>

              <module name="?? ?? ??"/>

          </dependencies>

      </module>

       

      Thank you in advance

       

      Douglas Matheus