I added the file Db.gwt.xml to the package de.stsch.j2ee.db of the subproject and added a
<inherits name='de.stsch.j2ee.db.Db'/> to the module XML file of my main application and I still get an Compiler error: de.stsch.j2ee.db.Employee can not be found in source packages. Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly. I am still wondering how Eclipse could resolve this dependency; do you have any plugins installed? How can you run the GWT Compiler from inside eclipse? Why do even the simplest things have to be so complicated? I have a separate project and would like to add the contained resources as a client resource to GWT so that they get compiled into Javascript... If it works for you, can you please explain (maybe step by step) what you did and how your project structure looks like? -Steffen- On 29 Mrz., 20:00, Ian Bambury <[email protected]> wrote: > If you run the GWT compiler from Eclipse it will work - I never use the > standalone cmd file, so I can't help there. > The de.stsch.j2ee.db.DB.gwt.xml needs to have entries so that the compiler > knows what GWT classes you are using. > > I have two of these files - one to test the subproject and one when I > include it in other projects. The latter one looks like this for me > > <module rename-to='RXFramework'> > <inherits name='com.google.gwt.user.User'/> > <inherits name='com.google.gwt.json.JSON'/> > </module> > > The other one has the same plus an entry point. > > Ian > > http://examples.roughian.com > > 2009/3/29 <[email protected]> > > > > > Unfortunately this didn't work. Yes, I am using Eclipse and > > db.Employee is an entity that gets filled in the backend on the server > > and that I want to introduce to the client. If I add the subproject to > > the main project via Java Build Path then Eclipse knows about this > > relationship but what if I run the GWT Compiler? It doesn't use the > > Eclipse settings. > > > What do I need to have in de.stsch.j2ee.db.DB.gwt.xml? Just an empty > > file or any contents? > > > -Steffen- > > > On 29 Mrz., 19:30, Ian Bambury <[email protected]> wrote: > > > I'm assuming you are using Eclipse and that db.Employee is something you > > use > > > on the client side somehow. > > > You need a module file, say: > > > > de.stsch.j2ee.db.DB.gwt.xml > > > > In the main project's properties, in Java Build Path, under Projects, > > > include the sub-project. > > > > In the main project's module file, you need to inherit the subproject, > > > something like: > > > > <inherits name='cde.stsch.j2ee.db.DB'/> > > > And that, as far as I remember, is it. > > > > If it doesn't work, let me know and I'll do it for real as opposed to > > from > > > memory. > > > > Cheers, > > > > Ian > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
