URL for External Tomcat

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

URL for External Tomcat

Postby Mike Coleman » Tue Mar 20, 2007 11:56 am

Where do I specify the URL to use when I am running with an external tomcat server. The current launch uses the localhost:[port]/[html path]. My tomcat is running on another machine so localhost will not work. If I manually type the correct URL in the browser window, the application works but I would rather not have to type it each time.
Mike Coleman
Posts: 3
Joined: Sat Nov 11, 2006 10:08 am

Postby Konstantin.Scheglov » Tue Mar 20, 2007 8:17 pm

How do you run your GWT application on external/remote tomcat server? Currently I consider "GWT Application" launch configurations as the way for running tomcat locally and connecting to it. Would be good to know your use case with more details to give better answer.
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Postby Mike Coleman » Wed Mar 21, 2007 6:25 am

I am running tomcat on another machine and port, eastland:8080. When I run my GWT app in Eclispe using Run As->Run..., I change my port to 8080, select noserver and add my other machine (eastland) to the whitelist. When it runs, the URL come up as http://localhost:8080/com.eastlandeng.m ... MyApp.html and I get an error since I specified noserver. If I type in the correct URL for my tomcat server location in the browser, http://eastland:8080/MyApp/MyApp.html, the app starts up correctly. I am looking for someplace to enter eastland:8080/MyApp/MyApp.html in Eclipse so I don't have to type it in the browser each time.

In the GWT MyApp-shell.cmd, when I specify noserver and whitelist, I can change the last parameter to the new url, http://eastland:8080/MyApp/MyApp.html, and the app will run correctly.
Mike Coleman
Posts: 3
Joined: Sat Nov 11, 2006 10:08 am

Postby Eric Clayberg » Sun Mar 25, 2007 5:20 am

The latest build now includes a URL entry in the GWT Application launch configuration.

The contents of that field are passes to the GWT Shell (leave it blank to use the default).

Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests