osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: did you forget to inherit a required module -
msg#01516

List: GoogleWebToolkit

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index


Hey bhanu, yours is the classic repeated question.

You created a new entry point by copying an existing entry point to
another folder?
But you did not copy the entry point's module inheritance definition,
right?

GWT works this way.
Say you have an Entry point module, examples.fish.Salmon
you would need a module definition file Salmon.gwt.xml
located at
{source dir}/examples/fish.

The gwt files for module Salmon would be found under {source dir}/
examples/fish/client.
The files that get generated into the web deployment folder will be
found under {source dir}/examples/fish/public.

Let's say you have an entry point login.java under
{source dir}/examples/fish/client/Login.java,
which requires to use a library module
mygwt/libs/Fishing

Then Salmon.gwt.xml should declare the entry point as
examples.fish.client.Login
and declare that it inherits
mygwt.libs.Fishing module.
All modules must also inherit the basic module
com.google.gwt.user.User.


<module>
<inherits name="mygwt.libs.Fishing"/>
<inherits name="com.google.gwt.user.User"/>
<entry-point class="examples.fish.client.Login"/>
</module>


Now if you copied examples/fish/client/Login.java
to examples/mammals/client/Login.java

You need to reconstruct your module file and rename it say,
examples/mammals/Elephant.gwt.xml, with the entry point changed:

<module>
<inherits name="mygwt.libs.Fishing"/>
<inherits name="com.google.gwt.user.User"/>
<entry-point class="examples.mammals.client.Login"/>
</module>

You should use the eclipse plugin. But if you did, eclipse would not
inform you of any missing inheritance until you do a gwt-compile by
clicking on the little red gwt icon on the menu bar.

You cannot simply copy files around a gwt hierarchy by only renaming
their package namespace. You have to ensure that the gwt module files
are properly defined and the integrity of the inheritance hierarchy.
Otherwise, the oft familiar message would appear "did you forget to
inherit a required module?".

I think you should read up on the GWT intro or at least
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html
.

~ good luck!

--~--~---------~--~----~------------~-------~--~----~
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@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
Google-Web-Toolkit+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Thread at a glance:

Previous Message by Date:

FireFox On Mac Hosted mode

Hosted mode on Mac OS uses safari internally, can i change that to FireFox. --~--~---------~--~----~------------~-------~--~----~ 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@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to Google-Web-Toolkit+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---

Next Message by Date:

Re: did you forget to inherit a required module

Hi thanks for the reply. This is not repeated question sir. My problem is I created a package web.client.db.QueryHelper. IN that file I have written some queries which I need to get it from the database and show in the combo box. So what Ihave found the problem is I created QueryHelper.java and got the results from database directly rather than using RPC. So I got the error that "did you forget to inherit a required module?". so that problm Now I am not getting. when I am creating some some utilitiy classes, which I call in the front end side, I am getting that error. How can I solve that issue? thanks bhanu On Jun 21, 5:38 pm, Blessed Geek <blessedg...@xxxxxxxxx> wrote: > Hey bhanu, yours is the classic repeated question. > > You created a new entry point by copying an existing entry point to > another folder? > But you did not copy the entry point's module inheritance definition, > right? > > GWT works this way. > Say you have an Entry point module, examples.fish.Salmon > you would need a module definition file Salmon.gwt.xml > located at > {source dir}/examples/fish. > > The gwt files for module Salmon would be found under {source dir}/ > examples/fish/client. > The files that get generated into the web deployment folder will be > found under {source dir}/examples/fish/public. > > Let's say you have an entry point login.java under > {source dir}/examples/fish/client/Login.java, > which requires to use a library module > mygwt/libs/Fishing > > Then Salmon.gwt.xml should declare the entry point as > examples.fish.client.Login > and declare that it inherits > mygwt.libs.Fishing module. > All modules must also inherit the basic module > com.google.gwt.user.User. > > <module> >  <inherits name="mygwt.libs.Fishing"/> >  <inherits name="com.google.gwt.user.User"/> >  <entry-point class="examples.fish.client.Login"/> > </module> > > Now if you copied examples/fish/client/Login.java > to examples/mammals/client/Login.java > > You need to reconstruct your module file and rename it say, > examples/mammals/Elephant.gwt.xml, with the entry point changed: > > <module> >  <inherits name="mygwt.libs.Fishing"/> >  <inherits name="com.google.gwt.user.User"/> >  <entry-point class="examples.mammals.client.Login"/> > </module> > > You should use the eclipse plugin. But if you did, eclipse would not > inform you of any missing inheritance until you do a gwt-compile by > clicking on the little red gwt icon on the menu bar. > > You cannot simply copy files around a gwt hierarchy by only renaming > their package namespace. You have to ensure that the gwt module files > are properly defined and the integrity of the inheritance hierarchy. > Otherwise, the oft familiar message would appear "did you forget to > inherit a required module?". > > I think you should read up on the GWT intro or at > leasthttp://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.... > . > > ~ good luck! --~--~---------~--~----~------------~-------~--~----~ 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@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to Google-Web-Toolkit+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---

Previous Message by Thread:

did you forget to inherit a required module

Hi, I am creating a small application. In my application I have created LoginScreen, and some other screen also. when the user login, it is forwarded to other screen. My loginscreen is in web.client.LoginScreen.java.This is the main class. In my application I am using Controller and Model. So far it is working fine. That means I could validate from the database,I could write into database,etc. Now the problem is I create one QueryHelper.java in web.client.query package. So whenever the I tried to Call QueryHelper in LoginScreen it is showing error saying "did you forget to inherit a required module?". But like that some other classes I have already made in other packages and when I call that files it is working fine. LIke LoginController,LoginModel,etc. No problem.But when I create a new QueryHelper it is showing error. I changed the package of queryhelper and put into client folder. still this error is showing. This problem happened suddenly. I tried many times. I couldnot figure out. Please help me. Thanks bhanu lakshmi. --~--~---------~--~----~------------~-------~--~----~ 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@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to Google-Web-Toolkit+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---

Next Message by Thread:

Re: did you forget to inherit a required module

Hi thanks for the reply. This is not repeated question sir. My problem is I created a package web.client.db.QueryHelper. IN that file I have written some queries which I need to get it from the database and show in the combo box. So what Ihave found the problem is I created QueryHelper.java and got the results from database directly rather than using RPC. So I got the error that "did you forget to inherit a required module?". so that problm Now I am not getting. when I am creating some some utilitiy classes, which I call in the front end side, I am getting that error. How can I solve that issue? thanks bhanu On Jun 21, 5:38 pm, Blessed Geek <blessedg...@xxxxxxxxx> wrote: > Hey bhanu, yours is the classic repeated question. > > You created a new entry point by copying an existing entry point to > another folder? > But you did not copy the entry point's module inheritance definition, > right? > > GWT works this way. > Say you have an Entry point module, examples.fish.Salmon > you would need a module definition file Salmon.gwt.xml > located at > {source dir}/examples/fish. > > The gwt files for module Salmon would be found under {source dir}/ > examples/fish/client. > The files that get generated into the web deployment folder will be > found under {source dir}/examples/fish/public. > > Let's say you have an entry point login.java under > {source dir}/examples/fish/client/Login.java, > which requires to use a library module > mygwt/libs/Fishing > > Then Salmon.gwt.xml should declare the entry point as > examples.fish.client.Login > and declare that it inherits > mygwt.libs.Fishing module. > All modules must also inherit the basic module > com.google.gwt.user.User. > > <module> >  <inherits name="mygwt.libs.Fishing"/> >  <inherits name="com.google.gwt.user.User"/> >  <entry-point class="examples.fish.client.Login"/> > </module> > > Now if you copied examples/fish/client/Login.java > to examples/mammals/client/Login.java > > You need to reconstruct your module file and rename it say, > examples/mammals/Elephant.gwt.xml, with the entry point changed: > > <module> >  <inherits name="mygwt.libs.Fishing"/> >  <inherits name="com.google.gwt.user.User"/> >  <entry-point class="examples.mammals.client.Login"/> > </module> > > You should use the eclipse plugin. But if you did, eclipse would not > inform you of any missing inheritance until you do a gwt-compile by > clicking on the little red gwt icon on the menu bar. > > You cannot simply copy files around a gwt hierarchy by only renaming > their package namespace. You have to ensure that the gwt module files > are properly defined and the integrity of the inheritance hierarchy. > Otherwise, the oft familiar message would appear "did you forget to > inherit a required module?". > > I think you should read up on the GWT intro or at > leasthttp://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.... > . > > ~ good luck! --~--~---------~--~----~------------~-------~--~----~ 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@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to Google-Web-Toolkit+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!