Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » duplicate persistence classes in classpath (eclipselink vs jakarta.persistence jars)
duplicate persistence classes in classpath [message #1849502] Fri, 21 January 2022 20:39 Go to next message
Dave Brosius is currently offline Dave BrosiusFriend
Messages: 36
Registered: July 2009
Member
Greetings,

As my application includes

eclipselink 2.7.10
jakarta.persistence 2.2.3

Jetty dumps tons and tons of warnings about duplicate classes, such as

javax.persistence.Access scanned from multiple locations: jar:file:///tmp/jetty-0_0_0_0-8080-acmems_war-_acmems-any-6763641951174072661/webapp/WEB-INF/lib/eclipselink.jar!/javax/persistence/Access.class, jar:file:///tmp/jetty-0_0_0_0-8080-acmems_war-_acmems-any-6763641951174072661/webapp/WEB-INF/lib/jakarta.persistence.jar!/javax/persistence/Access.class

Which begs the question, if eclipselink depends on jakarta.persistence, why does eclipselink have all these classes defined in eclipselink when they are in jakarta.persistence?

Shouldn't these classes be removed from eclipselink?

There are ~70 classes that spam the logs every time it starts.



[Updated on: Fri, 21 January 2022 20:40]

Report message to a moderator

Re: duplicate persistence classes in classpath [message #1849545 is a reply to message #1849502] Mon, 24 January 2022 13:34 Go to previous message
Radek Felcman is currently offline Radek FelcmanFriend
Messages: 22
Registered: March 2021
Junior Member
See my response in https://github.com/eclipse-ee4j/eclipselink/issues/1406
Previous Topic:Is there any guide for migration from 2.7.9 to 3.0.x?
Next Topic:Persistence Units definitions are conflicting?
Goto Forum:
  


Current Time: Fri Dec 27 03:15:33 GMT 2024

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

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

Back to the top