ibm-mobilefirst

IBM Worklight 6.0.0.1 - Error deploying adapters to server

笑着哭i 提交于 2019-12-11 22:24:28
问题 I have migrated my Worklight Server from version 5.0.6.1 to 6.0.0.1. Server is configured to work with DB2 database. Every time I'm trying to deploy adapters, always the same error is returned both from Worklight Console and from Ant scripts: [adapter-deployer] Oct 17, 2013 2:28:59 PM com.worklight.ant.deployers.AbstractDeployerTask logDeployResponse [adapter-deployer] SEVERE: The 'adapter' version 'null' is different than the version of Worklight Server '6.0.0'. [adapter-deployer] Use

IBM Worklight 6.0 - application uses an incorrect Server URL

元气小坏坏 提交于 2019-12-11 22:16:58
问题 I am trying to create a Worklight application that uses SQL adapters to retrieve data. In development it all works well but when I deploy it onto the server it can't connect to the server as it has an incorrect server URL. I then have to go to the iOS settings and update the Custom Server URL field and set the flag to use this and then it all works. I can see that this set in the Settings.bundle -> Root.plist file. However if I change this value it gets overwritten each time I rebuild. Where

How to set location triggers dynamically in Worklight?

别等时光非礼了梦想. 提交于 2019-12-11 21:54:38
问题 I need to create new geofence circles dynamically for each location I get from a Worklight Adapter. I need to do it using a loop, as I dunno how many locations are defined in backend service. Furthermore a new location can be define meanwhile the application is running. I have seen several samples for an established set of locations but I dunno how to get it working in my scenario... 回答1: I have already found a solution. This is the code in case someone needs it: var triggers = new Object();

WorkLighr 6.0 Deployement on windows 8 issue

一个人想着一个人 提交于 2019-12-11 21:43:59
问题 I am still working to ibm-worklight 6.0 mobile application , it's working fine my local eclipse development server. but i am going to install the the liberty based using WAS server while i deploye the worklight WAR file is not working. am i got the error below that, Exception thrown by application class 'com.worklight.core.auth.impl.AuthenticationFilter.doFilter:110' javax.servlet.ServletException: Worklight Project not initialized at com.worklight.core.auth.impl.AuthenticationFilter.doFilter

WL 6.0. Intalling custom war. Setting Datasrouces JNDI

徘徊边缘 提交于 2019-12-11 21:18:57
问题 Worklight 6.0 For installing custom war, during the detailed installation using the websphere admin console, in "Step 6: Map resource references to resources" it asks for the datasources jndi. Is it possible to specify these jndi entries in the worklight.properties file? In 5.0.6 in the worklight.properties there were two variables wl.db.jndi.name and wl.reports.jndi.name that in 6.0 do not exist. Thank you. 回答1: No, those two properties are not supported in the 6.0 worklight.properties. When

IBM Worklight 6.0 - How to write logs to a file and send them back?

佐手、 提交于 2019-12-11 21:14:59
问题 I am using worklight 6.0 and I am able to log data to a console using WL.Logger.debug("msg"); . My question is: How to write all of these logs to a file? My requirement is to store these logs on the mobile device itself so that if some problem occurs, the user will be able to report the problem by attaching that log file. In the app there will be a menu "Report problem", if the user clicks on that, email is opened with this log attached automatically. 回答1: Server-side logging (adapters) :

Why need worklight adapter instead direct ajax?

拜拜、爱过 提交于 2019-12-11 21:07:09
问题 I just curious, why we need worklight adapter to communicate with the database? Why not can't using direct ajax? Last time I'm using direct ajax it's not working at all. After I switch to worklight adapter it's running like charm? No problem at all. Why? 回答1: You did not provide any specific details about your scenario, like Where is that backend system located, if there is any security involved, what is the topology, etc... so why it's not working with AJAX is impossible to answer. As for

worklight server authentication with Ldap

ぐ巨炮叔叔 提交于 2019-12-11 20:41:28
问题 I want to authenticate users using ApacheDS LDAP and then integrate it with my worklight server(liberty profile). For that i modified server.xml with the following code after http endpoint element. <ldapRegistry id=”ldap” > realm=”LdapRegistry” host=”localhost” port=”10389” ignoreCase=”true” baseDN=”dc=partition1,dc=com” bindDN=”uid=admin,ou=system” userFilter=”(&(uid=%v)(objectclass=inetOrgPerson))” bindPassword=”secret” ldapType="ApacheDS 2.0.0" </ldapRegistry> in authenticationconfig.xml "

How to query or access JSONStore data from native code in IBM Worklight?

橙三吉。 提交于 2019-12-11 20:33:24
问题 My app (iOS) will have a browser built in native code and the rest in Javascript using Worklight and there's a requirement to have a shared persistent database with encryption capability for both. JSONStore seems to have all the functionality I need, but it's only available with Javascript. Is there any way I can access it in the native code? 回答1: The feature will be available in worklight 6.2, which is out now... 回答2: Correct, JSONStore is only available in the hybrid (JavaScript) API. I am

mobilefirst native ios keychain wrapper issue

半腔热情 提交于 2019-12-11 20:16:36
问题 I am working on a project for a native iOS app using xcode to develop the project, but including both MobileFirst Platform Foundation capabilities and mobile data capabilities from Bluemix. We are using a shared git repository on IBM DevOps services (jazzhub) to share project source code and work collaboratively on it. Most of the native apps I have built in the past have been on my own, so this is my first attempt to collaborate using git/xcode working together. All that is just context for