This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Glassfish Jar file locations?" Watch "Glassfish Jar file locations?" New topic
Author

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="http://www.robsprogrammingjunk.com/" target="_blank" rel="nofollow">http://www.robsprogrammingjunk.com/</a>
Lave Kulshreshtha
Ranch Hand

Joined: Oct 21, 2007
Posts: 106
Hi,
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.

Thanks,
Lave


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, ITIL V3 Foundation Certification
 
jQuery in Action, 2nd edition
 
subject: Glassfish Jar file locations?
 
Similar Threads
unable to find remote interface,shows exception of NoClassDefFoundError
Bundle lib in ejb jar doesn't deploy
migrating from Jboss4.0 to websphere 6.0
My netbeans 6.0.1 cannot recognize package javax.ejb
Linux, KDE, JBuilder ...