【发布时间】:2016-03-29 11:36:53
【问题描述】:
一开始我不得不承认我对 Glassfish 服务器很陌生。
我有一个非常简单的战争文件 (helloworld.war),它只包含一个 html 文件 (index.html):https://dl.dropboxusercontent.com/u/69838986/helloworld.war。
我可以将它部署到 GlassFish Server Open Source Edition 4.0,但是当我调用 http://localhost:8080/helloworld/index.html 时,我只得到一个空白页。此页面上的“查看源代码”也是空白的。
我以两种方式部署了战争文件:
- 我把它放在自动部署文件夹中。生成文件“helloworld.war_deployed”。
-命令行:asadmin 部署“C:\Temp\helloworld.war”。结果:使用名称 helloworld 部署的应用程序。命令部署成功执行。
知道为什么我的 index.html 没有出现吗?
问候, 史蒂芬
【问题讨论】:
标签: glassfish