2013-07-17 3 views
1

Я разрабатываю простое веб-приложение. Я использую sencha (gxt) для отображения диаграммы для пользователя.Ошибка при компиляции проекта GWT (Sencha Framework)

Когда я составляю проект, у меня возникают следующие ошибки.

[ERROR] Errors in 'file:/E:/eclipse%20Workspace/Chart_Demo/src/com/project/client/Chart_Demo.java' 
     [ERROR] Line 74: No source code is available for type com.sencha.gxt.chart.client.chart.Chart<M>; did you forget to inherit a required module? 

[ERROR] Line 78: No source code is available for type com.sencha.gxt.chart.client.draw.Gradient; did you forget to inherit a required module? 

[ERROR] Line 79: No source code is available for type com.sencha.gxt.chart.client.draw.RGB; did you forget to inherit a required module? 

[ERROR] Line 84: No source code is available for type com.sencha.gxt.chart.client.chart.axis.CategoryAxis<M,V>; did you forget to inherit a required module? 

[ERROR] Line 85: No source code is available for type com.sencha.gxt.chart.client.chart.Chart<M>.Position; did you forget to inherit a required module? 

[ERROR] Line 87: No source code is available for type com.sencha.gxt.chart.client.draw.sprite.TextSprite; did you forget to inherit a required module? 

[ERROR] Line 102: No source code is available for type com.sencha.gxt.chart.client.chart.series.BarSeries<M>; did you forget to inherit a required module? 


[ERROR] Unable to find type 'com.project.client.Chart_Demo' 
     [ERROR] Hint: Previous compiler errors may have made this type unavailable 
     [ERROR] Hint: 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 
Exception in thread "pool-1-thread-1" java.lang.RuntimeException: Unable to read from byte cache 

Пожалуйста, помогите мне решить эту проблему.

ответ

0

Вы должны наследовать модули GXT в главном модуле (yourapp.gwt.xml)

<inherits name="com.extjs.gxt.ui.GXT" /> 
<inherits name="com.extjs.gxt.themes.Themes" /> 
<inherits name="com.extjs.gxt.charts.Chart" /> 
2

wilome прав. <inherits> -tags в дескрипторе модуля отсутствуют.

Но, похоже, Ranjeet использует GXT 3.

В этом случае schould быть:

<inherits name='com.sencha.gxt.ui.GXT'/> 
<inherits name='com.sencha.gxt.chart.Chart' /> 
Смежные вопросы