The entry in the classpath eclipse.fproj.jdt.libprov.osgi / jpt.jpa is marked for publication / export, but is not exported to the project class path

I am trying to create a new Enterprise Application Project created in Eclipse using Glassfish as my application server and I see the following warning:

The classpath element eclipse.fproj.jdt.libprov.osgi / jpt.jpa is marked for publication / export but is not exported to the project class path. Classpath visibility in Eclipse and at runtime will be different.

I have the Java Persistence 1.0 facet enabled in my EJB project, and I'm sure this is what causes my problems. I searched a lot, but to no avail.

+3
source share
1 answer

I decided. I was marked as a Java EE dependency, but I did not select it for export. In the project properties window, I switched to Java Build Path> Order and Export and placed a check next to the entry for EclipseLink 1.1.x.

+9
source

Source: https://habr.com/ru/post/1735766/


All Articles