If you build your BlackBerry® WebWorks™ application on Mac OS X Lion, you may receive the following error:
[ERROR] Invalid application archive - resource name is not valid(__MACOSX/<YOUR FILE HERE>)
This error may occur because of a conflict with resource forks on Mac OS. When you zip the file, a hidden folder is created within the .zip file which causes the error with the BlackBerry® WebWorks™ Packager.
To correct this issue, use the following application:
Alternatively, you could open up the .zip file with another program and delete the hidden __MAXOSX file.