Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 202684

Summary: persistence.xml and orm.xml are generated in wrong location for web projects
Product: [WebTools] Dali JPA Tools Reporter: Paul Fullbright <paul.fullbright>
Component: GeneralAssignee: Paul Fullbright <paul.fullbright>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: david_williams, deboer, neil.hauge
Version: 1.0Flags: jlanuti: pmc_approved? (jgarms)
david_williams: pmc_approved+
jlanuti: pmc_approved? (raghunathan.srinivasan)
jlanuti: pmc_approved? (naci.dai)
deboer: pmc_approved+
jlanuti: pmc_approved? (neil.hauge)
Target Milestone: 1.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard: PMC_approved
Attachments:
Description Flags
proposed patch none

Description Paul Fullbright CLA 2007-09-07 15:23:22 EDT
Create a new dynamic web project with JPA enabled.  persistence.xml and orm.xml are generated in 
  /WebContent/META-INF/
instead of in
  /src/META-INF


This was caused by the fix to bug 192477
Comment 1 Paul Fullbright CLA 2007-09-07 15:43:39 EDT
Created attachment 77917 [details]
proposed patch

The proposed fix simply checks if the project has a web facet, and if so, the deploy path "WEB-INF/classes/META-INF/<file_name>" is used instead of "META-INF/<file_name>", which is used for all other types of projects.
Comment 2 Neil Hauge CLA 2007-09-07 15:58:00 EDT
Simple patch to correct regression from previous bug fix.  I approve.
Comment 3 Paul Fullbright CLA 2007-09-11 13:31:07 EDT
committed