无法从 Springsource Tool Suite 在 Google AppEngine 上部署 Roo/GWT 应用程序

发布于 2024-09-10 01:51:39 字数 1157 浏览 7 评论 0原文

我遵循了这个优秀的教程但是,正如它所做的那样不涉及部署部分,我尝试自己完成。

因此,我在 Ubuntu 中安装了 Springsource Tool Suite。 然后,我创建一个“demo1”Roo 项目。 接下来,使用内置的 Roo Shell,我录制了以下命令:

persistence setup --provider DATANUCLEUS --database HYPERSONIC_IN_MEMORY 
entity --class ~.server.domain.Employee
field string --fieldName firstName --sizeMin 3 --sizeMax 20
field string --fieldName lastName --sizeMin 3 --sizeMax 20
gwt setup

在“Webkit 选项”中选中“使用 Google Webkit”后,项目运行完美! 然后,为了将应用程序部署到 App Engine,我录制了以下命令:

persistence setup –database GOOGLE_APP_ENGINE –provider DATANUCLEUS

该命令运行没有任何问题。 然后,我设置 AppEngine 选项(应用程序名称和版本...)并单击“部署 App Engine 项目”图标。

弹出窗口会显示并询问项目名称、电子邮件和密码。 我提供了所有这些信息并单击“部署”。

不幸的是,发生了错误,弹出窗口显示以下错误消息:

GWT compilation failed

在控制台中,我收到以下错误:

Compiling module com.springsource.demo1.gwt.ApplicationCommon
   [ERROR] Module has no entry points defined

我认为问题是 GWT 找不到 war 文件... 有人通过单击“部署”图标成功部署了 GWT/Roo 应用程序吗?

非常感谢,

问候。

I followed this excellent tutorial but, as it doensn't cover the deployment part, I tried to do it by myself.

So, I installed Springsource Tool Suite in Ubuntu.
Then, I create a "demo1" Roo project.
Next, with the built-in Roo Shell, I taped the following commands:

persistence setup --provider DATANUCLEUS --database HYPERSONIC_IN_MEMORY 
entity --class ~.server.domain.Employee
field string --fieldName firstName --sizeMin 3 --sizeMax 20
field string --fieldName lastName --sizeMin 3 --sizeMax 20
gwt setup

After I checked "Use Google Webkit" in "Webkit Options", the project ran perfectly!
Then, to deploy the application to the App Engine, I taped the following command:

persistence setup –database GOOGLE_APP_ENGINE –provider DATANUCLEUS

which runs without any problem.
Then, i setup the AppEngine options (Application name and version ...) and clicked on the "Deploy App Engine Project" icon.

A popup shows and asks for the project name, email and password.
I gave all these information and clicked on "Deploy".

Unhopefully, an error occured and a popup showed with the following error message:

GWT compilation failed

And in the console, I got the following error:

Compiling module com.springsource.demo1.gwt.ApplicationCommon
   [ERROR] Module has no entry points defined

I think that the problem is that GWT can't find the war file ...
Anyone succeded in deploying a GWT/Roo application by clicking on the "Deploy" icon?

Thank you very much,

Regards.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

遥远的她 2024-09-17 01:51:39

你需要做的就是去Google -> Webtool Kit 设置...并从 Entry Point Modules 列表中删除 ApplicationCommon,您可能还需要删除更多内容,因此仅保留带有入口点的配置文件。

一些背景信息:该错误是由 GWT 编译器生成的。部署 GWT 时会将 Java 源代码编译为 JavaScript。 GWT 使用扩展名为:.gwt.xml 的模块文件,其中包含编译器的配置信息。必须至少在这些配置文件之一中指定入口点。默认情况下,Webtool Kit 设置包含项目中的所有 gwt.xml 文件(可能有 4 个),而只应指定那些带有入口点的文件。

What you need to do is go to the Google -> Webtool Kit Settings... and remove ApplicationCommon from the Entry Point Modules list, and you probably need to remove some more, so only the configuration file with the Entry point remains.

Some background: The error is generated by the GWT compiler. When deploying GWT compiles the Java source to JavaScript. GWT uses module files with the extension: .gwt.xml which contain configuration information for the compiler. In at least one of these configuration files an entry point must be specified. By default the Webtool Kit Settings contain all those gwt.xml files from your project (there are probably 4), while only those with an entry point should be specified.

与他有关 2024-09-17 01:51:39

您使用的是哪个版本的 STS?我认为这可能会在 STS 2.3.3.M2 中得到解决...

What version of STS were you using? I think this may be fixed with STS 2.3.3.M2...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文