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 Contributor
Posts: 8
Registered: ‎02-19-2011
My Device: Playbook Simulator - latest build as of Feb 18, 2011

Package-Author in Manifest not set to [blah blah company inc.]

Hi RIM,

 

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"

        xmlns:rim="http://www.blackberry.com/ns/widgets"

        version="1.0.0">

 

  <name>NAME</name>

 

  <Package-Author>

  BLAH BLAH INC.

  </Package-Author>

 

  <author rim:copyright="2011">

  BLAH BLAH INC.

  </author>

 

  <publisher>

  BLAH BLAH INC.

  </publisher>

 

  <category>

  core.games

  </category>

 

  <description>

    BLAH BLAH INC.

  </description>

 

<rim:loadingScreen backgroundColor="#0000FF" onFirstLaunch="false" onRemotePageLaunch="true" backgroundImage="css/images/parchment-background.jpg"> 

 <rim:transitionEffect type="fadeIn" direction="left" duration="1000"/>

</rim:loadingScreen>

 

  <icon src="icon.png"/>

 

  <content src="index.html" >

  <!--rim:background src="splash.html" runOnStartup="false" /-->

  </content>

 

  <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"

             version="1.0.0"/>

  </access>

 

   <initialWindow>

    <autoOrients>false</autoOrients>

 <aspectRatio>landscape</aspectRatio> 

 </initialWindow> 

 

 <license>Copyright (c) 2011 BLAH BLAH INC.

 BLAH BLAH LICENSE

 </license>

  

</widget>

 

 

--

 

any help appreciated, thanks.

 

Dave

 

New Contributor
Posts: 8
Registered: ‎02-19-2011
My Device: Playbook Simulator - latest build as of Feb 18, 2011

Re: Package-Author in Manifest not set to [blah blah company inc.]

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/webworks.jsp)

 

link over to this document:  http://docs.blackberry.com/en/developers/deliverables/23959/Signing_your_application_1422721_11.jsp

 

HOWEVER,

 

following these directions to the letter will NOT allow you to sign a webworks playbook app.  You must follow these directions instead:

 

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

 

and then these:

 

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

 

--

 

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.

 

 

-Dave

 

 

 

Retired
Posts: 179
Registered: ‎07-14-2008
My Device: Not Specified

Re: Package-Author in Manifest not set to [blah blah company inc.]

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.

 

Mike Kirkup
Director, Developer Relations
New Contributor
Posts: 9
Registered: ‎10-29-2009
My Device: Torch 9800, Bold 9700, PlayBook
My Carrier: Orange

Re: Package-Author in Manifest not set to [blah blah company inc.]

Hi,

 

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.

New Contributor
Posts: 8
Registered: ‎02-19-2011
My Device: Playbook Simulator - latest build as of Feb 18, 2011

Re: Package-Author in Manifest not set to [blah blah company inc.]

Do not attempt to set the Package-Author in the manifest.mf or confix.xml file.  You need to follow the directions here:

 

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

New Contributor
Posts: 9
Registered: ‎10-29-2009
My Device: Torch 9800, Bold 9700, PlayBook
My Carrier: Orange

Re: Package-Author in Manifest not set to [blah blah company inc.]

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?

Developer
Posts: 213
Registered: ‎07-18-2008
My Device: Not Specified

Re: Package-Author in Manifest not set to [blah blah company inc.]

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?

--------------------------------------------------
problemSolved() ? kudosPlease():kudosPlease();
New Contributor
Posts: 8
Registered: ‎02-19-2011
My Device: Playbook Simulator - latest build as of Feb 18, 2011

Re: Package-Author in Manifest not set to [blah blah company inc.]

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.

 

Dave

 

 

Contributor
Posts: 36
Registered: ‎04-06-2010
My Device: Bold 9700
My Carrier: AT&T

Re: Package-Author in Manifest not set to [blah blah company inc.]

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.

New Contributor
Posts: 9
Registered: ‎10-29-2009
My Device: Torch 9800, Bold 9700, PlayBook
My Carrier: Orange

Re: Package-Author in Manifest not set to [blah blah company inc.]

Thanks for your answers. For me this issue seems to be fixed after upgrading from WebWorks SDK version 0.9.3 to 0.9.4.