Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Migration from Eclipselink 3.0.2 to 4.0.0(java.lang.NoClassDefFoundError JsonPlatform)
Migration from Eclipselink 3.0.2 to 4.0.0 [message #1857258] Thu, 26 January 2023 20:31 Go to next message
Ariel Secreto is currently offline Ariel SecretoFriend
Messages: 1
Registered: January 2023
Junior Member
I updated the EclipseLink libraries from version 3.0.2 to 4.0.0 in a Java project with MySQL.
When trying to connect to the database I get this error:

java.lang.NoClassDefFoundError: org/eclipse/persistence/json/JsonPlatform

What archive jar is this class in? Why can't the compiler find it? Thank you.
Re: Migration from Eclipselink 3.0.2 to 4.0.0 [message #1857268 is a reply to message #1857258] Fri, 27 January 2023 09:25 Go to previous message
Radek Felcman is currently offline Radek FelcmanFriend
Messages: 16
Registered: March 2021
Junior Member
Hello,
org.eclipse.persistence.json.JsonPlatform
is new class introduced by
https://github.com/eclipse-ee4j/eclipselink/pull/1389 into EclipseLink 4.x version.
It's available in following artifact:
org.eclipse.persistence:org.eclipse.persistence.json:4.0.0
https://search.maven.org/artifact/org.eclipse.persistence/org.eclipse.persistence.json/4.0.0/jar

About mentioned error:
java.lang.NoClassDefFoundError: org/eclipse/persistence/json/JsonPlatform

I'd like now:
1. Full error stack which leads into this exception
2. Your dependencies. Classpath | Modulepath and list of EclipseLink dependencies
3. Platform class, if specified in the
persistence.xml
file
Previous Topic:Eclipselink 2.6.9 - Select statements in Logs
Next Topic:Find managed entities in PersistenceContext
Goto Forum:
  


Current Time: Fri Mar 01 05:50:23 GMT 2024

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

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

Back to the top