【发布时间】:2014-05-13 20:09:48
【问题描述】:
我正在尝试使用 WL 控制台将一个超级简单的“Hello World”Worklight 应用程序(具有 iPhone 和 Android 环境)上传到远程服务器(Worklight + DB2)。每次推送 .wlapp 时,都会出现以下错误:
“未能部署应用程序‘HelloWorld-all.wlapp’。无效的权限字段:[http:”
我尝试上传带有和不带有以下配置的 .wlapp:
worklight.properties:
#publicWorkLightHostname=localhost
publicWorkLightHostname=50.23.127.211
# HTTP or HTTPS
publicWorkLightProtocol=HTTP
# For default port leave empty
publicWorkLightPort=9080
...
# For DB2
wl.db.url=jdbc:db2:WRKLGHT
# For Oracle
wl.db.username={the system username with DB2 access}
wl.db.password={the system password}
关于一个示例,正如我之前提到的,当您转到文件 -> 新 Worklight 项目 -> 混合应用程序 -> 完成时,它只是新 Worklight 6.1.0.1 项目附带的样板代码,添加两个环境(iPhone 和Android),然后在您右键单击该应用程序时选择 Run -> Build All。我已经尝试过使用和不使用上面的服务器配置(Paul Yuan 提到他认为部署不需要任何其他东西,因为没有身份验证 [适配器、表单等])。
【问题讨论】:
-
您能否也提供您为远程服务器包含的设置。我感觉您可能没有指向有效地址,这就是发生此错误的原因
-
1) Carlos Paez、Paul Yuan、Michael R. Rheinheimer、Eliran Ben Ishay(Mobile CoC 和 Worklight 团队...请原谅我的概括)。 2) 与messages.log 或FFDC 日志文件中的错误无关。 3) Red Hat Enterprise with Worklight + DB2 (Softlayer 实例由 DST 管理,我自己使用步骤手动设置@以下 URL:pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/… 4) 创建一个新的 WL 项目,添加两个环境并在下面选择“Build All”运行。
-
当您将 Softlayer 排除在外时会发生什么?也就是说,尝试部署到 Eclipse 中的常规 Worklight Development Server?只是为了确定正在发生这种情况的区域。可能是网络问题。
-
@user3634050,在等了整整一年后能收到您的回复,真是太好了。
标签: ibm-mobilefirst ibm-cloud-infrastructure