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

Testing and Deployment

Reply
New Developer
bjoe
Posts: 8
Registered: ‎03-25-2013
My Device: Blackberry Z10 / Z30 / Playbook
Accepted Solution

BAR package deployment in eclipse

Since then I have changed my signing key in eclipse, "run as" reports an error:
result::failure 881 application author does not match debug token author

 

Yes, in the MANIFEST.MF file in the BAR package still has the wrong (old) author. But in the bar-descriptor.xml is the correct (new) author.

When I run blackberry-nativepackager and blackberry-deploy on the console, then it works.

 

How does "run as" build a BAR package in eclipse ? And how can I fix it?

BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: BAR package deployment in eclipse

It could be installing an old bar file.  Try to do a Clean, delete the bar file from the project and rebuild.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
bjoe
Posts: 8
Registered: ‎03-25-2013
My Device: Blackberry Z10 / Z30 / Playbook

Re: BAR package deployment in eclipse

Do you mean in eclipse "Clean Project" (this execute rm -rf arm arm-p x86, delete the entire dir), yes I did that and there is no old BAR package file in my project but it did not help.

 

I delete the project in my eclipse and imported again, but it did not help.

 

I create a new project with "new" -> "Black Berry Project" -> "Cascade Application" in my eclipse workspace. I change nothing in this project and build a BAR package but it did not help.

 

It is still my wrong old Package-Author in MANIFEST.MF file but in "Window" -> "Preferences" -> "BlackBerry" -> "Signing" is my new "Author" name and in 

 

But when I build an BAR package for the simulator, Package-Author is the author name from bar-descriptor.xml.

 

How does eclipse build the BAR package ? Check eclipse some properties from my Dev Alpha Device? But there is my new debugtoken with the new author installed ?

BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: BAR package deployment in eclipse

In the BlackBerry Native SDK to go Window -> Preferences -> BlackBerry -> Signing and remove all debug tokens created with your old keys.  The SDK looks there for that information when deploying to a device and will use the first debug token it finds.  It looks like it's picking up a debug token from your previous set of code signing keys.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
bjoe
Posts: 8
Registered: ‎03-25-2013
My Device: Blackberry Z10 / Z30 / Playbook

Re: BAR package deployment in eclipse

Hi,

 


MSohm wrote:

In the BlackBerry Native SDK to go Window -> Preferences -> BlackBerry -> Signing and remove all debug tokens created with your old keys.



I removed everything, including the new debug token and create a new one.

It works :smileyhappy:

 

Thanks for your help.