02-05-2013 09:27 AM
Hi,
I'm a Cascades developer and I started developing WebWorks (didn't start yet actually, just setuped my environment and read the docs) 'cos I wanted to develop for PlayBook also.
The problem is, although I have everything set up exactly as in the HTML5/WebWorks docs (I'm basically talking about the HelloWorld tutorial), I can't deploy my app on my PlayBook (real one; not the simulator).
Tried both Ripple (Chrome Extension) and CLI, but when deploying my app to the PlayBook, I get:
Info: Sending request: Install
Info: Action: Install
Info: File size: 418873
Info: Installing ...
Info: Processing 418873 bytes
actual_dname::
actual_id::
actual_version::
result::failure 881 application author does not match debug token author
Any idea why this is? I'm more than sure that my config.xml file has the same name (between the <author></author> tags) I used for debug tokens. I checked Settings -> Security -> Development on my PlayBook and its the same author name displayed there also.
Can someone please help me? I'm really stuck on this one... I'm using MacOS btw.
Thanks.
Solved! Go to Solution.
02-05-2013 10:43 AM
Hey Roshnal,
Welcome to WebWorks !
First, have you saved a copy of your debugtoken.bar in the root of your webworks SDK directory? This is the way that WebWorks compiles a non-signed bar file to be usable on the device.
Instructions from https://developer.blackberry.com/html5/documentati
1. Create a copy of your debug token .bar file and name it debugtoken.bar.
2. Move the debugtoken.bar file to the root of the BlackBerry 10 WebWorks SDK installation folder. The installation folder location varies based on your operating system:
-- Windows XP: C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK <version> -- Windows 7: C:\Program Files (x86)\Research In Motion\BlackBerry 10 WebWorks SDK <version> -- Mac OS: /Developer/SDKs/Research In Motion/BlackBerry 10 WebWorks SDK <version>
3. Once you've moved and renamed the debug token file, you do not have to do anything else to set the debug token.
Hope that helps -- good luck!
02-05-2013 10:56 AM
Thanks for your reply! Yes, I read that, but it says "BlackBerry 10". I did the "Playbook OS" part below that- typing the path of the debugtoken.bar between the <debugToken> tags in bbwp.properties file.
02-05-2013 10:59 AM
Roshnal wrote:
Thanks for your reply! Yes, I read that, but it says "BlackBerry 10". I did the "Playbook OS" part below that- typing the path of the debugtoken.bar between the <debugToken> tags in bbwp.properties file.
Ahh sorry -- I completely misread your post -- i'll take another crack at it ![]()
02-05-2013 11:01 AM
Hey Roshnal,
Can you post a copy of your bbwp.properties file as well as your config.xml file if you can? Thanks!
02-05-2013 11:06 AM
Sure, here they are:
config.xml
<?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0.0" id="HelloWorldApp"> <name> Hello World </name> <author> Cuibono Studios </author> <description> Hello World location display </description> <icon src="images/icon.png"/> <content src="index.html"/> <rim:permissions> <rim:permit>read_geolocation</rim:permit> </rim:permissions> </widget>
bbwp.properties
<?xml version="1.0" encoding="UTF-8"?> <wcp> <additional>-quiet</additional> <java>/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home</java> <wcp_template>AirAppTemplates</wcp_template> <air_template>AirAppTemplates</air_template> <tablet_sdk>/Developer/SDKs/Research In Motion/BlackBerry WebWorks SDK for TabletOS 2.2.0.5/bbwp/blackberry-tablet-sdk</tablet_sdk> <extension_repository>ext</extension_repository> <debug_token>/Users/Roshnal/Downloads/BlackBerry WebWorks/keys.bar</debug_token> </wcp>
02-05-2013 11:18 AM
Hey Roshnal,
Hmm -- everything looks like it's the way it's suposed to be -- at this point we should try eveything. Try to do the following:
<author>Cuibono Studios</author>
<debug_token>/Users/Roshnal/Downloads/debugtoken.bar</debug_token>
Try those out and let me know how it goes. Good luck!
02-05-2013 11:36 AM
Tried both of 'em- no luck. I'm still getting the failure 881... error. However, when I did your 2nd suggestion, I got the following output (Notice the space-differences).
Info: Processing 418879 bytes actual_dname:: actual_id:: actual_version:: result::failure 881 application author does not match debug token author
And this is the one I got earlier:
Info: Processing 418888 bytes actual_dname:: actual_id:: actual_version:: result::failure 881 application author does not match debug token author
The byte sizes are different, and the actual_* parts have different spacings. I changed it back, and got the above (usual-spaced output).
02-05-2013 11:44 AM
Hey Roshnal,
Well that bites -- next step is to inspect your debug token bar file by using this command:
<PATH TO WEBWORKS SDK>/dependencies/tools/bin/blackberry-airpackager -listManifest <PATH TO DEBUG TOKEN>/debugtoken.bar
This will produce a list of information. If you can paste that data here that'll be great. Thanks!
02-05-2013 11:53 AM
I didn't find a folder called "dependencies/tools" anywhere, but I did find the "bin" folder inside <path-to-sdk>/bbwp/blackberry-tablet-os/" and it had an executable called blackberry-airpackager.
And this is the output:
Package-Author: Cuibono Studios Package-Name: debug.token Package-Version: 0.0.0.2 Package-Type: debug-token Package-Author-Certificate-Hash: f3UX5kIw3Pcy-9STHN02UNCapi4vXp0d6XN2I1cI8A-PF549l7AdyLlpnct_teTcv5h1mhJQ0luj5edCB0nMTg Package-Author-Id: gYAAgLprR5ONkeSxIu3mDvYdjSo Package-Id: gYABgKlJWBdJV3rzmpgXgYp_QuY Package-Version-Id: gYACgDL6FkrF-uUr_IZz6sJXjDU Package-Issue-Date: 2013-02-05T11:14:16Z Debug-Token-System-Actions: execute,multi_window,multi_instance,run_air_native ,run_native,_sys_use_consumer_push Debug-Token-Expiry-Date: 2013-03-07T11:14:16Z Debug-Token-Device-Id: 1345473186
I'll be back after school tomorrow, gonna sleep now. Thanks again for your help! ![]()