Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • 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.
 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic