简体   繁体   English

尽管gwt.xml文件具有正确的路径,Eclipse和GWT是否在错误的包中寻找继承的模块?

[英]Eclipse and GWT looking for inherited module in wrong package, despite gwt.xml file having correct path?

Upon attempting to run my Google Web Application I've been working on in Eclipse using GWT, it gives me this error: 尝试运行我的Google Web应用程序后,我一直在使用GWT在Eclipse中进行操作,它给了我这个错误:

"Loading modules com.example.pbot.Pbot Loading inherited module 'com.example.pbot.Pbot' [ERROR] Unable to find 'com/example/pbot/Pbot.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" “正在加载模块com.example.pbot.Pbot加载继承的模块'com.example.pbot.Pbot'[错误]在类路径上找不到'com / example / pbot / Pbot.gwt.xml”;可能是拼写错误,还是忘记了为源添加类路径条目?[ERROR] shell在doStartup方法中失败了”

All of my packages are com.pbot, com.pbot.client, com.pbot.server, etc; 我所有的软件包都是com.pbot,com.pbot.client,com.pbot.server等; I don't know where it's seeing com.example. 我不知道在哪里看到com.example。

The entry-point class in the gwt.xml file is com.pbot.client.Pbot, which is my entry point class. gwt.xml文件中的入口点类是com.pbot.client.Pbot,这是我的入口点类。 Here's the full gwt.xml: 这是完整的gwt.xml:

-->
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN"
  "http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">
<module rename-to='pbot'>
  <!-- Inherit the core Web Toolkit stuff.                        -->
  <inherits name='com.google.gwt.user.User'/>

  <!-- Inherit the default GWT style sheet.  You can change       -->
  <!-- the theme of your GWT application by uncommenting          -->
  <!-- any one of the following lines.                            -->
  <inherits name='com.google.gwt.user.theme.clean.Clean'/>
  <!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
  <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
  <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->

  <!-- Other module inherits                                      -->

  <!-- Specify the app entry point class.                         -->
    <entry-point class='com.pbot.client.Pbot'/>
  <!-- Specify the paths for translatable code                    -->
  <source path='client'/>
  <source path='shared'/>

</module>

I've cleaned, refreshed and restarted the project, I don't know what else to do. 我已经清理,刷新并重新启动了该项目,但我不知道该怎么办。 Where is it reading "com.example?" 它在哪里显示“ com.example?” Please help! 请帮忙!

Check the run configurations -> Arguments. 检查运行配置->参数。 There will be a reference of com.example.pbot.Pbot . 将有com.example.pbot.Pbot的引用。

I think, this is what Thomas mentioned. 我认为,这就是托马斯提到的。

在此处输入图片说明

在GWT页面中检查项目属性,它可能引用了最初创建的com.example

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM