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
Nallo
Posts: 86
Registered: ‎06-05-2009
My Device: Bold 9900 7.1
My Carrier: T-Mobile Germany
Accepted Solution

Invalid widget archive in Eclipse Plugin

Hi,

 

I am testing the widget SDK Plugin for Eclipse (3.5).

Every now and then I get the following message, when I try to build a widget:

 

Invalid widget archive - resource name is not valid(.tmp_index.html.some_random_number~)

 

I did not create this file - it seems that the plugin creates this for some (but which) reason and then cannot read it, because it contains unsupported characters. This is strange, because I'd think that the plugin should only create those files it can read, shouldn't it?

 

Is there some way to prevent this? Where does it come from?

 

I can repair it by deleting the file and restarting the build...

 

regards,

 

Nallo

Please use plain text.
Developer
Nallo
Posts: 86
Registered: ‎06-05-2009
My Device: Bold 9900 7.1
My Carrier: T-Mobile Germany

Got it

I am using eclipse with Aptana-Plugin.

When working on my Widget, I use Aptana HTML-Editor. This editor creates these files for the browser-preview...

Please use plain text.
Contributor
giridhar_bhandekar
Posts: 39
Registered: ‎04-20-2010
My Device: 9000
My Carrier: what is this.

Re: Invalid widget archive in Eclipse Plugin

Hi Nallo,

 

As you rightly pointed out about unsupported special characters, you need to remove the underscores, hyphens etc. like special characters used in the project filenames and recompile the project. Then you will get rid of the error "Invalid Widget Archive - Archive not supported".

 

Though its strange for BB development environment to not to allow the special characters, its truely is the case. It resolved my problem.

 

Regards,

Giridhar

Please use plain text.
Developer
Nallo
Posts: 86
Registered: ‎06-05-2009
My Device: Bold 9900 7.1
My Carrier: T-Mobile Germany

Re: Invalid widget archive in Eclipse Plugin

Hello Giridhar,

 

I think that this is strange, too.

And it can become a nuisance, when using Javascript Frameworks (like dojo) which use those special characters.

 

Happy, it works for you :smileyhappy:

 

Nallo

Please use plain text.
o0
Contributor
o0
Posts: 26
Registered: ‎05-13-2010
My Device: developper...
My Carrier: developper...

Re: Invalid widget archive in Eclipse Plugin

Actually, underscores are ok, but dashes are not. Also if hese files are not meant to be part of the plugin, you should exclude them by editing the .settings/net.rim.browser.tools.debug.widget.prefs

 

For example I had to manually exclude the .git and .gitignore files from the plugin, because these wouldn't compile (and why would I want to have a 20Mb .git folder to my widget distribution?)

 

oO

Please use plain text.
Developer
ryansweny
Posts: 64
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Rogers

Re: Invalid widget archive in Eclipse Plugin

Does anyone know how to exclude .svn folders? Looks like none of the below variations work:

 

exclusionfilters=.svn/,*.svn

 

exclusionfilters=.svn

 

exclusionfilters=.svn/,*.svn,**/.svn/*,**/.svn

 

This is for the WebWork version of Eclipse (Helios)

Please use plain text.
Developer
ryansweny
Posts: 64
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Rogers

Re: Invalid widget archive in Eclipse Plugin

[ Edited ]

Any solutions to this out there yet?

Please use plain text.