Hey,
I believe the easiest way to accomplish this is instead of using the project
dependencies, use the linked source feature.  For each of your child
projects, go to Properties > Java Build Path > Source > Link Source, and set
the location to your core project's "src" directory (and the name to
whatever you like).

jason


On Mon, Jul 20, 2009 at 2:42 PM, Wualla <wua...@walla.co.il> wrote:

>
> Hi
>
> Scenario:
>
> Core client and server code needs to be shared among several projects
> (referred to as "child projects")
>
> My try was ro create the core project as a GWT project, and add it to
> the build path of the child projects as a dependency project.
>
> Under Jetty, everything works OK except I get this message:
>
> [WARN] Server class 'com.mycompany.core.client.domainObjects.User'
> could not be found in the web app, but was found on the system
> classpath
> [WARN] Adding classpath entry '.../Core/war/WEB-INF/classes/' to the
> web app classpath for this session
>
> When deployed - to Tomcat - I get:
>
> ...
> javax.servlet.ServletException: Error instantiating servlet class
> com.mycompany.myProject.server.MyServiceImpl
> ...
> java.lang.NoClassDefFoundError: com/mycompany/core/client/domain/User
> ...
> java.lang.ClassNotFoundException:
> com.mycompany.core.client.domainObjects.User
> ...
>
> What should I do? Help please...
> >
>

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

Reply via email to