Cannot found source in GWT Project

238 views
Skip to first unread message

AlexG

unread,
Oct 25, 2010, 3:47:07 AM10/25/10
to Google Web Toolkit
Hi all,

I am trying the RequestFactory since RC1 release. It seems, that
everything was working fine, but since
yesterday, I get strange Erros in only one of my Projects:

mypackage.MyClass 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

The Error is appearing at the @ProxyFor and the @Service annotation.
The package, of the classes are:
....server.domain, the packages of the request and proxy
are: ....client.request

I don´t know, why Eclipse is saying, that the source code is missing,
I means it´s the same Project??

Strange is to, that the Project is running in DeveleopementMode and I
deployed it too, and it works withoutt any
Errors.

Does anybody have an idea, whats going wrong?

Thanks, Greets
Alex

bodyboarder20

unread,
Oct 25, 2010, 8:45:45 AM10/25/10
to Google Web Toolkit
We had the same problem w/ both the recent download of the GWT 2.1 SDK
as well as the plugin w/ STS. The fix was to download the 2.1
snapshot and drop that into the folder for the SDK plugin (you can
find the path inside of the error message you receive when you GWT
compile).

Odd that nobody else reported this.... We found it on the CellView
package...





On Oct 25, 3:47 am, AlexG <alexander.gauss.ax...@googlemail.com>
wrote:

AlexG

unread,
Oct 25, 2010, 9:08:56 AM10/25/10
to Google Web Toolkit
Thanks for your reply,

so you can say, it´s a bug in the plugIn?

I don´t get any Errors when I GWT compile, I have lots of Errors now
on several of my Projects, but everything seems to work as intended.
I think it´s very strange.
my collegue has the same Errors now too. We don´t know why they
appear.
I can only imagine a bug.

Greets
Alex

AlexG

unread,
Oct 25, 2010, 9:59:07 AM10/25/10
to Google Web Toolkit
Okay,

the problem is solved.

The problem was the GWT Designer, the new Enhanced Compilation
feature.
I uninstalled the GWT Desginer and the Erros are gone now.

Greets
Alex

Eric Clayberg

unread,
Oct 27, 2010, 9:37:36 AM10/27/10
to Google Web Toolkit
It would be helpful to see a test case project that wil reproduce
this.

On Oct 25, 9:59 am, AlexG <alexander.gauss.ax...@googlemail.com>
wrote:

Rud

unread,
Oct 27, 2010, 1:40:02 PM10/27/10
to Google Web Toolkit
I mentioned the same problem in
http://groups.google.com/group/google-web-toolkit/browse_frm/thread/48d776e472cffd05#

I tried the DynaTableRF project for learning RequestFactory. I created
an Eclipse project, deleted the Greeting stuff and copied the SRC &
WAR from the DTRf project. Then made all the adjustments to get
everything to compile. (Don't recall details but maybe adding libs,
etc.) I was left with the "cannot find" errors from the RequestFactory
classes.

I also had GWT Designer installed. I just uninstalled Designer and the
errors have gone away.

This should give you a text case project.

Rud
http://www.mysticlakesoftware.com

ahawtho

unread,
Nov 1, 2010, 11:09:24 PM11/1/10
to Google Web Toolkit
Hi Eric,

I have a project with two source directories, src/ and test/ that also
refers to the JUnit 4 library. The test/ directory refers to classes
in JUnit, and these references cause the "can not be found" errors.

I reproduced it by creating a new GWT project, adding the JUnit
library, and referring to JUnit classes from the client/ directory.
Here's the project structure:

src/pkg/Foo.gwt.xml
src/pkg/client/Foo.java
test/pkg/client/FooTest.java

FooTest.java looks like this:

package pkg.client;

import org.junit.runner.RunWith;
import org.junit.runners.Suite;

@RunWith(Suite.class)
public class FooTest
{

}


And the error looks like this:

org.junit.runners.Suite 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. FooTest.java /GWTTesting/test/pkg/client line 5


Adam

eric73

unread,
Nov 2, 2010, 1:45:22 PM11/2/10
to Google Web Toolkit
Thanks a lot !!

Eric

har_shan

unread,
Nov 13, 2010, 12:52:08 PM11/13/10
to Google Web Toolkit
Hi Eric,

Is this fixed in GWT designer or should we tweak something to not show
the error. Please advice.

Thanks.

On Nov 2, 10:45 pm, eric73 <e...@pentila.com> wrote:
> On 25 oct, 14:59, AlexG <alexander.gauss.ax...@googlemail.com> wrote:
>
>
>
>
>
>
>
>
>
> > Okay,
>
> > the problem is solved.
>
> > The problem was theGWTDesigner, the new Enhanced Compilation
> > feature.
> > I uninstalled theGWTDesginer and the Erros are gone now.
>
> > Greets
> > Alex
>
> > On 25 Okt., 15:08, AlexG <alexander.gauss.ax...@googlemail.com> wrote:
>
> > > Thanks for your reply,
>
> > > so you can say, it´s a bug in the plugIn?
>
> > > I don´t get any Errors when IGWTcompile, I have lots of Errors now
> > > on several of my Projects, but everything seems to work as intended.
> > > I think it´s very strange.
> > > my collegue has the same Errors now too. We don´t know why they
> > > appear.
> > > I can only imagine a bug.
>
> > > Greets
> > > Alex
>
> > > On 25 Okt., 14:45, bodyboarder20 <shieldsja...@gmail.com> wrote:
>
> > > > We had the same problem w/ both the recent download of theGWT2.1 SDK
> > > > as well as the plugin w/ STS.  The fix was to download the 2.1
> > > > snapshot and drop that into the folder for the SDK plugin (you can
> > > > find the path inside of the error message you receive when youGWT
> > > > compile).
>
> > > > Odd that nobody else reported this.... We found it on the CellView
> > > > package...
>
> > > > On Oct 25, 3:47 am, AlexG <alexander.gauss.ax...@googlemail.com>
> > > > wrote:
>
> > > > > Hi all,
>
> > > > > I am trying the RequestFactory since RC1 release. It seems, that
> > > > > everything was working fine, but since
> > > > > yesterday, I get strange Erros in only one of my Projects:
>
> > > > > mypackage.MyClass can not be found in source packages. Check the
> > > > > inheritance chain from yourmodule; it may not be inheriting a
> > > > > requiredmoduleor amodulemay not be adding its source path entries

Eric Clayberg

unread,
Nov 16, 2010, 8:50:26 AM11/16/10
to Google Web Toolkit
Give the latest GWT Designer 8.1 build a try...

http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html

Also note that there is a preference for turning the enhanced
compilation checking on and off...

http://code.google.com/webtoolkit/tools/gwtdesigner/preferences/gwt/preferences_builder.html
Reply all
Reply to author
Forward
0 new messages