无法预览我的 mobilefirst 应用程序

Can't Preview my mobilefirst application

我已经创建了一个项目和应用程序,并且部署成功。但是当我单击 运行 As->Preview 时,它 运行 没有错误,它带我到写字板并弹出 "Failed to load document"。

如果我 运行 服务器上的项目再次成功部署,但没有给出任何输出。我该如何解决这个问题?

查看 MobileFirst Platform 开发人员中心的入门培训材料:https://developer.ibm.com/mobilefirstplatform/documentation/getting-started/


我不确定为什么您在使用 MobileFirst Platform 时甚至需要 XAMP。这是完全不需要的。关闭它。

打开 Eclipse Java EE Kepler/Luna 并确保您安装了 MobileFirst Platform Studio(您可以从 Eclipse Marketplace(帮助 > 市场)获取)。

然后,单击顶部工具栏中的 mobilefirst 按钮并创建一个新的 MobileFirst 项目 > 应用程序。

右键单击生成的 application 文件夹 (your-project\apps\your-app) 和 select 运行 As > 运行 on MobileFirst Development服务器).

右键单击生成的 项目 文件夹并 select 打开 MobileFirst Console

然后您应该会看到控制台,单击 "preview web resources" 您将看到应用程序的默认模板。


您还可以通过在 Eclipse 中打开“服务器”视图并确保 select 服务器并单击绿色 'play' 按钮启动服务器来验证服务器 运行。

此外,尝试在 eclipse 首选项中将浏览器设置为外部浏览器。