View Full Version : com.extjs.gxt.ui.client.mvc.View - No source code is available for type did you forge

4 Jan 2012, 11:38 PM

I have a class that extends com.extjs.gxt.ui.client.mvc.View.
On compilation I am receiving the error

Line 16: No source code is available for type MyClass; did you forget to inherit a required module?

I gather this is because I am an import in my gwt.xml but what?

I have the following:
<inherits name='com.extjs.gxt.ui.GXT' />
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.extjs.gxt.charts.Chart' />


5 Jan 2012, 2:06 AM
Set the LogLevel of your run configuration to TRACE.
May be you got more informations.

Hope that helps.

5 Jan 2012, 4:58 AM
This is the problem
extends Unresolved type com.extjs.gxt.ui.client.mvc.View

Does that not get imported
<inherits name='com.extjs.gxt.ui.GXT' />

5 Jan 2012, 5:17 AM
If you have not mixed GXT versions or your project configurations, the View class will be included.
Look at the path of the include and the package. This fits Googles naming conventions.

You will have a problem with a Constants class, an image reference or something else. That's why I said set the LogLevel to TRACE and look if you find more infos.

If your class that extends the View class have a reference to a class, that is created by GWT.create and that creates fails, you will got such kind of error messages

5 Jan 2012, 5:46 AM
Sorry I don't quite understand what you mean.

If I remove the class in question my app compiles fine.

When I added it I get the error. I have stripped the class down to nothing and it still errors

package com.ardor.client.web.view;

import com.extjs.gxt.ui.client.mvc.AppEvent;
import com.extjs.gxt.ui.client.mvc.Controller;
import com.extjs.gxt.ui.client.mvc.View;

public class AppView extends View {

public AppView(Controller controller) {
// TODO Auto-generated constructor stub

protected void handleEvent(AppEvent event) {
// TODO Auto-generated method stub

I have logging on trace and the only thing of interest I see is

[ERROR] <no source info>: public class com.ardor.client.web.view.AppView
extends Unresolved type com.extjs.gxt.ui.client.mvc.View
/* methods */
[unresolved] public void <init>(com.extjs.gxt.ui.client.mvc.Controller)
[unresolved] protected void handleEvent(com.extjs.gxt.ui.client.mvc.AppEvent)

5 Jan 2012, 3:09 PM
This is a little off topic but I am giving up smoking at the moment 8-|

But how is this going to get my GWT compiling :)

9 Jan 2012, 4:30 PM
The problem was damn package names. It took me forever to notice

My entry point was

The problem class was

I don't really understand why this was a problem but its fixed now :D

9 Jan 2012, 11:22 PM
i'll think it's because your view is Not inside the Client-Package of your Project. So GWT will not Compile your view, because of the missing source file. Under this circumstances the error Message is valid ... ;-)