gpt4 book ai didi

java - GWT 更改包结构,无法找到 gwt.xml

转载 作者:行者123 更新时间:2023-12-01 19:02:56 26 4
gpt4 key购买 nike

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

最佳答案

在 Eclipse 中,需要运行,运行配置,选择您的项目,选择参数选项卡。

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

com.google.appengine.tools.development.gwt.AppEngineLauncher sk.jakub.app.Editor1

关于java - GWT 更改包结构,无法找到 gwt.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11540404/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com