0

我在 Eclipse Juno 的 GWT 下开发了整个项目。在开发和测试它(它工作得很好)之后,我决定稍微改变一下根包结构。

sk.jakub

sk.jakub.app

不严重。我更改了 .xml 文件中的所有引用。但我仍然收到以下错误:

Loading modules
   sk.jakub.Editor1
      [ERROR] Unable to find 'sk/jakub/Editor1.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

问题显然是 GWT 试图在旧包结构下找到 Editor1.gwt.xml。包结构未更新。

我以为我忘了更新入口点模块设置,但它们很好。所以我不明白为什么会这样。

任何建议如何解决这个问题?

非常感谢您的回答:)

更新:这是我的部署描述符(对我来说似乎很好):

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
              http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         version="2.5"
         xmlns="http://java.sun.com/xml/ns/javaee">

<!-- Context params -->
  <context-param>
    <param-name>contextConfiguration</param-name>
    <param-value>WEB-INF/*-context.xml</param-value>
  </context-param>

  <!-- Listeners -->
  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>

  <!-- Servlets -->
  <servlet>
    <servlet-name>spring4gwt</servlet-name>
    <servlet-class>org.spring4gwt.server.SpringGwtRemoteServiceServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>spring4gwt</servlet-name>
    <url-pattern>/editor1/app/componentService</url-pattern>
  </servlet-mapping>
  <!-- Default page to serve -->
  <welcome-file-list>
    <welcome-file>Editor1.html</welcome-file>
  </welcome-file-list>

</web-app>
4

2 回答 2

3

在日食中,必须run, run configurations, select your project, select the arguments tab.

在程序参数窗口中确保您有更新的条目。我想你需要:

com.google.appengine.tools.development.gwt.AppEngineLauncher sk.jakub.app.Editor1
于 2012-07-18T11:55:19.767 回答
1

检查您的 GWT 编译器设置。您必须指定包含包的 GWT 模块。重构包结构时,您必须更正这些设置。

在 Eclipse 中编译时,GWT“编译”对话框列出了“入口点模块”。检查模块“Editor1”是否已列出并具有正确的包结构。

在开发模式下作为 Web 应用程序启动时,如果您的模块正确列出,您必须检查选项卡“GWT”和“参数”。

同样适用于 ant 构建。

于 2012-07-18T12:07:17.457 回答