1 Reply Latest reply on Jun 1, 2010 9:07 AM by Zemian Deng

    Adding third party jar in jboss

    Ruchi Agrawal Newbie

      HI ,

       

      I am using Jboss 5.1 GA . I have my ejb application jar which in turn needs castor jar  at runtime .

      I have successfully deployed my application and all queues and beans are registered with jboss .

      The issue is where should I put castor jar . I have tried putting it in lib directory of jboss as in

      common/lib , lib and default lib but from nowhere my application is able to get it .

      Kindly let me know how should I go about putting castor jar in jboss .

       

      Thanks in advance ,

       

      --ruchi

        • 1. Re: Adding third party jar in jboss
          Zemian Deng Apprentice

          Which server profile set are you runing, and how are you packging your EJB?

           

          If you packaged EJB app with ear format, then add your jars into the ear's lib directory.

           

          If you packaged EJB as just plain jar, then you can add your third party jars into the deploy directory. You would have to ensure the EJB deploy order comes after your third party jars.

           

          If you want to add third party jars to the jboss <serveInstance>/lib, then ensure you restart the server afterward. It's not hot-deployable there. You only should put it here when you want to share it to all applications in your server.

           

          Any of the methods above should work. Check with the jboss doc for more details.