• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 9707
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...
 
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic