Web services 无法在glassfish服务器上运行已部署的应用程序

Web services 无法在glassfish服务器上运行已部署的应用程序,web-services,glassfish,Web Services,Glassfish,我已经在Ubuntu 16.04实例上成功安装了Glassfish。 我的Web服务的部署也很成功,当我启动应用程序时,我得到一个页面,上面写着 Web Application Links If the server or listener is not running, the link may not work. In this event, check the status of the server instance. After launching the web applicatio

我已经在Ubuntu 16.04实例上成功安装了Glassfish。 我的Web服务的部署也很成功,当我启动应用程序时,我得到一个页面,上面写着

Web Application Links
If the server or listener is not running, the link may not work. In this event, check the status of the server instance. After launching the web application, use the browser's back button to return to this screen.
当我点击一个链接(HTTP和HTTPS)时,我得到一个404错误。 我推测我的服务器一定出了问题,但是所有关于设置glassfish服务器的教程似乎都是开箱即用的,所以我不知道为什么它在我的案例中不起作用。 我也找不到在哪里检查侦听器或服务器实例,以及它们应该如何配置


最后一点要提的是:我以前从未使用过glassfish,在将Web服务发送给将自己部署它的客户之前,我只需要测试它是否按预期工作。

您在*.war文件中使用了什么目录结构?默认情况下,静态文件(如index.html)应放在根文件夹中,而不是WEB-INF中。因此,典型的目录结构如下所示:

myWebApp/
  WEB-INF/
    web.xml
    lib/
      MyLib.jar
    classes/
      mypackage/
        MyServlet.class
  index.html
  index.jsp

我使用REST部署Web服务,我也有同样的问题。 我的结构是:

MyProject
    .idea
    lib
    out
    src
        MyApp
        Helloworld
    web
        web.xml
    WEB-INF
    index.jsp
    MyProject.iml
External Librairies

我学了一门芭蕾舞,我应该在
http://localhost:port/appArtefact/helloworld

您能够登录到glassfish管理控制台吗?用户名:admin密码:adminadmin项目结构中确实存在错误。谢谢如果你有问题,就用提问