我有一个我制作的 java 应用程序,这周我尝试将 GWT 添加到它。尝试在 GWT Designer 中查看我的课程时出现此错误:
Error loading module(s).
GWT Designer can't load a module because of error in gwt.xml module description, incorrect resource which requires processing with GWT generator or by some other configuration error.
Please check your $project_dir/.gwt/.gwt-log for GWT-specific errors (not GWT Designer errors).
This log has the following error messages:
[ERROR] Errors in 'file:/C:/Temp/essd/Projecto/anacom/src/main/java/anacom/shared/dto/OutputObterModoDto.java'
[ERROR] Line 8: No source code is available for type anacom.domain.Modo; did you forget to inherit a required module?
[ERROR] Errors in 'file:/C:/Temp/essd/Projecto/anacom/src/main/java/anacom/shared/dto/TelemovelDetalhadoDto.java'
[ERROR] Line 8: No source code is available for type anacom.domain.Modo; did you forget to inherit a required module?
[ERROR] Errors in 'file:/C:/Temp/essd/Projecto/anacom/src/main/java/anacom/shared/exception/TelemovelModoException.java'
[ERROR] Line 17: No source code is available for type anacom.domain.Modo; did you forget to inherit a required module?
[ERROR] Errors in 'file:/C:/Temp/essd/Projecto/anacom/src/main/java/anacom/shared/dto/OutputObterModoDto.java'
[ERROR] Line 8: No source code is available for type anacom.domain.Modo; did you forget to inherit a required module?
[ERROR] Unable to find type 'anacom.presentationserver.client.AnacomGWT'
[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
所有有该错误的文件都导入了类 anacom.domain.Modo。该类是一个枚举,仅包含以下内容:
package anacom.domain;
public enum Modo {
LIGADO, DESLIGADO, OCUPADO, SILENCIO
}
此外,在 gwt.xml 中,我继承了模块并定义了入口点类。在过去的三天里,我一直在努力解决这个问题。如果你能帮助我,我将不胜感激。抱歉,如果这是一个新手问题,但在我通过网络搜索时,我没有找到解决方案。非常感谢!