6 Replies Latest reply on Apr 12, 2007 3:52 PM by aggressivefish

    Setting/Finding Class Path Location

    aggressivefish

      In one of my jsp's I make reference to a third party .jar file (i.e. import some classes from it mainly used for database connection and manipulation). Where can I find where the class path for .jar files is located in JBoss and are there other steps I need to take other than dropping the .jar file into that directory? I noticed that under server//deploy/jboss-bean.deployer there are a bunch of .jar files and also under server//lib as well. Right now I was going to try the latter. Thanks in advance.

      AF

        • 1. Re: Setting/Finding Class Path Location
          peterj

          Usually, jar files got into the WEB-INF/lib directory of your war file.

          The server/xxx/lib directory is for globally-accessible jar files. The only files I recommend you add to that are JDBC drivers for data sources that you defined using a *-ds.xml file.

          I recommend against adding any jar files to existing directories within server/xxx/deploy.

          P.S. I'm going to have to start charging you for answers. :-)

          • 2. Re: Setting/Finding Class Path Location
            aggressivefish

            Thanks Peter again. Really appreciate it. Two things, I wouldn't be asking so many questions but I'm trying to get this set up ASAP and try seeing how it compares to JRun. I work for a small company and we were hoping to start utilizing JBoss instead of JRun so, hence, a little rush. Second thing, would you happen to know what the pricing is for individual support and for small companies? This is a general inquiry on behalf of myself so I would prefer no details company wise. Thanks so much for the help again.

            AF

            • 3. Re: Setting/Finding Class Path Location
              peterj

              Actually, the last time I charged someone he had to buy the first round at JBoss World. ;-)

              I know many companies can provide priced support plans (Red Hat, of course; my company does as well, but for large enterprises, and no I don't know the prices, I'm just a lowly developer). Perhaps someone who provides such support could chime in.

              • 4. Re: Setting/Finding Class Path Location
                aggressivefish

                Sorry I thought you worked for JBoss (thought I saw it under your name that you did or something). What kind of development do you mainly do then? I dib and dab in a little of everything (until about 2 years ago it was mainly desktop apps). I've been trying to learn more and more about the different web technologies out there lately (starting with Perl and PHP and moving "up" to Java). Since we are a small company we don't get into higher tech much but I'm trying on my own time (mostly - except for a scatter project here) to familarize myself more through reading and trying it at home (i.e. killed me to pay so much for my XP upgrade). Once I'm able to get this up and running in skeleton form here I hope to continue reading and trying stuff out at home. I've done a little reading into RMI and it's something I'd like to start getting into and fooling around with (once I can get another system to act as the host or client). Thanks again for the help.

                • 5. Re: Setting/Finding Class Path Location
                  peterj

                  You might have seen my mug shot in the list of committers (I work on the new admin console, and supply the occasional patch). But I work for Unisys. Mainly I don't get to develop much any more but I do get to dabble in various open source technologies, especially around JBoss AS and the Java EE stack. I answer questions in the forum as much for my own learning as for helping others.

                  Sounds like you need to look into Linux. The upgrades are free. (By the way, I would not pay a penny to upgrade to Vista, visually pleasing but full of bugs (Explorer crashes on me at least twice a day; I'm running it at work) and quirks (I have a loooong list).) I know someone who buys cheap older PCs on eBay and puts Linux on them and build his own privatet raining network that way. Since it is Java you are researching, it works the same on Windows as Linux. Ditto for Perl and PHP. And before someone else says it, yes in many cases those things work much better on Linux.

                  • 6. Re: Setting/Finding Class Path Location
                    aggressivefish

                    Peter, I said I was a programmer (not sure how good though). Microsoft Vista full of bugs was almost a given to me. Just XP alone when first switching was a pain. I used to have a laptop running it and the laptop died. No one knows why but my guess is because of "brain" damage from running XP. By the way those Microsoft/Mac commercials are a hoot. What's your experience with Macs? We have one Linux machine here but it's mainly used for testing stuff out before sending to customers with Linux machines. Anyways if "you" have any questions regarding another area (outside JBoss and/or Java for the moment) feel free to give me a holler.