No, I've got it there. And I'm sure I've done everything tutorial says I have to. What else cool be wrong? Could gin conflict with some other modules?
My SearchModule.gwt.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0// EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro- source/core/src/gwt-module.dtd"> <module rename-to='searchmodule'> <!-- Inherit the core Web Toolkit stuff. --> <inherits name='com.google.gwt.user.User'/> <!-- Inherit the default GWT style sheet. You can change --> <!-- the theme of your GWT application by uncommenting --> <!-- any one of the following lines. --> <inherits name='com.google.gwt.user.theme.standard.Standard'/> <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> --> <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> --> <!-- Other module inherits --> <!-- Inherit GWTx --> <inherits name='com.googlecode.gwtx.Java'/> <inherits name='com.google.gwt.i18n.I18N'/> <inherits name='com.google.gwt.inject.Inject'/> <!-- Specify the app entry point class. --> <entry-point class='ru.rchervot.sanasar.client.SearchModule'/> <!-- Russian language, independent of country --> <extend-property name="locale" values="ru"/> </module> On Jul 28, 9:31 am, Norman Maurer <nor...@apache.org> wrote: > You prolly missed to add the following line to your ProjectName.gwt.xml file: > > <inherits name="com.google.gwt.inject.Inject"/> > > Bye, > Norman > > 2009/7/27 r...@n <roman.chervot...@gmail.com>: > > > > > Hi, I've tried to add gin DI to the project, but have got an error > > below. I am using gwt 1.7.0 on linux + guice 2.0 + latest gin. I've > > followed all steps in gin tutorial, but when tried to run my app have > > got an exception. I could not understand what is wrong and where to > > look for a solution. > > Please help. > > Thanks in advance. > > > [ERROR] Failed to create an instance of > > 'ru.rchervot.sanasar.client.SearchModule' via deferred binding > > java.lang.RuntimeException: Deferred binding failed for > > 'ru.rchervot.sanasar.client.MyWidgetGinjector' (did you forget to > > inherit a required module?) > > at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java: > > 43) > > at com.google.gwt.core.client.GWT.create(GWT.java:91) > > at ru.rchervot.sanasar.client.SearchModule.<init>(SearchModule.java: > > 66) > > > --------- > > SearchModule.java(SearchModule is my EntryPoint class) line 66: > > private final MyWidgetGinjector injector = GWT.create > > (MyWidgetGinjector.class); > > -------- > > > MyWidgetClientModule.java: > > > public class MyWidgetClientModule extends AbstractGinModule { > > > �...@override > > protected void configure() { > > bind(MainPresenter.Display.class).to(MainView.class); > > } > > > } --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---