我在我的一个项目中使用了 IBM MobileFirst 平台。使用它,我创建了一个 APK 文件(原生 Android)和一个 WAR 文件。 APK 文件使用 HTTPURLConnection 调用 Web 服务。 Worklight Web 服务依次调用我的企业环境中的另一个外部托管的 Web 服务。
我已经使用 Emulator 和 Worklight Eclipse 环境以及我的企业服务器在我的本地机器上测试了这个流程。
现在,我正在尝试在外部 Web 服务器上托管 Worklight Web 服务。
- 我能否在 TOMCAT 服务器上执行此 WAR 文件,还是它只能与 IBM Websphere 一起使用?
- 如果是,我已经尝试部署到 TOMCAT 并且成功了。但是当我尝试“启动”它时,它没有给出错误。该错误可在容器日志文件中找到。有人可以帮我看看我应该去哪里找吗?
另外,我也在尝试部署在 IBM Websphere 上。它已在 8.5 版上成功部署并且正在运行。现在如何从 Android 客户端应用访问它?
最佳答案
have created the Mobile First Platform Server 6.0 Profile using below command:create server MFPServer But when i start MFPServer i didn't get appcenterconsole on my browser
appcenter 没有作为开发环境的一部分安装。您描述的是使用 CLI 工具创建开发服务器。
Can I execute this WAR file on a TOMCAT Server or will it only work with IBM Websphere?
Worklight 同时支持 WebSphere Liberty 和 Tomcat。
... The error is to be found in the Container Log files. Can someone help me as where I should look for?
在您的 Tomcat 目录中找到日志文件夹
Another thing, I am also trying to deploy on IBM Websphere. It has deployed successfully on version 8.5 and it is running also. Now how do I access it from Android client app?
- 确保 wlclient.properties 文件配置有服务器的主机名/IP
- 确保将 .wlapp 和 .adapter 文件部署到同一台服务器
关于android - 如何将 .war 文件部署到 WebSphere 8.5 服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34631993/