Friday, April 29, 2011

Re: Deferred Binding error when upgrading to GWT 2.0.0

gwt-maven-plugin 2.2 is not compatible with gwt 2.0

But I did try upgrading gwt to 2.2.0 and used the 2.2.0 plugin as
well. I still received the same error.

I believe the issue lies in a change in GWT.create() in post 2.0
versions of GWT. Somehow the generated proxy is not able to locate the
RemoteServiceServlet. In our environment the RemoteServiceServlet is
implemented by a Stripes ActionBean that extends the Servlet.

In pre 2.0 implementations this was not an issue.

On Apr 29, 8:44 am, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
wrote:
> You must upgrade to gwt-maven-plugin - 2.2
>
> 2011/4/29 stockloser <kde...@gmail.com>
>
> > I've finally hit a wall on trying to resolve this error and decided to
> > post here to reach out for some advice/help.
>
> > I have a GWT 1.5.3 application that works with Stripes 1.4.2
> > framework. In that configuration, the application compiles/runs
> > successfully. However, I am attempting to upgrade the application to
> > GWT 2.2.0 and have been running into the Deferred Binding compile
> > error in all post GWT 2.0 versions. I did not receive the error in any
> > of the pre 2.0 versions.
>
> > My setup is the following:
>
> > gwt-maven-plugin - 1.2
> > gwt - 2.0
> > stripes - 1.4.2
>
> > The specific error I receive when compiling using the maven plugin is:
>
> > [INFO]    [ERROR] Errors in 'jar:file:/C:/Users/Kevin/.m2/repository/
> > mil/whs/eccs/eccs-commons-client/4.0/eccs-commons-client-4.0-
> > sources.jar!/mil/whs/eccs/model/gwt/organization/service/
> > GwtOrganizationServiceWrapper.java'
> > [INFO]       [ERROR] Line 19:  Failed to resolve
> > 'mil.whs.eccs.model.gwt.organization.service.GwtOrganizationService'
> > via deferred binding
> > [INFO]    [ERROR] Cannot proceed due to previous errors
>
> > The application has 7 GWT modules in the POM. The really bizarre part
> > of this whole issue is that the error appears randomly. Sometimes all
> > 7 compile with no errors, other times, 5 compile, and sometimes it
> > fails before the first compile. So it is hard to imagine it is
> > actually a deferred binding exception and not something else.
>
> > I am wondering if it could be an issue between GWT 2.0 and stripes but
> > I am not sure. I would appreciate any help in resolving this issue.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment