02-23-2011 06:49 PM
I'm building a webworks app for the playbook.
I'm running the latest webworks/Adobe AIR SDK on OS X. I'm at the last step in the code signing process where I need to sign my bar file with the following command: (as per the example given)
blackberry-signer -verbose -cskpass <your CSK password> -keystore <your P12 file> -storepass <your P12 file password> <BAR_file.bar> RDK
When I run the command with the appropriate fields filled in, the process seems to be mostly working, except I get the following error message:
barsigner error: server error: Code signing request failed because Package-Author in Manifest is not set to [BLAH BLAH INC].
here is the gist of my config.xml file:
<?xml version="1.0" encoding="utf-8"?>
<widget xmlns=" http://www.w3.org/ns/widgets"
BLAH BLAH INC.
BLAH BLAH INC.
BLAH BLAH INC.
BLAH BLAH INC.
<rim:loadingScreen backgroundColor="#0000FF" onFirstLaunch="false" onRemotePageLaunch="true" backgroundImage="css/images/parchment-background.j
<rim:transitionEffect type="fadeIn" direction="left" duration="1000"/>
<content src="index.html" >
<!--rim:background src="splash.html" runOnStartup="false" /-->
<feature id="blackberry.ui.dialog" required="true" version="1.0.0"/>
<access uri="http://www.somedomain.com" subdomains="true">
<feature id="blackberry.app.event" required = "true" version="1.0.0"/>
<feature id="blackberry.invoke" required = "true"
<license>Copyright (c) 2011 BLAH BLAH INC.
BLAH BLAH LICENSE
any help appreciated, thanks.
02-24-2011 02:34 PM
I have found one viable answer to my own problem.
The code signing instructions I was following from the main webworks SDK page (http://us.blackberry.com/developers/tablet/webwork
link over to this document: http://docs.blackberry.com/en/developers/deliverab
following these directions to the letter will NOT allow you to sign a webworks playbook app. You must follow these directions instead:
and then these:
This should produce a correctly signed blackberry webworks app, ready to be sent to the blackberry vendor portal.
It would be good if somebody at RIM clarified the documentation regarding code signing for webworks apps.
03-11-2011 10:36 PM
You are bang on. The second set of instructions are the ones that you should follow for signing your Web Works applications for the PlayBook. Appreciate the feedback and we will be sure to update the docs to clarify that.
03-13-2011 02:37 PM
I get the same error message using WebWorks to sign a PlayBook app:
bbwp MyApp.zip /gcsk password /gp12 password /buildId 1
[INFO] Parsing command line options
[INFO] Parsing bbwp.properties
[INFO] Validating WebWorks archive
[INFO] Parsing config.xml
[INFO] Populating application source
[INFO] Compiling WebWorks application
[INFO] Packaging the bar file
[INFO] Bar packaging complete
[INFO] Starting signing tool
barsigner error: server error: Code signing request failed because Package-Author in Manifest is not
set to [my company name].
[ERROR] Signing failed
I haven't found a way to specify the Package-Author in the MANIFEST.MF - the setting in config.xml seems to have no effect. It's always "Sample Inc." instead of my company's name. Have I overseen something or is this a bug? Signing works if I manually extract the MANIFEST.MF, edit it, and copy it into the .bar file again - and then use the "blackberry-signer" tool.
03-13-2011 04:49 PM
Do not attempt to set the Package-Author in the manifest.mf or confix.xml file. You need to follow the directions here:
03-14-2011 04:41 AM
Thanks, but that's what I followed when setting up the environment. The problem appears to be not with signing but with packaging the .bar file.
Where does "Sample Inc." come from? For AIR applications it seems that you can set it in the blackbberry-tablet.xml file. But for WebWorks applications?
03-14-2011 05:26 AM
the process of signing seems to me more challenging than developing the app. In the beginning, I followed the instructions posted by the OP in the first link, pulled my hair as I kept getting error that manifest does not have version 1.0.0. blah blah blah
Now I followed webworks signing instructions and keep getting CSK password is incorrect which is actually not the case,why can't we have descriptive error images?
03-14-2011 11:25 AM
Although I've overwritten mine with my company name, I assume that "Sample Inc." is set in the file mentioned in these instructions: (which I previously linked to above)
In the bbwp/bin folder, in the bbwp.properties file, remove the comment marks and add the company name (sent to you during the signing registration process) for the following line: <!-- <developer_cn_signature></developer_cn_signature> -->
My apologies if this is not the case. If you already changed this variable as per the directions above, then I don't know what your bar packager/signer issue is, or where it is getting "Sample Inc." from. You may have to retry the whole signer process from scratch again, if nothing else works.
03-23-2011 09:21 AM
This helped me. I know I set the <developer_cn_signature> when I generated my keys, but I think the upgrade to the new WebWorks overwrote the bbwp.properties file.