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
tuxGurl
Posts: 20
Registered: ‎07-08-2010
My Carrier: Telus

Error Signing Playbook App: Code signing request failed because this file has been previously signed

When I sign my playbook app I get the error:

 

Connecting to url http://www.rim.net/Websigner/servlet/RDK-Waterloo
Sending properties to server...
Properties of response := [
Version = 1
Response = Signature Response
Confirm = null
Error = Code signing request failed because this file has been previously signed
.
]
barsigner error: server error: Code signing request failed because this file has
 been previously signed.

I understand that this error means I have to bump the version of my app. Where do I bump the version? I tried bumping the <widget> version and changing the -buildId on bbw but nothing seems to work. Can someone look at my config.xml and tell me what I'm doing wrong?

 

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns=" http://www.w3.org/ns/widgets"
        xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="3.0.2">

    <rim:navigation mode="focus" />
    <name>AppName</name>
    <description>My Description.</description>
    <author href="" rim:copyright="Copyright © 2011 TG.">TG</author>
    <versionNumber>3.0.2</versionNumber>
    <content src="index.html" />
    <icon src="assets/icon.png"/>
    <access uri="*" subdomains="true" />
    <license>
        Copyright © 2011 TG.
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
        EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
        MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
        NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
        BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
        ACTION OF CONTRACT, INSULT OR OTHERWISE, ARISING FROM, OUT OF OR IN
        CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
    </license>
</widget>

 

Commands for Signing:

 

"C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp\bbwp" "D:\work\App.zip" -gcsk pass -gp12 pass -buildId 1 -o "D:\work\bin"

PAUSE 

"C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp\blackberry-tablet-sdk\bin\blackberry-signer" -verbose -cskpass pass -keystore sigtool.p12 -storepass pass "D:\work\bin\App.bar" RDK

 

 

 

X posted on SO, but I need an answer asap!

 

Please use plain text.
Developer
ddluk
Posts: 209
Registered: ‎10-02-2010
My Carrier: Play and Plus

Re: Error Signing Playbook App: Code signing request failed because this file has been previously signed

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" rim:header="RIM-Widget:rim/widget">
  <name>Application name</name>
  <description>Your description</description>
  <author rim:copyright="Lukasz Dzierzak 2011">Lukasz Dzierzak</author>
  <feature id="blackberry.app" required="true" version="1.0.0.0"/>
  <icon rim:hover="false" src="icon.png"/>
  <icon rim:hover="true" src="icon.png"/>
  <content src="index.html"/>
</widget>

 

You need to change your application version above on colored place.

 

To sign WebWorks application you need only one command:

 

 

"C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp\bbwp" "D:\work\App.zip" -gcsk pass -gp12 pass -buildId 1 -o "D:\work\bin"

 Remember also to bump the version number in above command.

 



2sky.pl - Software development is our passion.
Please use plain text.
Developer
tuxGurl
Posts: 20
Registered: ‎07-08-2010
My Carrier: Telus

Re: Error Signing Playbook App: Code signing request failed because this file has been previously signed

As I mentioned above, I have changed the widget version and the buildId but I still get the error. I started from v 1.0.2 and kept trying all variations and bumping numbers.

 

 


ddluk wrote:

You need to change your application version above on colored place.

 

To sign WebWorks application you need only one command:

 

 

"C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp\bbwp" "D:\work\App.zip" -gcsk pass -gp12 pass -buildId 1 -o "D:\work\bin"

 Remember also to bump the version number in above command.

 


 

 

Its interesting that you mention that I only need the first command to sign the app. Are you certian of this? The error is on the second command. I thought that we need to sign using RIM servers (second command).

 

Can someone confirm what is the right way to sign a WebWorks app? This is so confusing!!

Please use plain text.
Developer
ddluk
Posts: 209
Registered: ‎10-02-2010
My Carrier: Play and Plus

Re: Error Signing Playbook App: Code signing request failed because this file has been previously signed

You are asking for help but when I'm giving it to you, you don't believe me. Yes, there is only one command and all that information is included in official documentation which you can find on developer portal:

 

http://docs.blackberry.com/en/developers/deliverables/23977/Sign_the_cod_file_for_a_BB_Widget_applic...

 

Using this one command you also communicate with RIM servers.



2sky.pl - Software development is our passion.
Please use plain text.
Developer
tuxGurl
Posts: 20
Registered: ‎07-08-2010
My Carrier: Telus

Re: Error Signing Playbook App: Code signing request failed because this file has been previously signed

I didnt mean to offend you ddluk. There is so much confusing information about the processes. The denial mail from RIM pointed me to http://docs.blackberry.com/en/developers/deliverables/23959/Signing_your_application_1422721_11.jsp and specifically mentions using blackberry-signer.

 

I just want to be a 100% sure because I dont want my app to be rejected again. I'm just doing my due diligence!

 

Thanks again!

 

 

 

Please use plain text.
Developer
jeevantakhar
Posts: 33
Registered: ‎03-04-2011

Re: Error Signing Playbook App: Code signing request failed because this file has been previously signed

[ Edited ]

Thanks ddluk, this helped. Incrementing the buildId solved the problem for me. Changing it in the XML file made no difference.

Please use plain text.