GWT war file deployment issue on Tomcat 9

Skip to first unread message

Ying Jin

Jul 3, 2023, 12:33:26 PM7/3/23
to GWT Users
We were notified that we need to move our applications off from Weblogic 14 server to OpenShift platform. The first task is to make sure the GWT application works in local development environment with Tomcat 9 server. 

We can run the GWT application by starting Tomcat 9 server from Eclipse using WTP. However, when we tried to deploy the war file in the tomcat 9 deployment folder "webapps" and tried to access to the site url as below, an dialog is displayed as attached asking to get code server ready first. The war file was created from the war directory after GWT compilation process is finished. 

GWT 2.9
JDK 11
Eclipse 4,15
GWT plugin 3

Please help shed some lights on this deployment issue.



Colin Alworth

Jul 4, 2023, 1:44:46 PM7/4/23
to GWT Users
It looks as though the war file that was deployed was built after Super Dev Mode had been started, but before the production build had been performed, so the generated JS only works with a local development server. Try a clean build, without starting dev mode?

If this still doesn't work, can you share more details about exactly how you build the project for production?

Ying Jin

Jul 5, 2023, 2:31:03 PM7/5/23
to GWT Users
Great. Thank you Colin. It works now after using the war file with clean build. thanks, Jenny
Reply all
Reply to author
0 new messages