As a newly registered SmartGWT Pro developer, I am learning the ropes on how to properly deploy SmartGWT application to a Tomcat 9's environment (hosted on AWS Linux 2)
I've been following README file from those Maven archetypes (https://smartclient.com/smartgwt/jav...enSupport.html) and SmartGWT_Quick_Start_Guide to setup development environment and it has been working well (running GWT codeserver (<app>-client code) and <app>-server code ( 'mvn jetty:run -Pdev -pl *-server' ))
But I have found very little information on what is required to deploy to Tomcat's environment (or other app server's environment).
Based on test projects I built with the Maven archetypes (using 'prod' profile), there are usually TWO (2) WAR files being built (<app>-client.war and <app>-server.war), am I suppose to put both WAR files under Tomcat's webapps/ folder? I noticed if I put <app>-server.war as ROOT.war under Tomcat's webapps/ folder the SmartGWT app would run but then I will get a warning: 'Transport error - HTTP code: 404 for URL: http://localhost:8080/sc/IDACall?_csrf=xxxxxxx'
Is there document or website available for production deployment to an application server? Just trying to clear up the confusion of what/which WAR file is needed (or both) and whether there're other configuration changes needed for production deployment. Or even simply a local Tomcat deployment for testing purpose....
Thanks in advance for any information, hints, suggestions,
Jasper
I've been following README file from those Maven archetypes (https://smartclient.com/smartgwt/jav...enSupport.html) and SmartGWT_Quick_Start_Guide to setup development environment and it has been working well (running GWT codeserver (<app>-client code) and <app>-server code ( 'mvn jetty:run -Pdev -pl *-server' ))
But I have found very little information on what is required to deploy to Tomcat's environment (or other app server's environment).
Based on test projects I built with the Maven archetypes (using 'prod' profile), there are usually TWO (2) WAR files being built (<app>-client.war and <app>-server.war), am I suppose to put both WAR files under Tomcat's webapps/ folder? I noticed if I put <app>-server.war as ROOT.war under Tomcat's webapps/ folder the SmartGWT app would run but then I will get a warning: 'Transport error - HTTP code: 404 for URL: http://localhost:8080/sc/IDACall?_csrf=xxxxxxx'
Is there document or website available for production deployment to an application server? Just trying to clear up the confusion of what/which WAR file is needed (or both) and whether there're other configuration changes needed for production deployment. Or even simply a local Tomcat deployment for testing purpose....
Thanks in advance for any information, hints, suggestions,
Jasper
Comment