|my-entites.jar in EAR /lib directory using glassfish [message #516459]
||Wed, 24 February 2010 05:08
| Adam McCormick
Registered: February 2010
I'm at a loss; I have created an enterprise application and added an ejb module and a web module. I decided it would be a good idea to create a seperate jpa project for my entites and placed this jar (entities.jar) in the ear's lib directory.|
The problem is that when I run the application (i'm running this on glassfish 3) I always get:
java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName sample-enterprise-application-entities
I notice in the glassfish directory where my application is deployed the entites.jar does not show up as a jar but rather a directory called "entites.jar". I got smart and exported my entites project to a jar and placed this "real" jar file in the ear's lib and it worked.
My question: why does eclipse not produce a jar file and instead a directory called whatever.jar? Is there a work around for this or some setting/property i am missing?
Thank you for any advice you may have.
Powered by FUDForum
. Page generated in 0.04645 seconds