Hi,

I am trying to figure out how to organize my project so i figured I
would try to make a simple project with multiple modules to see how it
works.

I got the starter project running just fine and i can get any
modifications to the existing module to work as well. (I can't find
any tutorial which doesn't just modify the starter module)
But if i add an additional module to the project i cant get it to load
when added to a page. (Using Eclipse and the newest SDK)

If I take a look at Eclipse it seems like it has found my new module.
(If i click compile for instance, its on the module list)
But if i just try to run my app locally, the browser just gets a 404
error when trying to fetch the <modulename>.nocache.js file.

How do I "register" my new module so that it gets compiled when i
start the local server?
It compiles the sample module when the server starts but not my new
module.

My structure:

com.modulename
       Modulename.gwt.xml
com.modulename.client
       Modulename.java
com.startermodule
       Startermodule.gwt.xml
com.startermodule.client
       Startermodule.java

Modulename.gwt.xml content:

<module rename-to="modulename">
        <inherits name="com.google.gwt.user.User" />
        <entry-point class='com.modulename.client.Modulename'/>
        <source path="client"/>
</module>

Registration in the HTML file:

<script type="text/javascript" language="javascript" src="modulename/
modulename.nocache.js"></script>

What i did:

Add the <modulename>.gwt.xml file.
Add the java class implementing EntryPoint.
Add the Script tag to the html page.
Further changes needed?


If I try to compile the project, my new module is compiled just fine,
but after doing so i get the following error when trying to run it
locally.
But I should be able to run it locally without compiling it first
right?

[ERROR] [goodbye] Unable to find '<modulename>.gwt.xml' on your
classpath; could be a typo, or maybe you forgot to include a classpath
entry for source?


Any help or links to resources with can point me in the right
direction would be much appreciated.

-- 
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