02-14-2012 09:44 PM
So I'm trying to package my app and I'm getting an error when I try to create the bar file.
When I compile with the following app files:
bbwp "C:\Development\test.zip" -o "C:\Development"
It gives me the following error:
[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 Warning: Cannot find application or default icon Warning: Unknown category: core.all Error: Attribute Entry-Point-Icon: file cannot be found in the list of packaged files: icon.png
If I exclude the blackberry-tablet.xml file, then it compiles with no errors.
the blackberry-tablet.xml file is straightforward: (AAAAAAAAAAAAAA is where my author id is placed)
<qnx> <author>My Name</author> <authorId>AAAAAAAAAAAAAAAAAAAAA</authorId> <category>core.all</category> <buildId>1</buildId> <platformVersion>0.1.0.0</platformVersion> <icon> <image>icon.png</image> </icon> </qnx>
This is 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="18.104.22.168"> <name>Test</name> <description> A simple test app. </description> <author rim:copyright="2012">My Name</author> <rim:orientation mode="landscape"/> <icon rim:hover="false" src="icon.png"/> <icon rim:hover="true" src="icon.png"/> <content src="index.html"/> </widget>
I've also tried a config file with the icon.png lines removed, didn't change anything.
Does anyone know what this error is?
02-15-2012 06:11 PM - edited 02-15-2012 06:15 PM
I don't think you need to include the blackberry-tablet.xml with a WebWorks applications, it pulls everything it needs from the config.xml. Everything you included in that file can be put into the config.xml (https://bdsc.webapps.blackberry.com/html5/document
Just double checked: the WW packager (bbwp) creates the blackberry-tablet.xml for you which may be why it is getting confused. So you should be safe leaving it out and moving the items from it to the config.xml using the formats shown in the link above.
02-16-2012 08:21 PM
Alright, I can compile it if I exclude the blackberry-tablet.xml file, but when I try to load it onto the playbook simulator, I get this error:
What does this mean? I got this before and was under the impression I was missing something, hence why I tried to add the blackberry-tablet.xml.
I'm under the impression that all you have to do is zip it, and then package it by using bbwp which will convert it to a bar, I don't need a debug token or anything like that?
So why this error? So confused...
02-16-2012 08:33 PM
Correct on the simulator you don't need a debug token.
I haven't seen that error before, so I am hoping someone else can pop in and help you.
You could try using the web inspector to see if it tells you anything (http://devblog.blackberry.com/2011/06/debugging-bl
02-16-2012 11:37 PM
Well, it worked on the ripple simulator, but not on the playbook simulator. So I'm thinking it has something to do with packaging it wrong.....
I also tried the web inspector, and couldn't really figure out anything. I've never used web inspector before, but following instructions from your link, I got to the page and it showed a link that said "error". Upon clicking on the link, there was a ">>" link that didn't do anything, and a blank textbox.
I searched all over the web for the error about the permissions and I couldn't find any results....weird.
02-17-2012 05:51 AM
Did you use any bb features in your app (access to shared files, camera, etc) that might need a feature line added to your config xml?
02-18-2012 01:01 AM
<?xml version="1.0" encoding="utf-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="22.214.171.124"> <feature id="blackberry.ui.dialog" required="true" version="1.0.0"/> <name>Test</name> <description> A simple test app. </description> <author rim:copyright="2012">My Name</author> <rim:orientation mode="landscape"/> <rim:permissions> <rim:permit>access_shared</rim:permit> </rim:permissions> <icon src="icon.png"/> <content src="index.html"/> </widget>
My app doesn't do anything that requires permissions for camera or shared files. Still, I tried adding in access for shared files, and it still didn't work. Same error as above....
06-20-2012 05:20 PM
Hello have you solved this problem with the icon ?
I'm in the same situation, the funny thing is that the icon is declared in the blackberry-tablet.xml as well as in the config.xml.
If you found the solution, I 'd really appreciate if you could share it.
06-20-2012 09:47 PM
If I recall correctly, it was because of the filename. You need to make sure the filenames are EXACTLY the same. (case sensitive!)
"Icon.png" is not going to be found if you put "icon.png" in the file.
I hope this solves your problem.