JBoss Community

Re: UNRESOLVED Demands 'persistence.unit:unitName=...

created by Matthias Becker in EJB3 - View the full discussion

I created this project with eclipse. The structure is as follows

  • EsbMointorCommon
    Contains some classes used in all other projects
  • EsbMonitorClient
    Contains the EJB's (at least it was so created by Eclipse)
  • EsbMonitorJPA
    Contains the Entities (includeing DataSource)
  • EsbMonitorJSF
    Contains the web files
  • EsbMonitorEAR
    Combines all others into a singel EAR file (the META-INF contains the persistence.xml)

 

Originally the persistence.xml was located in the JPA project but then a whole set of other exceptions occured. Maybe stubid question: I was under the impression that the ejb-jar.xml is not needed anymore but i found examples where a PU is refered to by one. Do i have to create such a xml somewhere?

 

Thanks four your help!

Reply to this message by going to Community

Start a new discussion in EJB3 at Community