Does the application part (without the entity beans) even deploy? If it deploys, it should work, but I'm not exactly sure what you're doing. In general, you should make sure your application jar/war deploys after your persistence jar.
Hope this helps.
Thanks for the reply....
Let me try to explain what I want to say....
First, I created a interface.war for the web Interface and a ejb.jar with the entities and session beans within. Then, I packed those two in a .ear file, ok ?
This worked smoothly.
But now I want to separate the sessions and the entities in two different .jar files. For instance, a entity.jar and a session.jar. So my .ear file would look like this
Doing this, I'm getting exceptions just like tho one I told before.....
Sorry about my english, but I'm a Brazillian guy and I'm still learning the language....