我在 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>