File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Glassfish Jar file locations? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Glassfish Jar file locations?" Watch "Glassfish Jar file locations?" New topic

Glassfish Jar file locations?

Rob Mech
Ranch Hand

Joined: Apr 05, 2007
Posts: 56
Im in the process of converting some servlets over to EJB3 webservices. The process has been pretty painless and I've been very pleased with the results thus far. The only problem I ran into was with regards to deploying out the EJB jar file.

I use eclipse and I put together a simple EJB jar file but it never included the libraries that went with the EJB. I'm guessing here that an EJB jar cannot include the other library JAR files. I'm ok with that and ended up placing the library files into the \glassfish\lib directory.

Now I gotta think that's not the right spot for them. I'm thinking what I need to do is assemble an EAR file for this. Is this the correct approach here?

So while I have this working I'd prefer to use the standard method for including these resource libraries. Somone point me in the right direciton?

Rob Mech, SCJP 1.5<br /><a href="" target="_blank" rel="nofollow"></a>
Lave Kulshreshtha
Ranch Hand

Joined: Oct 21, 2007
Posts: 106
I also use eclipse and glassfish server but I never put any extra jar file in Glassfish/lib. I simply include the required jar file in eclipse project build path and then deploy it to server. Finally every thing works fine. I mean to say process is very simple.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, ITIL V3 Foundation Certification
I agree. Here's the link:
subject: Glassfish Jar file locations?
It's not a secret anymore!