Wednesday, March 15, 2017

Application works when started with maven, but not when started in eclipse

Hello,

I have a simple test application based on the "Web Application Starter Project" created with webAppCreator as a maven project.
When clicking on a button, it makes a request to the server.

It works fine when started with mvn gwt:devmode.
But when started from within eclipse with "Run As -> GWT Development Mode with Jetty", the call to the server doesn't return and chrome shows errors in the development mode console:



The identifier "onSuccess" must refer to the async callback function:



As you can see, the lines of the callback functions "onSuccess" and "onFailure" are greyed, so that I cannot set any breakpoints there.

The applications runs fine when started with maven like this:

mvn clean compole package gwt:devmode

I also have tried to do a "Refresh" in eclipse, but the application keeps running into that error, but only when started in eclipse.

What's wrong?

Thanks
Magnus

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment