[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.dali] Re: JPA implementation library warning

Leonard Theivendra wrote:

Hi, when a JPA facet enabled project is created targeting a runtime with the necessary JPA runtime libs, this warning always appears:

"The JPA facet requires a JPA implementation library to be present on the project classpath. By disabling library configuration, the user takes on the responsibility of ensuring that the classpath is configured appropriately via alternate means"

Not sure if this is a bug since a runtime with appropriate libs is already targetted?

If not, is there any way to turn this off in adopter code? i.e. for a project using a non-generic adopter specific platform, and a runtime that has the appropriate libs, it would be best if this warning didn't show up at all.

If your runtime provides libraries for a JPA facet, then there should be another option: "Runtime Library Provider" among the list of library options. Selecting this option will allow automatic classpath configuration if you remove (or change, eventually) the JPA facet from your project, and helps to minimize libraries brought in to your eclipse workspace. According to the warning above, you've selected to "Disable Library Configuration", and we feel that this is an appropriately severe warning for users in that case. Users in this case will probably need to actively maintain their classpaths in order to retain full Dali functionality.


It's possible that your runtime does not return libraries specifically for a JPA facet, even though it contains JPA libraries. If so, this is most likely a deficiency in that particular runtime definition. See the org.eclipse.wst.common.project.facet.core.runtimes extension point (adapter element) for more details on this.

- Paul