0

我刚刚将我的 GWT 应用程序迁移到 2.7 版,我想开始使用 SuperDevMode。根据这个视频: http: //jeff-davis.blogspot.fr/2012/07/setting-up-gwt-25s-superdevmode.html我已经配置了 CodeServer 但我运行它时出现以下错误日志:

 Tracing compile failure path for type 'cern.edms.ui.client.service.CaddieServiceAsync'
      Errors in 'file:/C:/dev/Workspace/EDMS-APP/20151015_java7_gwt27/trunk/edms-ui/target/edms-ui-6.1.0-SNAPSHOT/WEB-INF/classes/cern/edms/ui/client/service/CaddieServiceAsync.java'
         Line 62: No source code is available for type cern.edms.ui.client.service.CaddieService; did you forget to inherit a required module?
         Line 13: No source code is available for type cern.edms.ui.shared.auth.UserSession; did you forget to inherit a required module?
         Line 41: No source code is available for type cern.edms.ui.shared.dto.common.NodeDTO; did you forget to inherit a required module?
         Line 13: No source code is available for type cern.edms.ui.shared.dto.base.BaseDTO; did you forget to inherit a required module?
         Line 27: No source code is available for type cern.edms.ui.shared.dto.caddie.CaddieDocumentDTO; did you forget to inherit a required module?
         Line 34: No source code is available for type cern.edms.ui.shared.dto.item.SubItemDTO; did you forget to inherit a required module?
         Line 48: No source code is available for type cern.edms.ui.shared.dto.IntegerListDTO; did you forget to inherit a required module?
         Line 27: No source code is available for type cern.edms.ui.shared.util.AppEnums.CaddieAction; did you forget to inherit a required module?
         Line 27: No source code is available for type cern.edms.ui.client.custom.data.BasicPagingLoadConfig; did you forget to inherit a required module?
   Tracing compile failure path for type 'cern.edms.ui.client.service.FavouritesServiceAsync'
      Errors in 'file:/C:/dev/Workspace/EDMS-APP/20151015_java7_gwt27/trunk/edms-ui/target/edms-ui-6.1.0-SNAPSHOT/WEB-INF/classes/cern/edms/ui/client/service/FavouritesServiceAsync.java'
         Line 13: No source code is available for type cern.edms.ui.shared.auth.UserSession; did you forget to inherit a required module?
         Line 13: No source code is available for type cern.edms.ui.shared.dto.base.BaseDTO; did you forget to inherit a required module?
         Line 41: No source code is available for type cern.edms.ui.client.service.FavouritesService; did you forget to inherit a required module?
         Line 27: No source code is available for type cern.edms.ui.shared.dto.navigator.NavNodeListDTO; did you forget to inherit a required module?
   Tracing compile failure path for type 'cern.edms.ui.client.service.NavigationTreeServiceAsync'
      Errors in 'file:/C:/dev/Workspace/EDMS-APP/20151015_java7_gwt27/trunk/edms-ui/target/edms-ui-6.1.0-SNAPSHOT/WEB-INF/classes/cern/edms/ui/client/service/NavigationTreeServiceAsync.java'
         Line 27: No source code is available for type cern.edms.ui.shared.dto.navigator.NavNodeDTO; did you forget to inherit a required module?
         Line 13: No source code is available for type cern.edms.ui.shared.auth.UserSession; did you forget to inherit a required module?

cern.edms.ui.shared.* 包来自通过 maven 依赖添加到 GWT 项目的外部项目。

您知道为什么在代码服务器编译应用程序时它们不可用吗?

感谢您的帮助!

4

2 回答 2

0

cern.edms.ui.shared.* 包来自通过 maven 依赖添加到 GWT 项目的外部项目。

该依赖项是否包含这些类的来源?如果没有,是否有另一个罐子(如-sources分类器)可能有它们?

如果没有类路径(或源路径)上的源,GWT 编译器将无法编译应用程序。

于 2015-10-21T14:17:03.237 回答
0

问题是我的类路径中没有所有源文件夹。我试图只添加整个项目,而不是这些项目的源文件夹。

当我开始将应用程序作为“Web 应用程序(超级开发模式)”运行而不是为 Code Server 创建 Java 应用程序时,源文件夹会自动添加(在导入依赖项目之后)到类路径中。

于 2015-10-30T15:56:17.543 回答