GWT编译器找不到gwt.xml [英] GWT Compiler can't find gwt.xml

查看:134
本文介绍了GWT编译器找不到gwt.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经更改并重命名了我的GWT项目的包结构,并且当
试图将该项目作为Web应用程序运行时,该模块不是
,我收到以下消息:

I have changed and renamed my package structure of my GWT project, and when trying to run the project as a web application, the module isn't found and I get the following message:


[错误]无法在
classpath中找到'de / xx / focus / My_Projekt.gwt.xml';可能是一个错字,或者你可能忘记为源代码包含类路径
条目?

[错误] shell在doStartup方法中失败

[ERROR] Unable to find 'de/xx/focus/My_Projekt.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] shell failed in doStartup method

哪个类用于加载模块,以及分别在哪里更新新路径?

Which class is used to load the module, and where to update the new path, respectively?

推荐答案

我花了一个小时盯着我的gwt.xml文件,试图找出重组项目后我做错了什么。原来它是在客户端的一个子包中,而不是客户端本身。它也在很多软件包和子软件包的底部。所以在Eclipse的树形视图中,它看起来像是在正确的位置。最后我意识到这是一个太深的级别。面掌时间。我也会研究运行配置。如果您使用的是Eclipse,并且您经常执行运行方式和Web配置,则此时执行运行方式并选择子菜单底部的运行配置。通过选项卡浏览它,但特别是研究参数选项卡并查看是否需要更新。您也可以进入设置视图Project - > Properties - > Run / Debug Settings。

I spent an hour staring at my gwt.xml file trying to figure out what I had done wrong after restructuring a project. Turned out it was in a sub-package of client instead of client itself. Right at the bottom of a long list of packages and sub-packages too. So in Eclipse's tree view, it looked like it was in the right place. Finally I realized it was one level in too deep. Face-palm time. I would also study the Run Configurations. If you are using Eclipse and you regularly do a "Run As" then "Web Configuration", this time do "Run As" and select "Run Configurations" at the bottom of the sub-menu. Go through it, tab by tab, but in particular study the "Arguments" tab and see if it needs to be updated. You can also get to the settings view the Project -> Properties -> Run/Debug Settings.

这篇关于GWT编译器找不到gwt.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆