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

Reply via email to