The error you posted shows nothing that would indicate that Java 17 is the 
issue. Looks more like a general setup/dependency issue.

Your code uses XmlTransient (I guess it is an annotation) but for some 
reason GWT compiler cannot see the annotation. Also you should make sure 
that you really only have GWT 2.11 on classpath. If you use GWT libraries 
you might also have an older GWT on classpath and things can be mixed up. 
So check your full dependency tree just to be sure.

-- J.

Midhunkumar schrieb am Mittwoch, 12. Februar 2025 um 07:52:12 UTC+1:

> Hi,
>
> We have GWT developed project at the version 2.7.0 in Java 8. Currently we 
> are migrating to Java 17 I have changed the Gwt plugin versions to 2.11. 
> After n number of changes in the setup and lot of deployments and build I 
> am still facing the below error
>
> Tracing compile failure path for type 'com.ultramain.client.UltramainHtml'
>          [ERROR] Errors in 
> 'file:/W:/Java%2017/USI.UNITY.OXY/UltramainHtml/src/main/java/com/ultramain/client/UltramainHtml.java'
>             [ERROR] com.ultramain.client.UltramainWebServiceAsync cannot 
> be resolved to a type
>          [ERROR] Errors in 
> 'file:/W:/Java%2017/USI.UNITY.OXY/UltramainHtml/src/main/java/com/ultramain/client/UltramainWebServiceAsync.java'
>             [ERROR] com.ultramain.shared.MobileCommandReference cannot be 
> resolved to a type
>          [ERROR] Errors in 
> 'file:/W:/Java%2017/USI.UNITY.OXY/UltramainHtml/src/main/java/com/ultramain/shared/MobileCommandReference.java'
>             [ERROR] com.ultramain.shared.ExportExecutionDto cannot be 
> resolved to a type
>          [ERROR] Errors in 
> 'file:/W:/Java%2017/USI.UNITY.OXY/UltramainHtml/src/main/java/com/ultramain/shared/ui/ViewSecurityOptions.java'
>             [ERROR] com.ultramain.shared.settings.Options cannot be 
> resolved to a type
>          [ERROR] Errors in 
> 'file:/W:/Java%2017/USI.UNITY.OXY/UltramainHtml/src/main/java/com/ultramain/shared/SaveDeleteStatisticsOptionCommandDto.java'
>             [ERROR] 
> com.ultramain.shared.MobileSaveDeleteOptionCommandDto.SaveDeleteOptionCommandDtoEnum
>  
> cannot be resolved to a type
>          [ERROR] Errors in 
> 'file:/W:/Java%2017/USI.UNITY.OXY/UltramainHtml/src/main/java/com/ultramain/shared/navigators/PaintableEntry.java'
>             [ERROR] com.ultramain.shared.ui.Filter cannot be resolved to a 
> type
>          [ERROR] Errors in 
> 'file:/W:/Java%2017/USI.UNITY.OXY/UltramainHtml/src/main/java/com/ultramain/shared/DtoData.java'
>             [ERROR] com.ultramain.shared.DataLink cannot be resolved to a 
> type
>          [ERROR] Errors in 
> 'file:/W:/Java%2017/USI.UNITY.OXY/UltramainHtml/src/main/java/com/ultramain/shared/MobileLoadFromImportExportCatalogDto.java'
>             [ERROR] com.ultramain.shared.importexport.Import cannot be 
> resolved to a type
>          [ERROR] Errors in 
> 'file:/W:/Java%2017/USI.UNITY.OXY/UltramainHtml/src/main/java/com/ultramain/shared/dashboard/HtmlDashboard.java'
>             [ERROR] Line 162: XmlTransient cannot be resolved to a type
>             [ERROR] Line 177: XmlTransient cannot be resolved to a type
>             [ERROR] Line 11: The import com.ultramain.system cannot be 
> resolved
>             [ERROR] Line 140: XmlTransient cannot be resolved to a 
> type..... goes on
>
> My primary question Is GWT 2.11.0 truly compatible with java 17?
>
> I have tried removing the GWT maven plugin and build the project the build 
> is success, but the GWT compilation is not happening. The compilation has 
> to happen and all GWT JS resources will be put inside ultramainhtml folder 
> inside our project's war.
>
> Appreciate your help.
>
> Thanks,
> Midhun.
>
>
>

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/google-web-toolkit/06b12763-f626-49c9-8f92-c02309c92eebn%40googlegroups.com.

Reply via email to