Mobilefirst 7.1适配器调用从移动Web应用程序失败

时间:2015-11-03 21:18:41

标签: ibm-mobilefirst websphere-liberty mobilefirst-adapters mobilefirst-server

我在mobilefirst 7.1网络移动应用程序和自由服务器上工作,我的应用程序在我的开发服务器上工作正常,但是当我部署了相同的应用程序指向我的远程服务器(使用ip而不是域),但应用程序给出我403错误。我的适配器有一个

securityTest="wl_unprotected" 

如果我直接从他的网址运行我的适配器作为休息服务,它运行正常。

客户日志

Request [/worklight/apps/services/api/TestConexion/mobilewebapp/query]
worklight.js:5349 Application details header: {"applicationDetails":{"platformVersion":"7.1.0.0","nativeVersion":""}}WL.Logger.__log @ worklight.js:5349
http://xxx.xxx.xx.xx:xxxx/worklight/apps/services/api/TestConexion/mobilewebapp/query Failed to load resource: the server responded with a status of 403 (Forbidden)

服务器日志:

[11/4/15 11:41:16:877 ART] 0000006e com.ibm.ws.webcontainer.extension                            W SRVE0190E: File not found: /201509231601/login/nls/redirection.js

更多日志

 Cannot find application environment, application=TestConexion, version=null, environment=mobilewebapp
      Error code: 1, error description: INTERNAL_ERROR, error message: FWLSE0062E: An internal error occurred during browser request.  [project worklight]Cannot find application environment, application=TestConexion, version=null, environment=mobilewebapp, User Identity {wl_directUpdateRealm=null, SubscribeServlet=null, wl_authenticityRealm=null, AuthRealm=null, wl_remoteDisableRealm=null, SampleAppRealm=null, wl_antiXSRFRealm=null, wl_deviceAutoProvisioningRealm=null, wl_deviceNoProvisioningRealm=null, FarmalinkRealm=null, WASLTPARealm=null, wl_anonymousUserRealm=null}. [project worklight]

和独立模式的错误:

FWLSE0373W: Deployment of application 'TestConexion': The server is running in session independent mode, which the environment 'mobilewebapp' does not support.

有什么想法吗?

1 个答案:

答案 0 :(得分:3)

对我而言:

Deployment of application 'TestConexion': The server is running in session independent mode, which the environment 'mobilewebapp' does not support.

告诉我你正在处理基于令牌的会话而不是HTTP会话。如果您转到worklight.properties,则可以使用HTTP会话进行更改。

worklight.properties位于服务器> conf下。属性是:

mfp.session.independent=false
mfp.attrStore.type=HttpSession