Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

EJB3 JPA entities OntoMAny two jar

 
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
 
author and cow tipper
Posts: 5000
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
 
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.
 
She's brilliant. She can see what can be and is not limited to what is. And she knows this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic