• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Whatever you say buddy! And I believe this tiny ad too:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic