Yep, I think the GWT general conventions asks one to put the gwt.xml
to the module root directory, and all java under 'client' or 'server',
although it is not compulsory. I'm playing around with different
renaming schemes, and building modules with those 'non-working' names
from scratch. So far I have not yet managed to make a module named
TableTree to work.

Is there a way to catch errors, in case onModuleLoad simply wont be
run? This is the confusing bit, no errors.


Anni


On Oct 6, 9:02 pm, Chris Ramsdale <[email protected]> wrote:
> Anni,
> Just to double check, I created a new GWT 1.7.1 project named TableTree with
> the same GWT.log() code within onModuleLoad(). Upon running, it did in fact
> log to the browser debug window. The one difference that I did notice was
> that my TableTree.gwt.xml file actually resides within *
> gwt.trees.tableTree.client* whereas you mentioned yours resides in *
> gwt.trees.tableTree*,
>
> Thanks,
> Chris Ramsdale
>
>
>
> On Tue, Oct 6, 2009 at 10:14 AM, Anni <[email protected]> wrote:
>
> > I'm using 1.7.1. on Linux, and ant to compile and run hosted mode.
>
> > I had exactly the same problem with the simplest possible Entry Point
> > module setup; onModuleLoad calls GWT.log("called", null). My module
> > was named TableTree and was located in
> > gwt.trees.tableTree.client.TableTree, with the gwt.xml file being in
> > the gwt.trees.tableTree, following the GWT module conventions. I named
> > my module in the gwt.xml using the 'rename-to' attribute to
> > 'tableTree'.
>
> > I couldn't get the onModuleLoad to launch in hosted or web mode, no
> > matter what. Things worked perfectly fine in three other, way more
> > complicated modules with exactly the same naming conventions, but for
> > some reason this one refused to work. I could not possibly strip it
> > down any further without losing my only way of knowing, whether the
> > onModuleLoad was called or not.
>
> > Then I changed its name from TableTree to UserTableTree. Suddenly it
> > became alive.
>
> > Go figure.
>
> > Are there possible name collisions or something similar hidden in GWT
> > that might be causing this? Similarly sampleTree.client.SampleTree was
> > a no-no, whilst aTree.client.ATree works like a charm. What gives?
>
> > I ensure you, only change made was renaming the modules. If you want
> > to see my stub-code, working vs non-working, I can put it here, but
> > I'm 100% certain, I did not change a single thing in the actual module
> > configurations to make it suddenly work, apart from the changes to
> > module and class names.
>
> > At any given time, there were no errors from GWT.
>
> > Anni
>
> > On Oct 1, 3:10 pm, Ian Bambury <[email protected]> wrote:
> > > Well, you did something wrong, then :-)
> > > Start again.
>
> > > Make one change.
>
> > > Try it.
>
> > > Make one change.
>
> > > Try it.
>
> > > Make one change.
>
> > > Try it.
>
> > > .
> > > .
> > > .
>
> > > Ian
>
> > >http://examples.roughian.com
>
> > > 2009/10/1 Viliam Durina <[email protected]>
>
> > > > I created a project using GWT Eclipse plugin and then did some
> > > > renaming and reorganization, but after that the onModuleLoad of my
> > > > EntryPoint is not called. No error or warning is produced.
>
> > > > In the war directory I have base.html file. It contains the line:
> > > > <script type="text/javascript" language="javascript" src="base/
> > > > base.nocache.js"></script>
>
> > > > In the src directory there is a file "clientspecific/base.gwt.xml":
>
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.1//
> > > > EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.1/distro-
> > > > source/core/src/gwt-module.dtd">
> > > > <module rename-to='base'>
> > > >  <!-- 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                                      -->
> > > >  <inherits name='ktechnology.client.clientspecific.gwt.KTFGwtClient'/
>
> > > >  <!-- Specify the app entry point class.                         -->
> > > >  <entry-point class='clientspecific.client.BaseTemplate'/>
> > > > </module>
>
> > > > But the entry-point class is not loaded. If I put any random text as
> > > > the class, no error is produced. If I put random text to inherits
> > > > name, error is reported, but in entry point not. In web mode both
> > > > errors are reported, but even in case of correct class, it does not
> > > > work.
>
> > > > I use GWT 1.7.1. Thanks for any help.
>
> > > > Viliam
--~--~---------~--~----~------------~-------~--~----~
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