Monday, August 5, 2024

Re: Gwt upgrade to 2.11.0 from 2.6.1

Don't the javax.servlet classses get pulled in from the web server libs you decide to use?

Also, if you use the latest web servers, you'll need to use the Jakarta GWT libs:  https://mvnrepository.com/artifact/org.gwtproject/gwt-servlet-jakarta/2.11.0

I recommend creating a sample project, and seeing how it fits together:  https://www.gwtproject.org/gettingstarted-v2.html

On Friday 2 August 2024 at 8:18:09 pm UTC+10 jyothindrapavan kondepati wrote:
Hi

Currently we are planning to upgrade to java 21 from java 8. GWT 2.11.0 is tested for java 21. But our current version for gwt is gwt-2.6.1. so we planning to upgrade to gwt-2.11.0 first before upgrading to java-21.

Please Required help in upgrading to gwt-2.11.0 from gwt-2.6.1 
Tried upgrading to 2.11.0 getting compile time errors

javax.servlet packages are not there in current gwt-user-2.11.0 .jar getting compile errors for those classes.

Please guide in this 
Thanks
 
Below are the dependencies used in ivy file 

<dependency org="com.google.gwt" name="gwt-servlet" rev="2.6.1" conf="production->default" />

<dependency org="com.google.gwt" name="gwt-user" rev="2.6.1" conf="compile->default" >
  <exclude org="javax.validation" module="validation-api" name="*" type="*" ext="*" conf="" matcher="exact" />
</dependency>

<dependency org="com.google.gwt.inject" name="gin" rev="2.1.2" conf="compile->default" />

<dependency org="com.extjs" name="gxt" rev="2.3.1a-gwt22" conf="production->default" />


<module >

<inherits name="com.google.gwt.user.User" />

<inherits name="com.google.gwt.i18n.I18N"/>

<inherits name='com.extjs.gxt.ui.GXT'/>

<inherits name="com.google.gwt.resources.Resources" />

<inherits name="com.google.gwt.inject.Inject" />

<inherits name="com.google.gwt.json.JSON"/>

<set-configuration-property name="locale.useragent" value="Y"/>

<set-property name="locale" value="default"/>

<inherits name="com.google.gwt.logging.Logging"/>

<set-property name="gwt.logging.logLevel" value="WARNING"/>

<set-property name="gwt.logging.enabled" value="TRUE"/>

<!-- Enable the simple remote handler -->

<set-property name="gwt.logging.simpleRemoteHandler" value="DISABLED" />

<set-property name="gwt.logging.firebugHandler" value="ENABLED" />

<set-property name="gwt.logging.popupHandler" value="DISABLED" />

<set-property name="gwt.logging.consoleHandler" value="ENABLED" />

<set-property name="gwt.logging.developmentModeHandler" value="ENABLED" />

<set-property name="gwt.logging.popupHandler" value="DISABLED" />

<set-property name="gwt.logging.systemHandler" value="ENABLED" />

<source path="client" />

<source path="shared" />

<!-- Everything above this line needs to be identical between trm and trm-dev -->

<set-property name="user.agent" value="safari,ie9,gecko1_8"/>

<set-configuration-property name="UiBinder.useSafeHtmlTemplates" value="true" />

<!-- Super Dev Mode -->

<add-linker name="xsiframe"/>

<set-configuration-property name="devModeRedirectEnabled" value="true"/>

</module>

--
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/15a182d4-10eb-4302-90c7-3a04b2745ee0n%40googlegroups.com.

No comments:

Post a Comment