• Post Reply Bookmark Topic Watch Topic
  • New Topic

EAR packaging - @Persistence Unit injection fails  RSS feed

 
Mark Doerbandt
Greenhorn
Posts: 8
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, everybody,

I have a simple web application using GlassFish 2.1 (with NB 7.0)
with one web module and one ejb module.

When deploying both modules everything is fine.

Now I created a new EAR project, added the two modules
and deployed that to GF...

... then I have a session bean which is used everywhere in my application that has a single

and here is my problem: in the EAR nothing is injected, emf stays null.
In seperate deployments everything is ok...

I assume something is going wrong with the persistence unit,
but where can I have a deeper look what's happening?
Is there any log file where I get an info like "pu 'APP' not found"?

Thanks - Mark
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where exactly is the persistence.xml located?
 
Mark Doerbandt
Greenhorn
Posts: 8
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it's in the
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!