SuperDevMode and server-side code

111 views
Skip to first unread message

Alexander Orlov

unread,
Aug 6, 2012, 5:02:01 AM8/6/12
to google-we...@googlegroups.com
I want to run my RequestFactory using GWT' SuperDevMode. The client-side code compiles&runs fine but as soon as I make any RF-using server call I get an exception because server-side code isn't supported in SuperDevMode yet. The reason is:

Currently, Super Dev Mode doesn't support running Java web apps (war files) like classic Dev Mode. The workaround is to run them on a separate server.

But how should I run two separate servers (GWT compilation server & my app server) on the same port? And the same port is required because how else should I redirect my RF calls to another port of the same server?

Thomas Broyer

unread,
Aug 8, 2012, 10:03:27 AM8/8/12
to google-we...@googlegroups.com
You shouldn't load your app from the code server, but from your "app server". When you invoke the "Dev Mode On" bookmarklet, it'll load the app from the code server, but the app's "origin" will still be your app server.

Short answer: run them on distinct ports, or even distinct machines.

This is no different from the -noserver mode of the DevMode.

Reply all
Reply to author
Forward
0 new messages