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

Summary: Eclipselink 2.6.3 Add Module Dependency
Product: javaee Reporter: gaurav_gupta
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description gaurav_gupta 2016-06-06 08:12:34 UTC
Hi there,
I am author of JPA Modeler
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:

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 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

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 

delete everything under the above directory and restart your server.