Testing app with subdomains in development-mode

98 views
Skip to first unread message

Gilad Egozi

unread,
Apr 17, 2012, 8:11:00 AM4/17/12
to google-we...@googlegroups.com, Shuky
Hello,

I have a GWT application that supports multitenancy by subdomains.
I want to be able to test my app in development mode.
I am able to access my app using either:

or

But I'm NOT able to access it using



I'm developing on a Windows machine. I'd modified the HOSTS file to map subdomain.localhost to 127.0.0.1 - And yes, I'm sure that the mapping is alright since I AM able to access http://subdomain.localhost:8888/_ah/admin.


Any help would be very appreciated!

Thanks,
Gilad.

Qian Qiao

unread,
Apr 17, 2012, 8:23:51 AM4/17/12
to google-we...@googlegroups.com, Shuky

What error did you get?

Does adding -bindAddress 0.0.0.0 to the start up command help?

-- Joe

Olivier Scherler

unread,
Apr 17, 2012, 8:26:32 AM4/17/12
to google-we...@googlegroups.com
I have a GWT application that supports multitenancy by subdomains.
I want to be able to test my app in development mode.

Did you add your domains to the list of hosts in the GWT Developer Plugin configuration?

Olivier

Gilad Egozi

unread,
Apr 17, 2012, 8:32:59 AM4/17/12
to google-we...@googlegroups.com, Shuky

Hey Joe,

The error I'm getting is the usual:

Plugin failed to connect to Development Mode server at localhost:9997
Follow the underlying troubleshooting instructions


Could you please elaborate more regarding this bindAddress parameter? I'm working in Eclipse and apparently miss some knowledge of the underlying infrastructure :-)

Gilad Egozi

unread,
Apr 17, 2012, 8:34:04 AM4/17/12
to google-we...@googlegroups.com
No, I did not. :-)

Could you refer me to some document for this?

Thanks.

Thomas Broyer

unread,
Apr 17, 2012, 8:43:43 AM4/17/12
to google-we...@googlegroups.com


On Tuesday, April 17, 2012 2:34:04 PM UTC+2, Gilad Egozi wrote:
No, I did not. :-)

Could you refer me to some document for this?

Joshua Kappon

unread,
Apr 17, 2012, 11:25:28 AM4/17/12
to google-we...@googlegroups.com, Shuky
Unfortunately, neither the GWT plugin nor the GWT developer mode server support wildcards with sub-domains, so you'll need to configure you're sub domains one at a time (see and star Issue 7003).

you'll need to do the following:
  • add the sub domain records to your hostfile
  • right click the GWT plugin (on the browser) -> Options -> and add the sub domains to the include list
  • add "-whitelist <sub domain name>" to you're devmode run configuration.
Reply all
Reply to author
Forward
0 new messages