• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB3 JPA entities OntoMAny two jar

 
Thiebaut olivier
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you ever solve this issue? I am having the same problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic