将GWT应用程序放在Jetty上

Noo*_*oor 0 deployment gwt jetty

有人可以帮我把我的GWT应用程序放在Jetty上.我不是在使用maven.我的构建路径中有库.

首先,我正在将war文件夹展开并将其复制到jetty/webapps中,然后在文件夹上下文中.

  1. 我在文件夹web应用程序中放置了一个名为BiddingSystem的folde,它是一个已爆炸的文件夹而不是.war文件

  2. 在文件夹jetty/context中,有一个文件test.xml我将文件重命名为BiddingSystem.xml

并且还编辑了BiddingSystem.xml的内容,最后是BiddingSystem.xml的内容

<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<configure class="org.mortbay.jetty.webapp.WebAppContext">
  <set name="contextPath">/BiddingSystem</set>
  <set name="war"><systemproperty name="jetty.home" default="."/>/webapps/BiddingSystem</set>
</configure>
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

替代文字

Hie*_*iep 5

要在Jetty上部署GWT应用程序,通常不需要配置任何东西.

将您的'war'文件夹(由GWT在eclipse项目中创建)复制到JETTY_HOME\webapps,将名称'war'更改为您喜欢的任何示例"StockWatcher",这样您就可以拥有JETTY_HOME\webapps\StockWatcher.现在启动jetty服务器并在Chrome上尝试http:// localhost:8080/StockWatcher :)