Saturday, September 24, 2022

Re: Errors when running "ant test"

I found out what the problem was. There were a few small diffs compared to the master/main branch, and those provoked severity="error" issues in the checkstyle run. I was confused by various other "error" items that also occur on the master/main branch, but issues only seem to let the build fail if the severity is "error" (which it isn't for any of the "error" items on the master/main branch).

On Wednesday, September 21, 2022 at 1:07:13 PM UTC+2 Axel wrote:
I'm trying to build GWT locally from sources (c32238861c4d58bc559d303ab44f91ddd4e10685). https://www.gwtproject.org/makinggwtbetter.html#testing suggests to run "ant" and "ant test". When I do, I'm seeing error messages in the XML file produced, such as

<file name="/usr/local/src/gwt/trunk/user/super/com/google/gwt/emul/java/util/concurrent/TimeUnit.java">
<error line="21" column="35" severity="warning" message="&apos;{&apos; should have line break after." source="com.puppycrawl.tools.checkstyle.checks.blocks.LeftCurlyCheck"/>

or

<file name="/usr/local/src/gwt/trunk/user/super/com/google/gwt/emul/java/util/function/BinaryOperator.java">
<error line="20" severity="warning" message="Import statement is in the wrong order. Should be in the &apos;STATIC&apos; group." source="com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck"/>

or

<file name="/usr/local/src/gwt/trunk/user/super/com/google/gwt/emul/java/util/logging/Logger.java">
<error line="334" severity="warning" message="Line is longer than 100 characters (found 105)." source="com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck"/>

The ant command then fails as follows:

checkstyle-source:
[checkstyle] Running Checkstyle 6.0 on 6159 files

BUILD FAILED
/usr/local/src/gwt/trunk/build.xml:119: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/build.xml:27: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/build.xml:70: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/user/build.xml:209: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/common.ant.xml:361: Checkstyle errors exist, and are reported at /usr/local/src/gwt/trunk/build/out/user/checkstyle_log.xml

Is this to be expected, or did I make some mistake during cloning or building? I haven't modified those files in which style errors are flagged.

--
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/c3907929-cfbb-48f8-b4e2-c07a45bbff69n%40googlegroups.com.

Wednesday, September 21, 2022

Re: App Server for GWT 2.10

There is the jakarta migration utility. Supposed to convert wars from javax.* to jakarta.* for deployment. Tomcat also has a special deployment option for such.

Another approach to consider, depending on your needs, is spring boot run, maybe inside a docker container.


On Wed, Sep 21, 2022 at 11:16 AM Valavanur Man <mramadoss@gmail.com> wrote:
Thanks. We had problems due to jakarta.servlet with Glassfish 6.0 when we attempted to migrate. 
So was looking for a good replacement preferably open source.  Was thinking Payara, but if it goes jakarta route, we will have the same issue in the future.  Any suggestions?

On Wednesday, September 21, 2022 at 4:34:01 AM UTC-7 Jens wrote:
If you use GWT-RPC or RequestFactory you need to choose a servlet container that still uses javax.servlet instead of jakarta.servlet because both these GWT features have a servlet component using javax.servlet.

Other than that, you can choose whatever you want.

-- J.

Valavanur Man schrieb am Dienstag, 20. September 2022 um 17:59:48 UTC+2:
Hi,

We are running GWT 2.8 with Glassfish4.  We had issues trying to run the GWT (2.8) App in Glassfish 6.

Currently we are looking into upgrading to GWT 2.10. Would like you know what appservers are supported to run GWT 2.10 (even GWT 2.8 and beyond). Is there a recommended set of servers?

Appreciate any pointers.

Thanks,

--
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/6a0dbe21-60fc-4dd7-a071-ce021d09155fn%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/CAFHWztxr-dNwVnoYBKzPobg7vHFu4h80Xj3YJ6jo95OZ5H%3D3Fw%40mail.gmail.com.

Re: App Server for GWT 2.10

Thanks. We had problems due to jakarta.servlet with Glassfish 6.0 when we attempted to migrate. 
So was looking for a good replacement preferably open source.  Was thinking Payara, but if it goes jakarta route, we will have the same issue in the future.  Any suggestions?

On Wednesday, September 21, 2022 at 4:34:01 AM UTC-7 Jens wrote:
If you use GWT-RPC or RequestFactory you need to choose a servlet container that still uses javax.servlet instead of jakarta.servlet because both these GWT features have a servlet component using javax.servlet.

Other than that, you can choose whatever you want.

-- J.

Valavanur Man schrieb am Dienstag, 20. September 2022 um 17:59:48 UTC+2:
Hi,

We are running GWT 2.8 with Glassfish4.  We had issues trying to run the GWT (2.8) App in Glassfish 6.

Currently we are looking into upgrading to GWT 2.10. Would like you know what appservers are supported to run GWT 2.10 (even GWT 2.8 and beyond). Is there a recommended set of servers?

Appreciate any pointers.

Thanks,

--
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/6a0dbe21-60fc-4dd7-a071-ce021d09155fn%40googlegroups.com.

Re: App Server for GWT 2.10

If you use GWT-RPC or RequestFactory you need to choose a servlet container that still uses javax.servlet instead of jakarta.servlet because both these GWT features have a servlet component using javax.servlet.

Other than that, you can choose whatever you want.

-- J.

Valavanur Man schrieb am Dienstag, 20. September 2022 um 17:59:48 UTC+2:
Hi,

We are running GWT 2.8 with Glassfish4.  We had issues trying to run the GWT (2.8) App in Glassfish 6.

Currently we are looking into upgrading to GWT 2.10. Would like you know what appservers are supported to run GWT 2.10 (even GWT 2.8 and beyond). Is there a recommended set of servers?

Appreciate any pointers.

Thanks,

--
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/49aae5bd-2410-4199-95a1-e7a76b546ffan%40googlegroups.com.

Errors when running "ant test"

I'm trying to build GWT locally from sources (c32238861c4d58bc559d303ab44f91ddd4e10685). https://www.gwtproject.org/makinggwtbetter.html#testing suggests to run "ant" and "ant test". When I do, I'm seeing error messages in the XML file produced, such as

<file name="/usr/local/src/gwt/trunk/user/super/com/google/gwt/emul/java/util/concurrent/TimeUnit.java">
<error line="21" column="35" severity="warning" message="&apos;{&apos; should have line break after." source="com.puppycrawl.tools.checkstyle.checks.blocks.LeftCurlyCheck"/>

or

<file name="/usr/local/src/gwt/trunk/user/super/com/google/gwt/emul/java/util/function/BinaryOperator.java">
<error line="20" severity="warning" message="Import statement is in the wrong order. Should be in the &apos;STATIC&apos; group." source="com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck"/>

or

<file name="/usr/local/src/gwt/trunk/user/super/com/google/gwt/emul/java/util/logging/Logger.java">
<error line="334" severity="warning" message="Line is longer than 100 characters (found 105)." source="com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck"/>

The ant command then fails as follows:

checkstyle-source:
[checkstyle] Running Checkstyle 6.0 on 6159 files

BUILD FAILED
/usr/local/src/gwt/trunk/build.xml:119: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/build.xml:27: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/build.xml:70: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/user/build.xml:209: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/common.ant.xml:361: Checkstyle errors exist, and are reported at /usr/local/src/gwt/trunk/build/out/user/checkstyle_log.xml

Is this to be expected, or did I make some mistake during cloning or building? I haven't modified those files in which style errors are flagged.

--
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/9cbf94bb-de1b-4379-bd4f-ca5b511aba9en%40googlegroups.com.

Tuesday, September 20, 2022

Re: App Server for GWT 2.10

Hi! 
GWT has no dependencies to any app server. Just use your preferred one (and look into your own code if you experience issues ;-))
Bon courage
Ralph 

Valavanur Man <mramadoss@gmail.com> schrieb am Di. 20. Sept. 2022 um 17:59:
Hi,

We are running GWT 2.8 with Glassfish4.  We had issues trying to run the GWT (2.8) App in Glassfish 6.

Currently we are looking into upgrading to GWT 2.10. Would like you know what appservers are supported to run GWT 2.10 (even GWT 2.8 and beyond). Is there a recommended set of servers?

Appreciate any pointers.

Thanks,

--
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/79044338-e2e5-4271-8f42-558aeb7c5481n%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/CACwwWxOFrVLCKA%2BnroN-REp%3DuzcLXJ0mYryfcsBEDxrt79WK-w%40mail.gmail.com.

App Server for GWT 2.10

Hi,

We are running GWT 2.8 with Glassfish4.  We had issues trying to run the GWT (2.8) App in Glassfish 6.

Currently we are looking into upgrading to GWT 2.10. Would like you know what appservers are supported to run GWT 2.10 (even GWT 2.8 and beyond). Is there a recommended set of servers?

Appreciate any pointers.

Thanks,

--
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/79044338-e2e5-4271-8f42-558aeb7c5481n%40googlegroups.com.

Friday, September 16, 2022

Re: GWT 2.10.0 release

Thank you. Greatly appreciate the update and all the work.

Cheers,
mark...

On Thursday, June 23, 2022 at 12:16:50 PM UTC-4 nilo...@gmail.com wrote:
I'm very happy to announce the release of GWT 2.10.0. This is the first release using our new groupId, org.gwtproject, and the final release using com.google.gwt. If you resolve dependencies from Maven Central, please be certain that your project is using com.google.gwt:gwt (or org.gwtproject:gwt) as a BOM, so that you are certain to have consistent versions of gwt-user and gwt-dev, even across groupIds.

For this release, either groupId will work, but future releases will only be made on the org.gwtproject groupId.


--


Highlights
  • Updated to HtmlUnit 2.55.0 and Jetty 9.4.44. With this newer HtmlUnit build comes support for Promise in unit tests, and the browser strings that can be specified when running tests are "FF", "Chrome", "IE" (for IE11), "Edge", and "Safari".

  • Tested support for running on Java 17, dropped remaining support for running on Java 7.

  • Maven groupId is formally changed to org.gwtproject, projects should take care to make sure they are using either the old com.google.gwt:gwt BOM or the new org.gwtproject:gwt BOM to sure that Maven or Gradle correctly handle this change. This will be the last published version using the com.google.gwt groupId.

  • Dropped support for IE 8, 9, and 10.

Bug fixes
  • Correct Long.hashCode semantics
  • Support CLASSPATH environment variable when creating child processes, fixing a bug where Windows could fail with a long list of arguments.
  • Use Function.name instead of displayName to support visible method names in Chrome 93+.
  • Allow stack traces to be available in Chrome when loading scripts from a remote origin.
JRE Emulation
  • Added OutputStreamWriter emulation.
  • Support StringReader mark() and reset() methods.
  • Added StrictMath emulation.
  • Added BufferedWriter emulation.
  • Added incomplete PrintStream emulation.
  • Add Charset.defaultCharset() emulation.
  • Improve BigInteger emulated performance.
  • System.nanoTime() emulation with performance.now().
  • Added Optional.isEmpty emulation.
  • JRE Emulation improvements/simplifications to facilitate J2CL's WASM support. Note that these do not always offer specific improvements to GWT itself, but helps to keep the codebases consistent.
Miscellaneous
  • Add support to compile GWT itself in Java 9+.
  • Improve compiled code size for applications that never use streams, by avoiding referencing streams from Throwable.

For more detail, see the commit log.

--
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/8372d65a-8ce1-49f7-be92-dc85c7f450f2n%40googlegroups.com.

Re: Add containers in NorthEast, NorthWest and Center section of BorderLayoutContainer

Unless you want to create something based on css flex-layout and uibinder yourself, it's probably the easiest to combine 3 DockLayoutPanels (1 for NE, E and SE, one for the center N and S, and finally one for the western parts. 

Abhishek Yadav <abhiyadav18@gmail.com> schrieb am Do. 15. Sept. 2022 um 23:13:
Hi,

Anybody has an idea about how to add containers in the northeast , northwest and center section in north part of the BorderLayoutContainer.

--
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/0f3f89e3-b419-4318-8151-5494d8f44f99n%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/CACwwWxPk5r%3DLe0FK6i%2BdktrMqGjxJRCE%2BTAwJz3zbCvn7%2B2K0g%40mail.gmail.com.

Re: Add containers in NorthEast, NorthWest and Center section of BorderLayoutContainer

There's no such thing as a BorderLayoutContainer in GWT proper (https://www.gwtproject.org/javadoc/latest/)
Which library (in which version, it sometimes matter) are you using?
(note: don't expect an answer from myself then, I never used any third-party widget library)

On Thursday, September 15, 2022 at 11:13:15 PM UTC+2 abhiy...@gmail.com wrote:
Hi,

Anybody has an idea about how to add containers in the northeast , northwest and center section in north part of the BorderLayoutContainer.

--
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/2eb917f2-ef32-4b46-921a-b05dd42ec6e2n%40googlegroups.com.

Thursday, September 15, 2022

Add containers in NorthEast, NorthWest and Center section of BorderLayoutContainer

Hi,

Anybody has an idea about how to add containers in the northeast , northwest and center section in north part of the BorderLayoutContainer.

--
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/0f3f89e3-b419-4318-8151-5494d8f44f99n%40googlegroups.com.

Wednesday, September 14, 2022

Re: GWT 2.10.0 release

That's great to know.

--
Kind Regards,
Sam Bill | Marketing Consultant
www.referdiscounts.com

On Friday, July 15, 2022 at 7:22:30 PM UTC+5:30 stock...@gmail.com wrote:
Great!
Thank you Colin and everyone.

Il giorno venerdì 15 luglio 2022 alle 10:30:30 UTC+2 abhiy...@gmail.com ha scritto:
Hi Priya,

GWT 2.10 has dropped support for  IE 8, 9, and 10. So it will not work unless you modify the Sencha GXT 2.3.1.a.jar

On Thursday, July 14, 2022 at 5:24:08 PM UTC+5:30 priyako...@gmail.com wrote:
Hello All,
Good to see that new version of GWT coming with new features!!!
Is the new 2.10.0 GWT version compatible with Sencha GXT 2.3.1.a ? 
Will appreciate an early reply! 

On Sat, Jul 2, 2022 at 1:40 AM Mihail Krastev <mkras...@gmail.com> wrote:
Really good job, thanks to everyone involved!

On Thursday, June 23, 2022 at 7:16:50 PM UTC+3 nilo...@gmail.com wrote:
I'm very happy to announce the release of GWT 2.10.0. This is the first release using our new groupId, org.gwtproject, and the final release using com.google.gwt. If you resolve dependencies from Maven Central, please be certain that your project is using com.google.gwt:gwt (or org.gwtproject:gwt) as a BOM, so that you are certain to have consistent versions of gwt-user and gwt-dev, even across groupIds.

For this release, either groupId will work, but future releases will only be made on the org.gwtproject groupId.


--


Highlights
  • Updated to HtmlUnit 2.55.0 and Jetty 9.4.44. With this newer HtmlUnit build comes support for Promise in unit tests, and the browser strings that can be specified when running tests are "FF", "Chrome", "IE" (for IE11), "Edge", and "Safari".

  • Tested support for running on Java 17, dropped remaining support for running on Java 7.

  • Maven groupId is formally changed to org.gwtproject, projects should take care to make sure they are using either the old com.google.gwt:gwt BOM or the new org.gwtproject:gwt BOM to sure that Maven or Gradle correctly handle this change. This will be the last published version using the com.google.gwt groupId.

  • Dropped support for IE 8, 9, and 10.

Bug fixes
  • Correct Long.hashCode semantics
  • Support CLASSPATH environment variable when creating child processes, fixing a bug where Windows could fail with a long list of arguments.
  • Use Function.name instead of displayName to support visible method names in Chrome 93+.
  • Allow stack traces to be available in Chrome when loading scripts from a remote origin.
JRE Emulation
  • Added OutputStreamWriter emulation.
  • Support StringReader mark() and reset() methods.
  • Added StrictMath emulation.
  • Added BufferedWriter emulation.
  • Added incomplete PrintStream emulation.
  • Add Charset.defaultCharset() emulation.
  • Improve BigInteger emulated performance.
  • System.nanoTime() emulation with performance.now().
  • Added Optional.isEmpty emulation.
  • JRE Emulation improvements/simplifications to facilitate J2CL's WASM support. Note that these do not always offer specific improvements to GWT itself, but helps to keep the codebases consistent.
Miscellaneous
  • Add support to compile GWT itself in Java 9+.
  • Improve compiled code size for applications that never use streams, by avoiding referencing streams from Throwable.

For more detail, see the commit log.

--
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/af5e74c8-4f62-46d2-a29a-f28203555e32n%40googlegroups.com.


--
Life is Beautiful..........
Keep Smiling!!!!!!!!
Priya......

--
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/3d6fb018-c64f-47da-9698-bfd3fafe3b31n%40googlegroups.com.

Tuesday, September 13, 2022

The Plugin for Eclipse Cannot be reached


The Plugin for Eclipse Cannot  be reached , 
How can i fix it ?
Capturar.PNGCapturar2.PNG

--
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/86a0d471-6dcf-4639-a4b2-15eb992ddc9fn%40googlegroups.com.

Re: GWT 2.10.0 DTD

It's also included in the GWT SDK:

<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.10.0//EN" "file:///C:/mydir/gwt-2.10.0/gwt-module.dtd">


On Friday, 9 September 2022 at 5:26:53 am UTC+10 lofid...@gmail.com wrote:
You're right, GWT Project updates with https now but still I also cannot download it:

https://gwtproject.org/doctype/2.10.0/gwt-module.dtd

But I never use it, or do you really need it?
Sara Youssef schrieb am Donnerstag, 8. September 2022 um 13:25:43 UTC+2:
I can't access GWT 2.10.0 DTD from http://gwtproject.org/doctype/2.10.0/gwt-module.dtd
So is there any reason that DTD isn't uploaded to gwt website till now although the source repository has a version of it or it's uploaded to a different server?

--
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/4009cf3c-d2b8-4f8d-94a4-7b5b18fb3963n%40googlegroups.com.

Monday, September 12, 2022

Re: Keyboard Accessibility: while tabbing the first element in celltable gets focus

Thank you that worked!

On Friday, September 9, 2022 at 12:38:30 PM UTC-4 t.br...@gmail.com wrote:
What kind of Cell is this? Can you show part of the code that sets up the table?
Did you set KeyboardSelectionPolicy to DISABLED?

On Friday, September 9, 2022 at 6:09:14 PM UTC+2 nidhi....@gmail.com wrote:
I am working on adding keyboard accessibility to my application. When tabbing from on e widget to another if there is a celltable, it is included in the tabbing sequence. The cell table in not editable, still it gets into tabbing sequence. How do I remove the cell table from tabbing sequence? Is this known issue? Wondering if there are any work arounds? Any help will be appreciated. 

--
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/aa90713f-af30-4e7c-b8cf-e22296ab17b6n%40googlegroups.com.

Sunday, September 11, 2022

Re: Wrapping Javascript library (chart.js) using JSInterop

Why don't you use Charba? https://github.com/pepstock-org/Charba

Charba is providing the wrapper of Chart.js for GWT and J2CL.

Il giorno domenica 11 settembre 2022 alle 14:53:25 UTC+2 manassriv...@gmail.com ha scritto:
I have added a pom.xml file in the project attached below while running the command - mvn clean install I got an error - Compiling module com.jsinteropdemo.JSInteropDemo
[INFO]    [ERROR] Module has no entry points defined
Also attaching the screenshot of my project folder and default .XML file
On Sunday, September 11, 2022 at 5:59:36 PM UTC+5:30 m.conr...@gmail.com wrote:
Check your dependencies. That is an add-on library which must be included explicitly.

On Sun, Sep 11, 2022 at 5:10 AM Manas <manassriv...@gmail.com> wrote:
Hi All,

Good Day!

I'm new in GWT and I'm going through documentation and JSInterop. I'm facing issues with implementing chart.js using JSInterop. Can anyone guide me on how to resolve and keep things working? I am facing an error - "The import elemental2 cannot be resolved"

code is - 
package chartjs;

import elemental2.dom.HTMLCanvasElement; => facing error on this line
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class Chart {

    public Chart(HTMLCanvasElement canvasElement, ChartConfiguration configuration) {
    }
}

--
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/d85e1313-7a55-482f-b712-022cf6fef5acn%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/0b0ae3fa-2622-4762-b1e5-ec49bceca637n%40googlegroups.com.

Re: Wrapping Javascript library (chart.js) using JSInterop

<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>com.jsinteropdemo</groupId>
<artifactId>jsinterop-demo</artifactId>
<packaging>gwt-app</packaging>
<version>0.1</version>

<properties>
<gwtVersion>2.8.1</gwtVersion>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwtVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.elemental2</groupId>
<artifactId>elemental2-core</artifactId>
<version>1.0.0-RC1</version>
</dependency>
<dependency>
<groupId>com.google.elemental2</groupId>
<artifactId>elemental2-dom</artifactId>
<version>1.0.0-RC1</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0-rc-9</version>
<extensions>true</extensions>
<configuration>
<classpathScope>compile</classpathScope>
<moduleName>com.jsinteropdemo.JSInteropDemo</moduleName>
<moduleShortName>JSInteropDemo</moduleShortName>
<warDir>${project.build.directory}/${project.build.finalName}</warDir>
<devmodeWorkDir>${project.build.directory}/${project.build.finalName}</devmodeWorkDir>
<startupUrls>
<startupUrl>
JSInteropDemo.html
</startupUrl>
</startupUrls>
<compilerArgs>
<arg>-generateJsInteropExports</arg>
</compilerArgs>
<useCompilerArgsForTests>true</useCompilerArgsForTests>
<codeserverArgs>
<arg>-generateJsInteropExports</arg>
</codeserverArgs>
<devmodeArgs>
<arg>-generateJsInteropExports</arg>
</devmodeArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
<executions>
<execution>
<id>war</id>
<phase>compile</phase>
<goals>
<goal>war</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>I have added a pom.xml file in the project attached below while running the command - mvn clean install I got an error - Compiling module com.jsinteropdemo.JSInteropDemo
[INFO]    [ERROR] Module has no entry points defined
Also attaching the screenshot of my project folder and default .XML file
On Sunday, September 11, 2022 at 5:59:36 PM UTC+5:30 m.conr...@gmail.com wrote:
Check your dependencies. That is an add-on library which must be included explicitly.

On Sun, Sep 11, 2022 at 5:10 AM Manas <manassriv...@gmail.com> wrote:
Hi All,

Good Day!

I'm new in GWT and I'm going through documentation and JSInterop. I'm facing issues with implementing chart.js using JSInterop. Can anyone guide me on how to resolve and keep things working? I am facing an error - "The import elemental2 cannot be resolved"

code is - 
package chartjs;

import elemental2.dom.HTMLCanvasElement; => facing error on this line
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class Chart {

    public Chart(HTMLCanvasElement canvasElement, ChartConfiguration configuration) {
    }
}

--
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/d85e1313-7a55-482f-b712-022cf6fef5acn%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/a7614089-bbf2-4cfa-be07-827d2f8ca96dn%40googlegroups.com.

Re: Wrapping Javascript library (chart.js) using JSInterop

Check your dependencies. That is an add-on library which must be included explicitly.

On Sun, Sep 11, 2022 at 5:10 AM Manas <manassrivastavmfp11@gmail.com> wrote:
Hi All,

Good Day!

I'm new in GWT and I'm going through documentation and JSInterop. I'm facing issues with implementing chart.js using JSInterop. Can anyone guide me on how to resolve and keep things working? I am facing an error - "The import elemental2 cannot be resolved"

code is - 
package chartjs;

import elemental2.dom.HTMLCanvasElement; => facing error on this line
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class Chart {

    public Chart(HTMLCanvasElement canvasElement, ChartConfiguration configuration) {
    }
}

--
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/d85e1313-7a55-482f-b712-022cf6fef5acn%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/CAFHWztxJ175xA6fPd8k3%3DFNut7Lb1yQLsL5P1GbJUMLNte2PCQ%40mail.gmail.com.

Wrapping Javascript library (chart.js) using JSInterop

Hi All,

Good Day!

I'm new in GWT and I'm going through documentation and JSInterop. I'm facing issues with implementing chart.js using JSInterop. Can anyone guide me on how to resolve and keep things working? I am facing an error - "The import elemental2 cannot be resolved"

code is - 
package chartjs;

import elemental2.dom.HTMLCanvasElement; => facing error on this line
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class Chart {

    public Chart(HTMLCanvasElement canvasElement, ChartConfiguration configuration) {
    }
}

--
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/d85e1313-7a55-482f-b712-022cf6fef5acn%40googlegroups.com.

Friday, September 9, 2022

Re: Keyboard Accessibility: while tabbing the first element in celltable gets focus

What kind of Cell is this? Can you show part of the code that sets up the table?
Did you set KeyboardSelectionPolicy to DISABLED?

On Friday, September 9, 2022 at 6:09:14 PM UTC+2 nidhi....@gmail.com wrote:
I am working on adding keyboard accessibility to my application. When tabbing from on e widget to another if there is a celltable, it is included in the tabbing sequence. The cell table in not editable, still it gets into tabbing sequence. How do I remove the cell table from tabbing sequence? Is this known issue? Wondering if there are any work arounds? Any help will be appreciated. 

--
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/975a3ff7-39c5-4229-9f6a-1c9641a5a12dn%40googlegroups.com.

Keyboard Accessibility: while tabbing the first element in celltable gets focus

I am working on adding keyboard accessibility to my application. When tabbing from on e widget to another if there is a celltable, it is included in the tabbing sequence. The cell table in not editable, still it gets into tabbing sequence. How do I remove the cell table from tabbing sequence? Is this known issue? Wondering if there are any work arounds? Any help will be appreciated. 

--
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/b4ada7ac-c305-4fa0-bf07-cba66323f425n%40googlegroups.com.

Re: How to remove tabindex=0 from the cell table html

What kind of Cell is this? Can you show part of the code that sets up the table?
Did you set KeyboardSelectionPolicy to DISABLED?

On Friday, September 9, 2022 at 1:48:45 AM UTC+2 nidhi....@gmail.com wrote:
I am working on adding keyboard accessibility to my product. When I am tabbing from a widget say a button, outside of the cell table to the another button that is after the table my tabbing sequence includes the first element on the celltable into the sequence. This element is just a data and can not be edited. Due to the fact that html generated by GWT for cell table that include tabindex= 0  it is added in the tabbing sequence. 
<tr __gwt_row="0" __gwt_subrow="0" class="com-jenzabar-jx-ui-widgets-item-grid-JXCellTable-Style-cellTableEvenRow com-jenzabar-jx-ui-widgets-item-grid-JXCellTable-Style-cellTableHoveredRow">
<td class="com-jenzabar-jx-ui-widgets-item-grid-JXCellTable-Style-cellTableCell com-jenzabar-jx-ui-widgets-item-grid-JXCellTable-Style-cellTableEvenRowCell com-jenzabar-jx-ui-widgets-item-grid-JXCellTable-Style-cellTableFirstColumn dataGridCell textLeftAlignment wrapText com-jenzabar-jx-ui-widgets-item-grid-JXCellTable-Style-cellTableHoveredRowCell">
<div style="outline-style:none;" __gwt_cell="cell-gwt-uid-93" tabindex="0">10/06/2021</div>

My question is how to remove this tabindex. I tried setting tabindex to -1 but that does not affect the div tag tabindex value. Any help will be really appreciated. Thank you 

--
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/6f0aa62b-f9ad-4420-8088-eee90b79a0c8n%40googlegroups.com.

Thursday, September 8, 2022

How to remove tabindex=0 from the cell table html

I am working on adding keyboard accessibility to my product. When I am tabbing from a widget say a button, outside of the cell table to the another button that is after the table my tabbing sequence includes the first element on the celltable into the sequence. This element is just a data and can not be edited. Due to the fact that html generated by GWT for cell table that include tabindex= 0  it is added in the tabbing sequence. 
<tr __gwt_row="0" __gwt_subrow="0" class="com-jenzabar-jx-ui-widgets-item-grid-JXCellTable-Style-cellTableEvenRow com-jenzabar-jx-ui-widgets-item-grid-JXCellTable-Style-cellTableHoveredRow">
<td class="com-jenzabar-jx-ui-widgets-item-grid-JXCellTable-Style-cellTableCell com-jenzabar-jx-ui-widgets-item-grid-JXCellTable-Style-cellTableEvenRowCell com-jenzabar-jx-ui-widgets-item-grid-JXCellTable-Style-cellTableFirstColumn dataGridCell textLeftAlignment wrapText com-jenzabar-jx-ui-widgets-item-grid-JXCellTable-Style-cellTableHoveredRowCell">
<div style="outline-style:none;" __gwt_cell="cell-gwt-uid-93" tabindex="0">10/06/2021</div>

My question is how to remove this tabindex. I tried setting tabindex to -1 but that does not affect the div tag tabindex value. Any help will be really appreciated. Thank you 

--
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/f56d4d93-a632-4d5b-9ed6-07ebcf9edde9n%40googlegroups.com.

Re: GWT 2.10.0 DTD

You're right, GWT Project updates with https now but still I also cannot download it:

https://gwtproject.org/doctype/2.10.0/gwt-module.dtd

But I never use it, or do you really need it?
Sara Youssef schrieb am Donnerstag, 8. September 2022 um 13:25:43 UTC+2:
I can't access GWT 2.10.0 DTD from http://gwtproject.org/doctype/2.10.0/gwt-module.dtd
So is there any reason that DTD isn't uploaded to gwt website till now although the source repository has a version of it or it's uploaded to a different server?

--
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/6b57fb32-cac9-45ee-8cd1-93682ea56fc4n%40googlegroups.com.

Re: Spring dependency-check' is not allowed to appear in element 'bean'

You should separate the Spring project and the GWT project... That's the best way so that you could update each projects with their dependencies as you wish. 

Remember GWT projects only need the Jar dependencies in compile / test time. In runtime they are just JavaScript 😀

Here is an example: https://github.com/lofidewanto/stockwatcher/tree/master/stockwatcher-springboot

Hope this helps!
dhia.xd...@gmail.com schrieb am Mittwoch, 10. August 2022 um 15:50:38 UTC+2:
the error is the same as the title

Spring dependency-check' is not allowed to appear in element 'bean'

Le mercredi 10 août 2022 à 15:47:20 UTC+2, iweb Appe a écrit :

I am using a gwt app and when I upgraded spring from 2.X to 5X I get this error when I deploy on jetty

<bean id="demo.sessionFactory"
    class = "org.springframework.oring.hibernate5.LocalSessionFactoryBean"
    abstract="false" lazy-init="defaullt" autowire="default"
    dependency-check="default">
    <property name="hibernateProperties">
        <ref bean="demo.hibernateProperties"/>
    </property>
</bean>

I made sure to change the xsd file version to 2.5 but I still get the error.

--
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/beb405c8-ceb5-4d03-8bac-787b50acfba6n%40googlegroups.com.

GWT 2.10.0 DTD

I can't access GWT 2.10.0 DTD from http://gwtproject.org/doctype/2.10.0/gwt-module.dtd
So is there any reason that DTD isn't uploaded to gwt website till now although the source repository has a version of it or it's uploaded to a different server?

--
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/6963ce2e-4a53-41f5-beed-f316f6af1e03n%40googlegroups.com.

Thursday, September 1, 2022

Re: Security Vulnerabilities with GWT 2.10



On Thursday, September 1, 2022 at 11:57:07 AM UTC+2 priyako...@gmail.com wrote:
Thanks for response.

There is one more CVE has been reported for gwt-dev jar for htmlUnit component. Details of CVE are as below -
CVE - CVE-2022-29546
severity  - 7.5 
Description - HtmlUnit NekoHtml Parser before 2.61.0 suffers from a denial of service vulnerability. Crafted input associated with the parsing of Processing Instruction (PI) data leads to heap memory consumption.

Are there any plans to mitigate above vulnerablity?
As we know that gwt-dev.jar is used for development purpose( in our application, we remove gwt-dev.jar post compilation) , still are there any attack surfaces exists?

It depends whether you a) use GWTTestCase b) run them with the HtmlUnit runner c) those tests load external resources not under your control (that could contain the processing instruction triggering the OOME)

--
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/fac4e58a-26cb-49df-a2a0-2f0ec8d87d6dn%40googlegroups.com.

Re: Security Vulnerabilities with GWT 2.10

Thanks for response.

There is one more CVE has been reported for gwt-dev jar for htmlUnit component. Details of CVE are as below -
CVE - CVE-2022-29546
severity  - 7.5 
Description - HtmlUnit NekoHtml Parser before 2.61.0 suffers from a denial of service vulnerability. Crafted input associated with the parsing of Processing Instruction (PI) data leads to heap memory consumption.

Are there any plans to mitigate above vulnerablity?
As we know that gwt-dev.jar is used for development purpose( in our application, we remove gwt-dev.jar post compilation) , still are there any attack surfaces exists?

On Saturday, 30 July 2022 at 03:15:45 UTC+5:30 t.br...@gmail.com wrote:
On Friday, July 29, 2022 at 1:27:36 PM UTC+2 priyako...@gmail.com wrote:
Hi All,

Below Security Vulnerabilities in gwt-dev.jar in latest GWT 2.10 release have been reported by Dependency checker tool - 

gwt-dev_vulnerablities.PNG
Given above vulnerabilities -
1. Are those security issues addressed in latest 2.10.0 release?
2. If no, is there a plan to include them in any future release say 3.x?
3. As we know that gwt-dev.jar is used for development purpose( in our application, we remove gwt-dev.jar post compilation) , still are there any attack surfaces exists?

IIRC, GSON is used to load sourcemaps when deobfuscating stacktraces (it might also be used for generating source maps at build time, I don't remember) ; sourcemaps are bundled with your application so they can hardly be considered "untrusted data".
James (mime4j) is a transitive dependency of HTMLUnit, used for testing. It's not clear whether the mime4j component of James is vulnerable (I'd say no), but it's only used for unit tests where I'd say you shouldn't load any untrusted data.
Jetty as used in GWT won't do HTTP/2.

So, the only possible attack surface would be untrusted URLs loaded during tests.

--
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/846a98bc-8022-42bc-a5ab-fac3de4ed377n%40googlegroups.com.

Thursday, August 25, 2022

Re: Migrating to ltgt gwt-maven-plugin causes compile problem with HibernateValidation

No, didn't set gwtSdkFirstInClasspath and the default seems to be false. Anyways, the old mojo was working and the new version compiles now. Distracted by lots of BAU today and yet to actually test it.

On Wednesday, August 24, 2022 at 11:48:55 PM UTC+8 t.br...@gmail.com wrote:
Did you maybe have gwtSdkFirstInClasspath set to true? That would have put gwt-user and gwt-dev and all their dependencies into the classpath before your own dependencies, putting javax.validation 1.0.0.GA before javax.validation 1.1.0.Final and therefore shadowing it (I'd expect Hibernate Validator 5 to them break, but I have no idea how it's being used).

On Wednesday, August 24, 2022 at 3:06:29 PM UTC+2 Thomas wrote:
Thanks Thomas. That's working now. 
Over the years I've updated the dependencies and interestingly the mojo gwt-maven-plugin worked fine with these dependencies. 

On Wednesday, August 24, 2022 at 4:53:05 PM UTC+8 t.br...@gmail.com wrote:
GWT does not support javax.validation 1.1.0, only 1.0.0.
Because you're building a gwt-app, which only contains client-side code by definition, I see no reason for having javax.validation 1.1.0 (and Hibernate Validator 5, as well as gwt-servlet which is a subset of gwt-user). Stick to javax.validation 1.0.0.GA and Hibernate Validator 4.1.0.Final (https://www.gwtproject.org/doc/latest/DevGuideValidation.html#SetupInstructions)

On Wednesday, August 24, 2022 at 4:42:59 AM UTC+2 Thomas wrote:
Hi all,

I'm in the progress of modularising a GWT app and migrating it to use the newer ltgt gwt-maven-plugin. I have a GWT module which compiles correctly using the old gwt-maven-plugin, but fails with the following errors using the new gwt-maven-plugin:

[INFO] --- gwt-maven-plugin:1.0.1:compile (default-compile) @ gwt-portal ---
[INFO] Compiling module com.inspectivity.portal.Portal
[INFO]    Tracing compile failure path for type 'com.inspectivity.portal.client.validation.CustomValidatorFactory'
[INFO]       [ERROR] Errors in 'file:/Users/thomas/dev-private/inspectivity-modules/gwt-portal/src/main/java/com/inspectivity/portal/client/validation/CustomValidatorFactory.java'
[INFO]          [ERROR] Line 31: The method getParameterNameProvider() of type CustomValidatorFactory must override or implement a supertype method
[INFO]          [ERROR] Line 36: The method close() of type CustomValidatorFactory must override or implement a supertype method
[INFO]    Tracing compile failure path for type 'org.hibernate.validator.engine.PathImpl'
[INFO]       [ERROR] Errors in 'jar:file:/Users/thomas/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/org/hibernate/validator/super/org/hibernate/validator/engine/PathImpl.java'
[INFO]          [ERROR] Line 72: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 84: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 131: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 202: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 95: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 127: NodeImpl cannot be resolved to a type
[INFO]    Tracing compile failure path for type 'org.hibernate.validator.engine.ConstraintViolationImpl_CustomFieldSerializer'
[INFO]       [ERROR] Errors in 'jar:file:/Users/thomas/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/org/hibernate/validator/engine/ConstraintViolationImpl_CustomFieldSerializer.java'
[INFO]          [ERROR] Line 100: The method instantiate(SerializationStreamReader) from the type ConstraintViolationImpl_CustomFieldSerializer refers to the missing type ConstraintViolationImpl
[INFO]          [ERROR] Line 37: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 73: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 32: The type ConstraintViolationImpl_CustomFieldSerializer must implement the inherited abstract method CustomFieldSerializer<ConstraintViolationImpl>.deserializeInstance(SerializationStreamReader, ConstraintViolationImpl)
[INFO]          [ERROR] Line 33: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 32: The type ConstraintViolationImpl_CustomFieldSerializer must implement the inherited abstract method CustomFieldSerializer<ConstraintViolationImpl>.serializeInstance(SerializationStreamWriter, ConstraintViolationImpl)
[INFO]          [ERROR] Line 41: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 105: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 88: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 53: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 98: ConstraintViolationImpl cannot be resolved to a type
[INFO]    Tracing compile failure path for type 'org.hibernate.validator.engine.ValidationSupport'
[INFO]       [ERROR] Errors in 'jar:file:/Users/thomas/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/org/hibernate/validator/engine/ValidationSupport.java'
[INFO]          [ERROR] Line 43: ConstraintViolationImpl cannot be resolved to a type
[INFO]       [ERROR] Errors in 'jar:file:/Users/thomas/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/org/hibernate/validator/super/org/hibernate/validator/engine/PathImpl.java'
[INFO]          [ERROR] Line 72: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 84: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 131: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 202: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 95: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 127: NodeImpl cannot be resolved to a type
[INFO]    [ERROR] Aborting compile due to errors in some input files

I'm using GWT 2.8.2 and here's a fragment of my POM for the module:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <parent>
        <groupId>com.inspectivity</groupId>
        <artifactId>inspectivity</artifactId>
        <version>...</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>

    <artifactId>gwt-portal</artifactId>
    <packaging>gwt-app</packaging>

    <name>gwt-portal</name>

    <properties>
        <app.version>${project.parent.version}</app.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <webappDirectory>${project.build.directory}/web-exploded</webappDirectory>
    </properties>

    <dependencies>
        ....
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-servlet</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-dev</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-user</artifactId>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>5.2.5.Final</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>5.2.5.Final</version>
            <classifier>sources</classifier>
        </dependency>
        <dependency>
            <groupId>javax.validation</groupId>
            <artifactId>validation-api</artifactId>
            <version>1.1.0.Final</version>
        </dependency>
        ...
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>net.ltgt.gwt.maven</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <configuration>
                    <moduleName>com.inspectivity.portal.Portal</moduleName>
                </configuration>
            </plugin>


            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>



Thanks a lot for any hint!

Cheers,
Thomas

--
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/5bda7259-c092-4fb0-b8af-ad48ceef74c8n%40googlegroups.com.

Wednesday, August 24, 2022

Re: Migrating to ltgt gwt-maven-plugin causes compile problem with HibernateValidation

Thanks Thomas. That's working now. 
Over the years I've updated the dependencies and interestingly the mojo gwt-maven-plugin worked fine with these dependencies. 

On Wednesday, August 24, 2022 at 4:53:05 PM UTC+8 t.br...@gmail.com wrote:
GWT does not support javax.validation 1.1.0, only 1.0.0.
Because you're building a gwt-app, which only contains client-side code by definition, I see no reason for having javax.validation 1.1.0 (and Hibernate Validator 5, as well as gwt-servlet which is a subset of gwt-user). Stick to javax.validation 1.0.0.GA and Hibernate Validator 4.1.0.Final (https://www.gwtproject.org/doc/latest/DevGuideValidation.html#SetupInstructions)

On Wednesday, August 24, 2022 at 4:42:59 AM UTC+2 Thomas wrote:
Hi all,

I'm in the progress of modularising a GWT app and migrating it to use the newer ltgt gwt-maven-plugin. I have a GWT module which compiles correctly using the old gwt-maven-plugin, but fails with the following errors using the new gwt-maven-plugin:

[INFO] --- gwt-maven-plugin:1.0.1:compile (default-compile) @ gwt-portal ---
[INFO] Compiling module com.inspectivity.portal.Portal
[INFO]    Tracing compile failure path for type 'com.inspectivity.portal.client.validation.CustomValidatorFactory'
[INFO]       [ERROR] Errors in 'file:/Users/thomas/dev-private/inspectivity-modules/gwt-portal/src/main/java/com/inspectivity/portal/client/validation/CustomValidatorFactory.java'
[INFO]          [ERROR] Line 31: The method getParameterNameProvider() of type CustomValidatorFactory must override or implement a supertype method
[INFO]          [ERROR] Line 36: The method close() of type CustomValidatorFactory must override or implement a supertype method
[INFO]    Tracing compile failure path for type 'org.hibernate.validator.engine.PathImpl'
[INFO]       [ERROR] Errors in 'jar:file:/Users/thomas/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/org/hibernate/validator/super/org/hibernate/validator/engine/PathImpl.java'
[INFO]          [ERROR] Line 72: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 84: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 131: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 202: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 95: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 127: NodeImpl cannot be resolved to a type
[INFO]    Tracing compile failure path for type 'org.hibernate.validator.engine.ConstraintViolationImpl_CustomFieldSerializer'
[INFO]       [ERROR] Errors in 'jar:file:/Users/thomas/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/org/hibernate/validator/engine/ConstraintViolationImpl_CustomFieldSerializer.java'
[INFO]          [ERROR] Line 100: The method instantiate(SerializationStreamReader) from the type ConstraintViolationImpl_CustomFieldSerializer refers to the missing type ConstraintViolationImpl
[INFO]          [ERROR] Line 37: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 73: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 32: The type ConstraintViolationImpl_CustomFieldSerializer must implement the inherited abstract method CustomFieldSerializer<ConstraintViolationImpl>.deserializeInstance(SerializationStreamReader, ConstraintViolationImpl)
[INFO]          [ERROR] Line 33: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 32: The type ConstraintViolationImpl_CustomFieldSerializer must implement the inherited abstract method CustomFieldSerializer<ConstraintViolationImpl>.serializeInstance(SerializationStreamWriter, ConstraintViolationImpl)
[INFO]          [ERROR] Line 41: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 105: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 88: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 53: ConstraintViolationImpl cannot be resolved to a type
[INFO]          [ERROR] Line 98: ConstraintViolationImpl cannot be resolved to a type
[INFO]    Tracing compile failure path for type 'org.hibernate.validator.engine.ValidationSupport'
[INFO]       [ERROR] Errors in 'jar:file:/Users/thomas/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/org/hibernate/validator/engine/ValidationSupport.java'
[INFO]          [ERROR] Line 43: ConstraintViolationImpl cannot be resolved to a type
[INFO]       [ERROR] Errors in 'jar:file:/Users/thomas/.m2/repository/com/google/gwt/gwt-user/2.8.2/gwt-user-2.8.2.jar!/org/hibernate/validator/super/org/hibernate/validator/engine/PathImpl.java'
[INFO]          [ERROR] Line 72: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 84: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 131: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 202: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 95: NodeImpl cannot be resolved to a type
[INFO]          [ERROR] Line 127: NodeImpl cannot be resolved to a type
[INFO]    [ERROR] Aborting compile due to errors in some input files

I'm using GWT 2.8.2 and here's a fragment of my POM for the module:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <parent>
        <groupId>com.inspectivity</groupId>
        <artifactId>inspectivity</artifactId>
        <version>...</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>

    <artifactId>gwt-portal</artifactId>
    <packaging>gwt-app</packaging>

    <name>gwt-portal</name>

    <properties>
        <app.version>${project.parent.version}</app.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <webappDirectory>${project.build.directory}/web-exploded</webappDirectory>
    </properties>

    <dependencies>
        ....
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-servlet</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-dev</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-user</artifactId>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>5.2.5.Final</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>5.2.5.Final</version>
            <classifier>sources</classifier>
        </dependency>
        <dependency>
            <groupId>javax.validation</groupId>
            <artifactId>validation-api</artifactId>
            <version>1.1.0.Final</version>
        </dependency>
        ...
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>net.ltgt.gwt.maven</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <configuration>
                    <moduleName>com.inspectivity.portal.Portal</moduleName>
                </configuration>
            </plugin>


            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>



Thanks a lot for any hint!

Cheers,
Thomas

--
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/036e6a65-fad9-4747-86d2-09f6a233e246n%40googlegroups.com.