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

Bug 316974

Summary: [EclipseLink] Library validation incorrect for EL 1.1.x (Default) platform
Product: [WebTools] Dali JPA Tools Reporter: Neil Hauge <neil.hauge>
Component: GeneralAssignee: Paul Fullbright <paul.fullbright>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: jolene.moffitt
Version: 2.3Flags: neil.hauge: review+
Target Milestone: 2.3.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch none

Description Neil Hauge CLA 2010-06-15 16:50:05 EDT
The following applies only to JPA project creation after having already created a JPA project in a given workspace.  The problem does not occur on the first project created, and the first project may need to be a 1.1.x project.

During project creation, library validation reports that the EL 1.1.x library is invalid for the EL 1.1.x platform.  The following is displayed: "Selected libraries do not include all required JPA annotation classes." 

The Finish button is disabled, preventing project creation at this point.  Workarounds are to select a different platform and come back to the 1.1.x platform, or disable library configuration.

Using any EL 1.1 library should produce this results.  A 2.x library will not cause this error status.
Comment 1 Paul Fullbright CLA 2010-06-15 17:52:32 EDT
Looks like this is because when creating a 1.1 project for the second time, one must first select the facet version to be 1.0, which does not fire a data model event that the default platform has changed.  The library validator is still using validation for the default platform for JPA 2.0.
Comment 2 Paul Fullbright CLA 2010-06-15 18:27:13 EDT
Created attachment 172003 [details]
patch

Refreshed the library provider enablement variable when the default platform changes when the facet version changes.  Bizarro bug.
Comment 3 Paul Fullbright CLA 2010-06-28 10:19:37 EDT
committed to head
Comment 4 Jolene Moffitt CLA 2010-07-19 12:15:02 EDT
Verified in wtp-R33.2.1M-20100716070539, which contains Dali 2.3 maintenance release.  Verified that different scenarios of creating 1.1 projects do not give erroneous errors and the finish button is enabled.