Community
Participate
Working Groups
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.
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.
Created attachment 172003 [details] patch Refreshed the library provider enablement variable when the default platform changes when the facet version changes. Bizarro bug.
committed to head
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.