This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262342 - Eclipselink 2.6.3 Add Module Dependency
Summary: Eclipselink 2.6.3 Add Module Dependency
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.2
Hardware: All All
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-06 08:12 UTC by gaurav_gupta
Modified: 2017-07-08 23:45 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gaurav_gupta 2016-06-06 08:12:34 UTC
Hi there,
I am author of JPA Modeler http://jpamodeler.github.io/.
This plugin have DB Modeler module which require Eclipselink 2.5+ dependency.

but NetBeans provide support for eclipselink v2.1.0 which have following libs:
8.0.2/java/modules/ext/eclipselink/eclipselink.jar
8.0.2/java/modules/ext/eclipselink/javax.persistence_2.1.0.v201304241213.jar
8.0.2/java/modules/ext/eclipselink/org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar
8.0.2/java/modules/org-netbeans-modules-j2ee-eclipselink.jar


JPA Modeler provides support for JPA 2.1 code generation so We have to add one wrapper library of eclipselink v2.6.3.

So in future release of NetBeans IDE, Please provide the support for Eclipselink v2.6.3 https://www.eclipse.org/eclipselink/downloads/ in module dependency
Comment 1 Tomas Hurka 2016-06-06 08:46:27 UTC
This has nothing to do with module system.
Comment 2 qualebs 2017-07-08 23:45:17 UTC
Like it has been said before, installing the most recent version of EclipseLink is nothing more than just deleting the old jar libs in ~/glassfish-version/glassfish/modules/

stop your glassfish server first and replace delete the following jars

1.  javax.persistence.jar
2.  org.eclipse.persistence.antlr.jar
3.  org.eclipse.persistence.asm.jar
4.  org.eclipse.persistence.core.jar
5.  org.eclipse.persistence.dbws.jar
6.  org.eclipse.persistence.jpa.jar
7.  org.eclipse.persistence.jpa.jpql.jar
8.  org.eclipse.persistence.jpa.modelgen.processor.jar
9.  org.eclipse.persistence.moxy.jar
10. org.eclipse.persistence.oracle.jar

and replacing with the following libraries which can be found in the extracted osgi bundle downloaded from the eclipse link official download page

1.  javax.persistence_2.1.1.v201509150925.jar
2.  org.eclipse.persistence.antlr_3.2.0.v201302191141.jar
3.  org.eclipse.persistence.asm_5.0.1.v201405080102.jar
4.  org.eclipse.persistence.core_2.6.4.v20160829-44060b6.jar
5.  org.eclipse.persistence.dbws_2.6.4.v20160829-44060b6.jar
6.  org.eclipse.persistence.jpa.jpql_2.6.4.v20160829-44060b6.jar
7.  org.eclipse.persistence.jpa.modelgen_2.6.4.v20160829-44060b6.jar
8.  org.eclipse.persistence.jpa_2.6.4.v20160829-44060b6.jar
9.  org.eclipse.persistence.moxy_2.6.4.v20160829-44060b6.jar
10. org.eclipse.persistence.oracle_2.6.4.v20160601-7b1aa14.jar

then don't forget to clean your osgi-cache found in 
~/glassfish-version/glassfish/domains/domai1-or-your-domain-name/osgi-cache/felix

delete everything under the above directory and restart your server.