• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

How to run GWT applications on tomcat or any other server.

 
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I want to know how to run GWT applications on tomcat or any other server. Right now I am compiling the GWT project and copying the war folder to tomcat webapps folder. Can anyone tell me how to co this without compiling the project every time or how to make GWT aware of tomcat server instead of running it on default jetty server.

I also tried to add a GWT project to tomcat in eclipse. But when I chose "Add or remove" option I could not find GWT applications in the window. I could only find web projects. Later I realized dat GWT projects are simple java projects which when compiled will create a war folder in the same application which has to be deployed on other servers. I want to know whether I can achieve this without recompiling the project every time or make GWT use my tomcat or glassfish server instead of using inbuilt jetty server.

Thank you all in advance. Good day.
 
Sheriff
Posts: 9643
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll have to use -noserver option when you start development mode. Then you'll have to use in-place deployment of Tomcat and then use URL which is something like this

http://localhost:8080/myApp/MyModule.jsp?gwt.codesvr=127.0.0.1:9997

Here 8080 is the tomcat port and 9997 is the GWT development mode port. You can also refer to this blog...
 
I just had the craziest dream. This tiny ad was in it.
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!