Monday, December 19, 2022

Re: java.lang.ClassNotFoundException: javax.sql.DataSource when using GWT 2.9.0 + Java 11 combination

Overriding JettyLauncher with  "javax.sql." on the "allowedFromSystemClassLoader" variable has worked for me on a variety of projects, using SuperDevMode + GWT 2.9.0 + JDK 11

I hope a future version of GWT will make use of a Jetty version supporting a more elegant way to override the "allowedFromSystemClassLoader" variable.

On Friday, 1 July 2022 at 20:32:18 UTC+1 nam...@gmail.com wrote:
Hello all

I use legacy dev mode with a old FF17 with succes on GWT 2.10 / jdk 11. I had to overide JettyLauncher class to add "javax.sql." on the "allowedFromSystemClassLoader" variable
Until now, I have no issue with this mode except this.

Le jeu. 30 juin 2022 à 09:30, Thomas Broyer <t.br...@gmail.com> a écrit :
Didn't legacy devmode also only work with JDK 8?

On Wednesday, June 29, 2022 at 10:46:30 PM UTC+2 Jens wrote:
Without being able to see the project setup this is tough to answer.

However regardless of the exception you are seeing: Classic/Legacy DevMode will not work with GWT 2.9.0 correctly, because GWT 2.9.0 already uses JsInterop internally in its Java SDK emulation (e.g. java.util.Date uses it). JsInterop is not supported by classic/legacy DevMode. With GWT 2.9.0 you have to use SuperDevMode to have a functional Java SDK emulation during development.

-- J.

abhiy...@gmail.com schrieb am Mittwoch, 29. Juni 2022 um 21:58:40 UTC+2:
Hi Team,

I am trying to start classic DEV mode in eclipse through GWT eclipse plugin .
I am using GWT 2.9.0 + Java 11 combination.
I am getting below error. Can you help me in resolving the below error:

[b]Caused by: java.lang.ClassNotFoundException: javax.sql.DataSource
        at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:478) ~[gwt-dev-2.9.0.jar:?]
        at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) 

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/6d3569b5-b7f0-4c2e-918c-c342b6803441n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/ca2662bc-f0ba-48f2-bd14-e673dd882ccdn%40googlegroups.com.

No comments:

Post a Comment