5 Replies Latest reply on Feb 9, 2005 4:10 AM by kamal_tavant

    Where do you put .jar files?

    jackk

      I'm having a problem making jboss 3.2.5 work with my .jar file that I wrote. It's a simple session bean and it blows up on a class that I have in my .jar file. Where do I put this .jar file? Any ideas?

        • 1. Re: Where do you put .jar files?
          monocongo

          Give some more detailed info and exception messages so we can better help you. For example do you have the ejb-jar.xml in your JAR ? What are the specific exceptions ("it blows up" is rather vague) ? etc.

          --James

          • 2. Re: Where do you put .jar files?
            jackk

            I guess what I am trying to do is write a simple session ejb where the implementation (bean part) calls a framework that I made (jar file). I just want to know where to put this jar file. Does that make sense?

            • 3. Re: Where do you put .jar files?
              darranl

              Assuming your jar file contains: -

              The bean implementation.
              The remote interface (And / Or possible local interface).
              The home interface (And / Or possible the local home interface)
              And the ejb-jar.xml in the META-INF folder.

              If you started JBoss with the run script with no arguments.

              Put the jar in '{jboss.home}/server/default/deploy'

              • 4. Re: Where do you put .jar files?
                jackk

                Thank you, darranl. That's very helpful.

                However, what I am asking is that say you have THAT jar file in the correct directory and say you have another .jar file that you've previously created that you want to call from the bean implementation where do you put it? In the lib directory of jboss? Where?

                • 5. Re: Where do you put .jar files?
                  kamal_tavant

                  You can try putting in the deploy directory or in lib directory of the choose configuration i.e., default\lib for default configuration.