简体   繁体   English

将 GWT Web 应用程序部署到 Eclipse 中的 Jetty 7?

[英]Deploy GWT Web Application to Jetty 7 in Eclipse?

I'm attempting to configure a standard Jetty (7.4) runtime in Eclipse that I can deploy my GWT webapp to (we're going to be using Jetty in the field).我正在尝试在 Eclipse 中配置一个标准的 Jetty (7.4) 运行时,我可以将我的 GWT webapp 部署到(我们将在现场使用 Jetty)。

After I install the proper Eclipse plugin and set up the server runtime, when I get to the dialog where it actually asks which webapps to deploy, I can see my application in the list on the left, but when I select it, I get the message "Jetty version 7.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modules."在我安装了正确的 Eclipse 插件并设置了服务器运行时,当我进入对话框,它实际上询问要部署哪些 webapps 时,我可以在左侧的列表中看到我的应用程序,但是当我 select 它时,我得到了消息“Jetty 7.0 版仅支持 J2EE 1.2、1.3、1.4 和 Java EE 5 Web 模块。”

But, when I build my application's WAR, I'm able to deploy it on Jetty manually.但是,当我构建应用程序的 WAR 时,我可以在 Jetty 上手动部署它。

Is there something special I need to configure within the project to make Eclipse think it can be deployed to Jetty?我需要在项目中配置一些特殊的东西以使 Eclipse 认为它可以部署到 Jetty 吗?

By the way, I am able to deploy the application into a Tomcat 7.0 server configuration without a problem.顺便说一句,我可以毫无问题地将应用程序部署到 Tomcat 7.0 服务器配置中。

I was finally able to make this work.我终于能够完成这项工作。

One of my project facets was set as "Dynamic Web Module" version 3.0.我的项目方面之一被设置为“动态 Web 模块”版本 3.0。 Apparently Jetty doesn't support this.显然 Jetty 不支持这一点。

I had to manually go into the project config and change this to version 2.5, and Eclipse now lets me add this to Jetty.我不得不手动将 go 到项目配置中并将其更改为 2.5 版,Eclipse 现在让我将其添加到 Jetty。

Note that this could cause problems for some web apps, but mine seems to be okay.请注意,这可能会导致某些 web 应用程序出现问题,但我的似乎没问题。

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

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