fbpx

How to resolve Google Java GWT error: Presenter.Display' must be a class

(Last Updated On: October 8, 2010)

if you get gwt compiler error of:

Compiling module co.uk.hivedevelopment.greet.GreetMvp

[ERROR] Errors in ‘generated://9B81F6AEEE75C63EED871823CE63F3E2/co/uk/hivedevelopment/greet/client/gin/GreetingGinjectorImpl.java’

[ERROR] Line 38: ┬áRebind result ‘co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter.Display’ must be a class

[ERROR] Line 140: ┬áRebind result ‘co.uk.hivedevelopment.greet.client.mvp.Contribute2Presenter.Display’ must be a class

Scanning for additional dependencies: jar:file:/C:/Documents%20and%20Settings/Administrator/workspace/SiloMvp/war/WEB-INF/lib/gwt-dispatch-1.0.0-SNAPSHOT.jar!/net/customware/gwt/dispatch/client/DefaultDispatchAsync.java

Adding ’34’ new generated units

Validating newly compiled units

[WARN] Warnings in ‘generated://0552CFB5A257AA676965545B12FA4F6B/net/customware/gwt/dispatch/client/service/DispatchService_TypeSerializer.java’

[WARN] Line 41: Referencing deprecated class ‘com.google.gwt.user.client.rpc.SerializableException’

See snapshot: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\DispatchService_TypeSerializer54699.java

[ERROR] Cannot proceed due to previous errors

make sure it is defined in gin/GreetingClientModule.java like:

package co.uk.hivedevelopment.greet.client.gin;

import net.customware.gwt.presenter.client.DefaultEventBus;

import net.customware.gwt.presenter.client.EventBus;

import net.customware.gwt.presenter.client.gin.AbstractPresenterModule;

import net.customware.gwt.presenter.client.place.PlaceManager;

import co.uk.hivedevelopment.greet.client.CachingDispatchAsync;

import co.uk.hivedevelopment.greet.client.mvp.AppPresenter;

import co.uk.hivedevelopment.greet.client.mvp.GreetingPresenter;

import co.uk.hivedevelopment.greet.client.mvp.GreetingResponsePresenter;

import co.uk.hivedevelopment.greet.client.mvp.GreetingResponseView;

import co.uk.hivedevelopment.greet.client.mvp.GreetingView;

import com.google.inject.Singleton;

public class GreetingClientModule extends AbstractPresenterModule {

@Override

protected void configure() {

bind(EventBus.class).to(DefaultEventBus.class).in(Singleton.class);

bind(PlaceManager.class).in(Singleton.class);

bindPresenter(GreetingPresenter.class, GreetingPresenter.Display.class, GreetingView.class);

bindPresenter(GreetingResponsePresenter.class, GreetingResponsePresenter.Display.class, GreetingResponseView.class);

bind(AppPresenter.class).in(Singleton.class);

bind(CachingDispatchAsync.class);

}

}

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Subscribe For Latest Updates

Sign up to best of business news, informed analysis and opinions on what matters to you.
Invalid email address
We promise not to spam you. You can unsubscribe at any time.
Scroll to Top