We have a maven project with ejbs and stuff. When i run a build and create my ear, the persistence.xml doesnt get included inside the ear. What could be wrong here?
Asked
Active
Viewed 1,808 times
4
-
Do you keep your persistence.xml in `/src/main/resources/META-INF/`? – Jeremy May 13 '11 at 15:49
-
yeah Jeremy...that's exactly where i have the file – Sripaul May 13 '11 at 16:41
-
That's where I have it too, are you looking inside the ear file itself, or inside the embedded ejb jar file? – mezmo May 17 '11 at 16:51
1 Answers
6
You can add you file persistence.xml under \src\Main\application\META-INF, then the file will be added under your META-INF folder of your ear.
Regards,

Rayouma
- 152
- 2
- 9