Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » How should static weaving be done in EclipseLink recent versions like 4.0.0(EclipseLink)
How should static weaving be done in EclipseLink recent versions like 4.0.0 [message #1864513] Wed, 20 March 2024 17:13 Go to next message
Alok Kumar is currently offline Alok KumarFriend
Messages: 2
Registered: March 2024
Junior Member
Hello my project uses EclipseLink as Jpa provider. My objective is to now use Java 17 and EclipseLink 4.0.0 but here I am getting an error class file for org.eclipse.persistence.internal.weaving.PersistenceWeavedRest not found

I tried looking into
1. https://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static_Weaving and
2. https://github.com/empulse-gmbh/eclipselink-static-weave-plugin

which says this way is for Java 8 and EclipseLink 2.5.1 Moreover it uses a plug in

<groupId>de.empulse.eclipselink</groupId>
<artifactId>staticweave-maven-plugin</artifactId>
<version>1.0.0</version>
which is of 10 years ago and no updates. My project works fine with these versions but I have a requirement to upgrade to newer versions. So how should I proceed. How should I do the static weaving. Please help.
Re: How should static weaving be done in EclipseLink recent versions like 4.0.0 [message #1864529 is a reply to message #1864513] Thu, 21 March 2024 18:56 Go to previous messageGo to next message
Radek Felcman is currently offline Radek FelcmanFriend
Messages: 22
Registered: March 2021
Junior Member
See https://github.com/eclipse-ee4j/eclipselink/blob/4.0/jpa/eclipselink.jpa.test.jse/pom.xml
Re: How should static weaving be done in EclipseLink recent versions like 4.0.0 [message #1864538 is a reply to message #1864529] Fri, 22 March 2024 05:16 Go to previous messageGo to next message
Alok Kumar is currently offline Alok KumarFriend
Messages: 2
Registered: March 2024
Junior Member
Hello Thanks for the reply. This also uses <groupId>de.empulse.eclipselink</groupId>
<artifactId>staticweave-maven-plugin</artifactId>

is it still usable in Java 17 and EclipseLink 4.0.0 Also has EclipseLink removed org.eclipse.persistence.internal.weaving.PersistenceWeavedRest because this is the error I am getting that this class file is not found. When I try to see in older version, I find this Class but not in the latest version of EclipseLink. Do we have any alternative
Re: How should static weaving be done in EclipseLink recent versions like 4.0.0 [message #1868823 is a reply to message #1864538] Tue, 23 July 2024 08:21 Go to previous message
Manfred Schmid is currently offline Manfred SchmidFriend
Messages: 3
Registered: July 2024
Junior Member
Hi Alok,
did you find a solution for your static weaving problem?

The reason why I'm asking is that we recently run into the same issue which a persistence unit where we use static weaving and eclipselink 4.0.3 in a Java 17 modularized environment.

And it looks like that the tagging interfaces

org.eclipse.persistence.internal.weaving.PersistenceWeaved;
org.eclipse.persistence.internal.weaving.PersistenceWeavedChangeTracking;
org.eclipse.persistence.internal.weaving.PersistenceWeavedFetchGroups;

and its corresponding package

org.eclipse.persistence.internal.weaving is not exported by the

org.eclipse.persistence.core module.

Best regards,
Manfred

Previous Topic:Java SE '21' is not fully supported yet
Next Topic:_persistence_checkFetchedForSet(java.lang.String)
Goto Forum:
  


Current Time: Wed Feb 05 08:49:11 GMT 2025

Powered by FUDForum. Page generated in 0.01972 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top