GWT 2/Eclipse Project References

21 views
Skip to first unread message

Graham

unread,
Dec 11, 2009, 6:49:23 AM12/11/09
to Google Web Toolkit
I've successfully upgraded to GWT 2.0 using the GWT Eclipse Plugin.
All seems well, with one exception. I write all of my servlets in a
seperate project, which worked under well under 1.* by simply adding
the project to the build path.

Unfortunately after moving to GWT 2.0 the project is being ignored at
run time, and the servlets are not found (although the project appears
in the "Classpath" tab in my run configuration). Is there anyway to
specify other projects to be included in the classpath?

If I export my servlets to a JAR file and drop them into the WEB-INF/
lib directory it works, but it is a bit clunky, especially as the
servlets are modified frequently!

Graham

unread,
Dec 11, 2009, 6:51:13 AM12/11/09
to Google Web Toolkit
Sorry, just to clarify - I am referring specifically to development
mode.

Graham

unread,
Dec 11, 2009, 7:09:49 AM12/11/09
to Google Web Toolkit
This seems to be related to the AppEngine, which I don't need. Problem
solved!

Rajeev Dayal

unread,
Dec 11, 2009, 12:28:51 PM12/11/09
to google-we...@googlegroups.com
This is a general problem with having your GWT or App Engine project depend on another project that ultimately contributes artifacts to the war/WEB-INF/lib folder. We're going to address this in a future version of the plugin. 

Even though this appears to work in GWT, you'll still have to revert to the clunky technique (exporting the files from the parent project and copying them into the war/WEB-INF/lib folder of the child project) when you perform a deployment; the Google Plugin for Eclipse will not automatically do this for you.

--

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



Matt

unread,
Dec 29, 2009, 7:09:52 AM12/29/09
to Google Web Toolkit
I have the situation where the POJOs which are used within the
EntryPoint (i.e. compiled to Javascript) are located in another
Eclipse project.

If I configure the GWT project to refer to the other project the Java
compiles okay, but when attempting to compile to Javascript it
complains "No source code is available for ...".

How do you get GWT to recognise the externally located source without
compiling the lot into the webapp?

> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs­cr...@googlegroups.com>


> > .
> > For more options, visit this group at

> >http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text -
>
> - Show quoted text -

olivier nouguier

unread,
Dec 29, 2009, 7:55:57 AM12/29/09
to google-we...@googlegroups.com
Hi
 The java *source* folder must be added to the classpath.
HIH

To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.





--
A coward is incapable of exhibiting love; it is the prerogative of the brave.
--
Mohandas Gandhi

Matt

unread,
Dec 29, 2009, 9:07:13 AM12/29/09
to Google Web Toolkit
Is there a specific way to do this?

Using the GWT projetct's 'Properties' dialog I removed the referenced
project from the 'Projects' tab and added the class folder in the
'Libraries' tab, then identified its source folder.

I can navigate to the source via the 'Referenced Libraries' of the GWT
app, but a GWT compilation still results in "No source code is
available for type ..."

On Dec 29, 12:55 pm, olivier nouguier <olivier.nougu...@gmail.com>
wrote:

> > > >http://groups.google.com/group/google-web-toolkit?hl=en.-Hide quoted


> > text -
>
> > > - Show quoted text -
>
> > --
>
> > 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-we...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs­cr...@googlegroups.com>
> > .
> > For more options, visit this group at

> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> A coward is incapable of exhibiting love; it is the prerogative of the
> brave.
> --

> Mohandas Gandhi- Hide quoted text -

Murat Doner

unread,
Dec 29, 2009, 8:11:38 AM12/29/09
to google-we...@googlegroups.com
 Which plug-in do you use?

--

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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.

Matt

unread,
Dec 30, 2009, 10:40:38 AM12/30/09
to Google Web Toolkit
Google Plugin for Eclipse 3.5, version 1.2.v200912062003 running
Google Web Toolkit SDK 2.0.0.v2000912062003

> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsubs­cr...@googlegroups.com>


> > .
> > For more options, visit this group at

> >http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text -

Reply all
Reply to author
Forward
0 new messages