Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
Posts: 46
Registered: ‎01-14-2011
My Device: BB10
My Carrier: ATT
Accepted Solution

Error = Code signing request failed

I am trying to sign my webbworks application for the playbook but I am having trouble, here is the process of me packaging and then trying to sign it. I can install the unsigned bar file fine but I cannot seem to sign it.

 

 

 

"/Users/mike/Projects/blackberry playbook sdk/bbwp/bbwp" "$build_folder"/build.zip

 

[INFO]       Parsing command line options

[INFO]       Parsing bbwp.properties

[INFO]       Validating WebWorks archive

[INFO]       Parsing config.xml 

[WARNING]    Failed to find a <feature> element

[INFO]       Populating application source

[INFO]       Compiling WebWorks application

[INFO]       Packaging the bar file

[INFO]       Bar packaging complete

[INFO]       WebWorks application packaging complete

 

 

"/Users/mike/Projects/blackberry playbook sdk/bbwp/blackberry-tablet-sdk/bin/blackberry-signer" -verbose -cskpass pass -keystore "/Users/mike/Projects/blackberry playbook sdk/bbwp/bin/sigtool.p12" -storepass pass "$build_folder"/bin/build.bar RDK

 

Developer Certificate TBS =

30 81 c5 a0 03 02 01 02 02 04 4d 82 a3 99 30 0c 

 

 

 

Sending properties to server...
Properties of response := [
Version = 1
Response = Signature Response
Confirm = null
Error = Code signing request failed because Application-Development-Mode in Manifest is present and is not set to [false].
]
barsigner error: server error: Code signing request failed because Application-Development-Mode in Manifest is present and is not set to [false].

 

Mike
marcucio.com - productivity apps
http://marcucio.com
Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Error = Code signing request failed

The reason this is happening is because you should be signing your app at the same time as building it using bbwp.exe as outlined in the documentation, rather than building your *.bar file first and then signing it using blackberry-signer.

 

Why?  This is due to the fact that the BlackBerry WebWorks SDK currently builds apps in development mode, unless you specify that it should be signed in which case it creates it in release mode.  You cannot use blackberry-signer to sign a development mode app.

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
New Developer
Posts: 46
Registered: ‎01-14-2011
My Device: BB10
My Carrier: ATT

Re: Error = Code signing request failed

Thanks for the quick reply, this is the way I did it at first but I got the following error:

 

 

"/Users/mike/Projects/blackberry playbook sdk/bbwp/bbwp" "$build_folder"/build.zip -gcsk pass -gp12 pass

 

 

[INFO]       Parsing command line options
[INFO]       Parsing bbwp.properties
[INFO]       Validating WebWorks archive
[INFO]       Parsing config.xml 
[WARNING]    Failed to find a <feature> element
[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 this file has been previously signed.
[ERROR]      Signing failed

 

Mike
marcucio.com - productivity apps
http://marcucio.com
Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Error = Code signing request failed

>> barsigner error: server error: Code signing request failed because this file has been previously signed.

 

This can be caused by trying to sign the same version of the application.  Try incrementing the value of the version property in your config.xml (or use the -buildId command line parameter) and sign again.

 

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
New Developer
Posts: 46
Registered: ‎01-14-2011
My Device: BB10
My Carrier: ATT

Re: Error = Code signing request failed

ok thanks, that seemed to work, now how do i verify that it is signed correctly before submitting it to RIM?

Mike
marcucio.com - productivity apps
http://marcucio.com
New Contributor
Posts: 4
Registered: ‎03-04-2012
My Device: Developer with no real device
My Carrier: Dtac

Re: Error = Code signing request failed