aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "EJB3 JPA entities OntoMAny two jar" Watch "EJB3 JPA entities OntoMAny two jar" New topic
Author

EJB3 JPA entities OntoMAny two jar

Thiebaut olivier
Greenhorn

Joined: Jul 10, 2008
Posts: 14
Hey,

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 ??

thanks

olivier
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

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
Greenhorn

Joined: Jul 10, 2008
Posts: 14
Hey,

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.

olivier
K Pauli
Greenhorn

Joined: Jun 21, 2011
Posts: 1
Did you ever solve this issue? I am having the same problem.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: EJB3 JPA entities OntoMAny two jar