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
Developer
nathanpc
Posts: 134
Registered: ‎05-19-2012
My Device: Torch 9800, PlayBook 64GB, Dev Alpha

Re: [ERROR] Cannot sign application - failed to find signing keys

~ is set to /User/Nathan/

Also is there any need of anything from the SDK to be in the system PATH? Because I don't remember if I ever needed to add the WebWorks SDK directory to my PATH.
If I helped you please click the "Like" button to support my work.
My apps: CherryNotes - Bookmarked - Requests
Social Me: about.me - Twitter
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: [ERROR] Cannot sign application - failed to find signing keys

I just want to verify that there isn't inconsistency...the value I would have been expecting was:

/Users/Nathan

 

Specifically:

  • Users instead of User; and
  • No / at the end of the path.

Since the tools use the path as follows:

~/Library/Research In Motion

 

The way you have it written would evaluate to (I believe):

/User/Nathan//Library/Research In Motion

 

Note thet double // between Nathan and Library.

 

 

I just want to ensure that we have it correct, character for character.


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
Developer
nathanpc
Posts: 134
Registered: ‎05-19-2012
My Device: Torch 9800, PlayBook 64GB, Dev Alpha

Re: [ERROR] Cannot sign application - failed to find signing keys

Ops, sorry it was set to /Users/Nathan. I just typed it incorectly on the last post, sorry.

If I helped you please click the "Like" button to support my work.
My apps: CherryNotes - Bookmarked - Requests
Social Me: about.me - Twitter
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: [ERROR] Cannot sign application - failed to find signing keys

Ah, okay, that should be exactly what we need then. Basically, ~/Library/Research In Motion is where the tools should be looking for the keys, but we already copied them there without success. I'm going to need to brainstorm just a little more.

 

One option, which I've been trying to avoid, would be a fresh start:

  • Backup / remove all instances of author.p12, barsigner.db, and barsigner.csk.
  • For good measure, any instance of a P12 file (i.e. sigtool.p12, mycustomname.p12, etc.) should be backed-up and removed.
  • Uninstall the BlackBerry WebWorks SDK for Tablet OS and ensure the folder is completely removed from your drive.
  • Re-install the SDK.
  • Install a fresh set of CSJ files; verify which folder they are installed into.

And from there, attempt to re-sign.


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: [ERROR] Cannot sign application - failed to find signing keys

Alright, another check. Can you please try calling the bbwp command without the -g parameter (i.e. we won't actually sign the BAR file.)

 

First, let's see that we can simply package and create the BAR file.

 

From there, if we can create the BAR file, we'll use the blackberry-signer command separately to see if we can successfully sign. This way, we'll separate the packaging from the signing and hopefully get a little more of an understanding of the failure at hand.


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
Developer
nathanpc
Posts: 134
Registered: ‎05-19-2012
My Device: Torch 9800, PlayBook 64GB, Dev Alpha

Re: [ERROR] Cannot sign application - failed to find signing keys

I've resintalled everything and it still gives me that error, then I tried calling bbwp without the -g argument and this is what I got:

Nathan-Camposs-MacBook-Pro:BBApp Nathan$ /Developer/SDKs/Research\ In\ Motion/BlackBerry\ WebWorks\ SDK\ for\ TabletOS\ 2.2.0.5/bbwp/bbwp build/BBApp.zip -buildId 1 -o build/
[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
/Developer/SDKs/Research In Motion/BlackBerry WebWorks SDK for TabletOS 2.2.0.5/bbwp/blackberry-tablet-sdk/bin/mxmlc.exe: /Developer/SDKs/Research In Motion/BlackBerry WebWorks SDK for TabletOS 2.2.0.5/bbwp/blackberry-tablet-sdk/bin/mxmlc.exe: cannot execute binary file
[INFO]      		Packaging the bar file
java.io.FileNotFoundException: /var/tmp/widgetGen.13868572321354647076193.tmp/BBApp.swf (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:137)
	at net.rim.tumbler.file.FileManager.copyFile(FileManager.java:481)
	at net.rim.tumbler.airpackager.AirPackager.run(AirPackager.java:232)
	at net.rim.tumbler.WidgetPackager.go(WidgetPackager.java:152)
	at net.rim.tumbler.WidgetPackager.main(WidgetPackager.java:77)
[ERROR]     		Air Packager exception occurred
Nathan-Camposs-MacBook-Pro:BBApp Nathan$

 

If I helped you please click the "Like" button to support my work.
My apps: CherryNotes - Bookmarked - Requests
Social Me: about.me - Twitter
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: [ERROR] Cannot sign application - failed to find signing keys

Talk about an uncooperative bbwp. Could you confirm your full OS version? (i.e. as many version numbers as you can find.)

 

Potentially these are related, in that the default location where it would expect the SWF file is different from where it is actually being created. If you search your PC for BBApp.swf, do you get any matches elsewhere (i.e. maybe it's been left-over from the packaging attempt.)


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
Developer
nathanpc
Posts: 134
Registered: ‎05-19-2012
My Device: Torch 9800, PlayBook 64GB, Dev Alpha

Re: [ERROR] Cannot sign application - failed to find signing keys

Mac OS X 10.7.5 (11G63)
If I helped you please click the "Like" button to support my work.
My apps: CherryNotes - Bookmarked - Requests
Social Me: about.me - Twitter
Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: [ERROR] Cannot sign application - failed to find signing keys

Once again, everything points at your environment being okay.

 

I really wish I had an answer for you on this by now, unfortunately all avenues are coming up short.

 

Out of curiosity, do you have the BlackBerry 10 (1.0.3.8) SDK installed on your system? If so, are you able to call the bbwp command successfully for the BB10 SDK?

 

I'm assuming you have the Adobe AIR SDK installed on your system, correct? (I'm assuming because you noted you could sign a while back, so unless that SDK was removed since then...)


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Please use plain text.
Developer
nathanpc
Posts: 134
Registered: ‎05-19-2012
My Device: Torch 9800, PlayBook 64GB, Dev Alpha

Re: [ERROR] Cannot sign application - failed to find signing keys

[ Edited ]

With the BlackBerry 10 SDK I got this:

[INFO]    Populating application source
[INFO]    Parsing config.xml
[ERROR]   Cannot sign application - failed to find signing key file: author.p12

Yeah, I have the AIR SDK, the installation process asks for it, so the WebWorks SDK knows that it's there.

If I helped you please click the "Like" button to support my work.
My apps: CherryNotes - Bookmarked - Requests
Social Me: about.me - Twitter
Please use plain text.