Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Glassfish Jar file locations?

 
Rob Mech
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Lave Kulshreshtha
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic