I would first focus on upgrading Java, GWT and possibly GXT if it is incompatible with newest GWT. The DataSource error will go away once you upgrade GWT because newer GWT versions use a newer Jetty. Keep in mind that in newest GWT the use of embedded Jetty as appliction server during development has been deprecated. It is preferred to use a local jetty installation, a docker container or launching jetty via a build tool plugin (maven / gradle).
Once you have upgraded to latest GWT you have the possibility to use GWT 2.11-jakarta if you need to switch to Jakarta. GWT itself only supports Hibernate 4 validation. So if the application uses Hibernate validation in GWT as well, then you likely need to use https://gitlab.com/ManfredTremmel/gwt-bean-validators -- J. Wejden Mrabti schrieb am Donnerstag, 25. April 2024 um 15:59:45 UTC+2: > Hello GWT Community, > > I'm currently working on a large legacy application stack, using Java 8, > Hibernate version 5.3.20.Final, and Hibernate Search 5.11.5.Final. Our > frontend technology stack includes GWT version 2.8.2 and GXT version > 2.3.1a-gwt22. Fontend and backend arent well de-coupled. > > In my initial approach to modernize the application, I began by migrating > Hibernate to version 6.2, assuming it would be the easiest step. However, I > encountered an issue where Hibernate 6.2 requires transitioning to Jakarta > Persistence. When attempting to compile parts of my codebase, I received > the following error: > > java.lang.UnsupportedClassVersionError: jakarta/persistence/Transient has > been compiled by a more recent version of the Java Runtime (class file > version 55.0), this version of the Java Runtime only recognizes class file > versions up to 52.0 > > This suggests that I need to execute my code with JDK 11. However, when > attempting to do so, I encountered the following issue: > > [ERROR] Found resouce but unrecognized URL format: > 'jrt:/java.sql/javax/sql/DataSource.class' java.lang.NoClassDefFoundError: > javax/sql/DataSource > > After reviewing your discussions in the GWT contributors group, I'm > questioning whether starting with the Hibernate migration is the right > approach. Should I instead prioritize migrating Java or perhaps GWT? I > would greatly appreciate your insights and advice based on your experiences. > > Thank you, > > WM > -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/d52d9aa6-5cc0-4f5b-be14-907bf758d2ecn%40googlegroups.com.