GWT 2.7 with Rest

161 views Asked by At

We are building a project and will be using gwt 2.7 with rest ( spring) and weblogic server. The problem which we face is that I want to run the gwt module on superdev mode (which runs on 8888 port by default) but the rest is deployed on 7001 port on weblogic server. I cannot call the rest services from superdev mode as it gives a cross site scripting error.

How can get my super dev mode running so that I can test and develop UI and connect to rest services on different port. I know there has been topic on use a different server for dev mode. But i don't see any examples.

Can some please suggest wat needs to be done. Even if it requires changing the project structure to get the dev mode working with rest.

2

There are 2 answers

0
user1484819 On

did you try running GWT module on external server mode?

enter image description here

0
Christian Kuetbach On

This is a common problem for web-development. It can be solved by using:

  1. CORS (at the REST server)
  2. Using a proxy servlet (I use this approach, but with a handwritten servlet)
  3. Disable the browser security (I would not do this)