aspose file tools*
The moose likes GWT and the fly likes How to run GWT applications on tomcat or any other server. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "How to run GWT applications on tomcat or any other server." Watch "How to run GWT applications on tomcat or any other server." New topic
Author

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

chaitanya karthikk
Ranch Hand

Joined: Sep 15, 2009
Posts: 806

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.


Love all, trust a few, do wrong to none.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9304
    
  17

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...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to run GWT applications on tomcat or any other server.