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: 9
Registered: ‎03-30-2011
My Device: None

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

[ Edited ]

I have a similar problem.

 

 

[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-Autho
r in Manifest [Sample Inc.] does not match the Common Name in developer certific
ate [Marian Ivanov].
[ERROR]                 Signing failed

 

 

bbwp.properties has the "<developer_cn_signature>" uncommented and set to "Marian Ivanov'. My certificate is issued to "Marian Ivanov". Also the "<puslisher>" and "<author>" in config.xml are set to the same name. And still it doesn't work. I'm using the instructions for WebSDK and everything is 100% correct on my side (or at least I think so). Any suggestions? Thanks!

New Developer
Posts: 11
Registered: ‎12-24-2009
My Device: Not Specified

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

I have the exact same issue as you marryivanoff for the past 3 days. I've even requested and used new keys with no success.

 

I'm running an updated WebWorks SDK v1.0.0.23

New Contributor
Posts: 9
Registered: ‎03-30-2011
My Device: None

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

Well, I'm pretty sure I've done absolutely everything the right way so it's really weird. Does anybody know how to solve this problem? Where can I find and change this setting for "Sample Inc"?

New Contributor
Posts: 9
Registered: ‎03-30-2011
My Device: None

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

Hi again,

 

I'm sorry for the multiple posts but I think this can be kind of helpful.

 

I've unzipped the generated .bar file and it has a file called MANIFEST.MF. Here's part of the content:

 

Package-Type: application
Package-Author: Sample Inc.
Package-Author-Id: testxxxxxxxxxxxxxxxxxxxxxx
Package-Name: playbookfea844489c998262984eca881c2d5f24
Package-Id: testxxxxxxxxxxxxxxxxx

 

What bothers me is the 'test' string that Package-Author-ID and Package-Id are starting with. Maybe my compiler is in some kind of a test mode? Is this possible? How can it be changed? Maybe that's what's replacing the company name in my realn company name with Sample Inc.? 

 

I will really appreciate if somebody from the RIM team pay attention to this issue. I've emailed a support request a few days ago and still nothing. 

BlackBerry Development Advisor (Retired)
Posts: 9
Registered: ‎03-23-2011
My Device: BlackBerry 9700

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

Hi murryivanoff,

 

The 'test' prefix will not be present in a signed BAR, so we need to solve your signing problem first. If we can solve the problem that you are having with signing, the 'test' prefix should go away.

 

For the problem that you are having with signing:

In v1.0.0.23 of WebWorks, the <developer_cn_signature> in bbwp.properties is what controls Package-Author. It sounds like you are doing everything correctly, i.e., that you are setting <developer_cn_signature>. But perhaps just in case you are missing something, can you please paste the exact line from your bbwp.properties file that contains the <developer_cn_signature> element? Let's just make sure that there is nothing wrong with it.

 

Some other things to double-check are:

(1) The exact version of the WebWorks SDK you are using. When you enter the bbwp command with no arguments, what version does it report (near the top of the usage message)?

(2) Do you have more than one version of the WebWorks SDK installed? If so, the next thing to make sure is that the bbwp.properties that contains the <developer_cn_signature> belongs to the same installation that you are using for packaging.

(3) Is the correct sigtool.p12 file in the bbwp\bin folder?

 

Hopefully we can help solve this issue that you are seeing!

 

Thanks!

 

New Contributor
Posts: 9
Registered: ‎03-30-2011
My Device: None

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

Hi! Thanks for your response!

 

The only installation of the WebSDK that I have is the following:

 

C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks Packager for PlayB
ook\bbwp>bbwp
[ERROR]                 Invalid command line parameters
bbwp version 1.0.0.23   Copyright(C) 2010 Research In Motion
                        http://www.blackberry.com/developers

 

As you can see it's the 1.0.0.23

 

Here's the content of bbwp.properties:

 

<?xml version="1.0" encoding="UTF-8"?>
<wcp>
<additional>-quiet</additional>
<java>C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks Packager for PlayBook\jre</java>
<wcp_template>AirAppTemplates</wcp_template>
<air_template>AirAppTemplates</air_template>
<tablet_sdk>C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp\blackberry-tablet-sdk</tablet_sdk>
<extension_repository>ext</extension_repository>
<developer_cn_signature>Marian Ivanov</developer_cn_signature>
</wcp>

 

The sigtool.p12 was generated using the following command:

 

blackberry-keytool -genkeypair -keystore sigtool.p12 -storepass MYPASSWORDHERE -dname "cn=Marian Ivanov" -alias author

 

And then I've moved it in C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp\bin.

 

And here's (just in case) my config.xml in the app's archive:

 

<?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.3" rim:header="RIM-Widget:rim/widget">
  <name>(app name is here)</name>
  <description>(app description is here)</description>
  <author rim:copyright="2011">Marian Ivanov</author>
  <publisher>Marian Ivanov</publisher>
  <Package-Author>Marian Ivanov</Package-Author>
  <icon rim:hover="false" src="icon.png"/>
  <icon rim:hover="true" src="icon.png"/>
  <content src="index.html"/>
  <autoOrients>false</autoOrients>
  <aspectRatio>landscape</aspectRatio>
</widget>

 

I've placed the published and Package-Author lately just in case. It doesn't work without them too.

 

And then I'm compiling using the following:

 

C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks Packager for PlayBook\bbwp>bbwp "C:\playbook\playbook.zip" -gcsk (password) -gp12 (password) -buildId 1
-s archive_source  -o "C:\output"
[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 Package-Autho
r in Manifest [Sample Inc.] does not match the Common Name in developer certific
ate [Marian Ivanov].
[ERROR]                 Signing failed

New Developer
Posts: 7
Registered: ‎03-10-2011
My Device: Not Specified

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

Ok, for anyone else running into this.

 

I had the same problem with 0.9.4 with the Sample, Inc.

 

You need to insure you open your editor running as administrator. 

I thought I had modified the bbwp.properties file but because it's in the Program Files folder, it's not allowed to be modified under User Access Control of Vista/Win7.

 

Once I ran the text editor as administrator and resaved the file the signing worked for WebWorks type of projects.

New Developer
Posts: 7
Registered: ‎03-10-2011
My Device: Not Specified

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

<Package-Author> is not needed in the config.xml you start with (before running bbwp)

Hope that helps.

New Contributor
Posts: 9
Registered: ‎03-30-2011
My Device: None

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

Yes, thanks!

 

1) The content of the properties file is with the changed developer name (not Sample Inc). I've pasted it in my last post.

2) "I've placed the published and Package-Author lately just in case.

 

 

BlackBerry Development Advisor (Retired)
Posts: 9
Registered: ‎03-23-2011
My Device: BlackBerry 9700

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

Hi murryivanoff,

 

It sounds like you've followed all the right steps so it's not obvious why your particular case is an issue.

Here is something that you can try (if you haven't already): In the "bbwp\AirAppTemplates\src" folder of your installation there is an XML file named "blackberry-tablet.xml". Try setting the <publisher> element in it to the name that you've been using, and then re-build your project as you've been doing.