File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes EJB3 JPA entities OntoMAny two jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "EJB3 JPA entities OntoMAny two jar" Watch "EJB3 JPA entities OntoMAny two jar" New topic

EJB3 JPA entities OntoMAny two jar

Thiebaut olivier

Joined: Jul 10, 2008
Posts: 14

My english is not my favorite language, french is it.

I develop an application EJB3/JPA/JSF/toplink, it's my first experience in the world of J2EE but not in developpement.

I declare two jar file for this project but an entity ( JPA ) need to use the ManeTOnOne annotation. the problem is that the other entity is in the other package jar, when i deploy the application there are mistakes in netbeans.

how to reference this entity ?
someone tell me, i must declare an ejb-jar.xml ??


Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

As long as the classes are on a common classpath used by the classloader that creates the Hibernate configuration object, well, having the beans packaged in separate jar files shouldn't be a problem.

What is the specific error you're getting? Are we talking ClassNotFoundException or MethodDoesNotExistException or what?

Keep trying!

-Cameron McKenzie
Thiebaut olivier

Joined: Jul 10, 2008
Posts: 14

The first entity

in the package GEODEAUTH.jar

the second entity

the error when i try to deloy package

In an other foorum someone, tell me to use this

to render "public" the jar file but i've got the same error.

K Pauli

Joined: Jun 21, 2011
Posts: 1
Did you ever solve this issue? I am having the same problem.
I agree. Here's the link:
subject: EJB3 JPA entities OntoMAny two jar