I'm using Worklight 6.1 Studio on a OS-X Mavericks, and get the following error while launching the Mobile Browser Simulator. This appears in the Liberty Server console, and the simulator never loads in the browser.
[WARNING ] SRVE0190E: File not found: /dojo/dojo/_base/kernel.js
Any ideas on why this could be happening?
Please edit the question and explain how exactly you are loading the MBS.
The MBS is part of Worklight Console (and available only in the Worklight Studio Eclipse plug-in).
The proper way to interact with it, is like so:
Create an app, add an environment, etc...
Right-click on the application folder > Run As > Run on Worklight Development Server
Right-click on the project folder > Open Worklight Console
Click on the preview app of the environment
Then, the MBS will load and preview your app within it.
Related
I have a hybrid app I am building for iOS. It uses Adapter authentication which has been working fine.
I recently updated from MobileFirst Studio 6.3 to 7.0. At the same time, I updated Xcode to version 6.3. My app continues to work fine and authenticates with the backend fine when run through the Browser Simulator, but running on a simulator or real device from Xcode, I get a connection timeout error. The console contains this: ERROR: Plugin 'WLAuthorizationManagerPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
I see lots of questions on SO for "plugin not found or is not a CDVPlugin", but since this is a MobileFirst plugin, I wouldn't expect it to suddenly go missing. Could this be fallout from the update?
Is this a sample project from the MFP Developer Center, or an application of your own.
Either way, you can create a new project and add the iPhone environment and compare your project's native\config.xml with the new project's native\config.xml and correct yours accordingly.
I have a hybrid Worklight app and every time I change the HTML code I have to delete the app from Admin Console, Clean from Eclipse, clear Chrome browsing data and redeploy.
How can I automatically make WL reload the HTML changes every time I redeploy a WL environment (no more remove from Console or Clean from Eclipse)?
My first response is: huh?
You are totally not supposed to do this...
Starting Worklight 6.1, after a change in any of an application's web resources (HTML, JS, CSS, images, ...), after the initial deployment of the app (Run As > Run on Worklight Development Server) you no longer even need to re-build the app.
When you preview the app via Worklight Console, all you need to do is to refresh the browser window. That's it.
You most definitely should not delete the app from Worklight Console or "Clean from Eclipse".
That said, if you are talking about previewing the "Common web resources" option in Worklight Console, what you may want to do (hopefully as a one-time action) is to:
Close Eclipse
Locate your temp folder (Windows, OS X)
Delete the wlBuildResources folder (optionally wlPreview folder as well)
Open Eclipse
Re-build
Should work.
Now that that's fixed you can click the Go/Refresh Button of the simulator to utilize the "instant preview" feature during development.
I'm currently trying to build the mobile client for IOS. There are 2 issue currently lingering:
The mobile client will be used for user to download the app from our test server. When i build, i run the Build Setting and Deploy Target script and tick the checkbox to deploy for another server. However i'm not sure the context path need to be put as what, the current default is /IBMAppCenter
When i try run the app center in the XCode simulator, the app center keep running with a loading icon. I check the log and found that it says:
ERROR: Plugin 'com.ibm.mobile.InstallerPlugin' not found, or is not a CDVPlugin.
Check your plugin mapping in config.xml
I check my native folder (ipad\native\CordovaLib) and true enough, the CDVPlugin was not in the plugin folder, but when i look into the Classes folder, the header (.h) and implementation (.m) files are there. How should i configure to make it work?
Any help is appreciated. Thanks.
About question 1:
The deploy target is irrelevant. It is only relevant for "normal" Worklight applications that are managed by a Worklight Console (so you must specify on which server your Worklight Console runs). But the Application Center client is not managed by any Worklight Console. All what you do is to build the environment, create the IPA and upload it to the Application Center server. Therefore, please only use the "Build all environments" menu item and ignore anything with deploy target!
See here: http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm.worklight.appadmin.doc%2Fappcenter%2Ft_ac_proj_imp_build.html
About question 2:
The Application Center mobile client for iOS should be in the iphone environment, not in the ipad environment. The code in the iphone environment folder should work for ipad as well but you cannot generate an ipad environment for the Application Center client, as well as you cannot delete the iphone environment and regenerated it via File > New > Environment, because when you do that, the libAppCenterInstallerLib.a gets deleted. You must take the project as it was in your original installation.
Please check IBMAppCenter/apps/AppCenter/iphone/native/appCenterLib. This should contain subdirectories (for Release, Debug ...) which contain libAppCenterInstallerLib.a. The error message that you see means that it cannot find this library; probably because you deleted the iphone environment or because you attempted to create an ipad environment.
First off let me be clear. I have several iOS devices. On the devices that have 7.0.6 I have no issues. When I updated one of the devices to 7.1 I'm having an issue. Let me explain.
On the iOS device that has 7.1 I navigate to the workbench URL and then I go to Manage applications and select install. I then get this message "Cannot install applications because the certificate for >ip address< is not vald. This process works on devices that have 7.0.6. I'm assuming there are issues with the new iOS update.
Now I did some searching and I found something that said there's an issue when trying to download an app from a HTTP site, so I changed a Web Reports setting (found in Eclipse Preferences -> Test -> Performance Test Reports -> Web Reports) to "Security is required to access reports". Thus it changed the port number to "8443". I then navigate back to the workbench URL using the https : // ip:port and try to install the app again. This time it just says Cannot open.
Any ideas on this?
Here is a workaround to be able to test with iOS 7.1
1) Get the zip of instrumented Application from developer or other who can run rtwBuildXcode.sh on a Mac and who has the source code for Application. [RmotXXXXXXXX.zip file]
2) Use RTWec "Add Application to list..." button and brows to the zip to "import" it into RTWec.
3) UnZip the zip and use iTunes (for Windows) "Add File to Library..." menu to navigate in zip folder to the instrumented iOS Device application [XXXXXXXX.ipa in “instrumented/iOS Device” folder]
4) Plug in iDevice to Windows using USB, select the App, click associated "Install" button, then "Sync" iTunes.
5) Now test as usual...
Thanks
MTWW in Worklight 6.1.0.0 and 6.1.0.1 (to be released, soon) does not support iOS 7.1.
Work is under way to provide support in a future release of Worklight.
I am new for sencha touch, so to start with it , I downloaded a (sencha touch + worklight) project from given link and imported in eclipse . it is getting build and running perfectly when I run it in worklight console i.e localhost:8080/console but when I run it in android emulator it shows blank white screen . and gives error, i have attached log file here apart from this even I tried few more project all of them shows blank white screen.
I tried to run it in different AVD i.e Android 2.1, 2.2 , 2.3 but I get same problem.
I don`t know where is the problem whether in Worklight or Sencha Touch.
The Sencha edition of Worklight Starter has been recently re-written for Worklight 6.0.
You can try this new version from this location: http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v600/WorklightStarter_Sencha.zip
See if that helps guiding you instead of the very oudated projects you have linked to.
After running into this same issue myself and finally working out how to solve it, I thought I'd share.
You need to Deploy the Worklight Adapter before you build and test your project.
Here is how:
Open WorklightStarter_Sencha project in Eclipse, open the adapters folder and highlight the WorklightStarterAdapter folder.
From the menu bar select Run -> Run As -> Deploy Worklight Adapter.
Now build and deploy your project.