Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Developer
iamtony
Posts: 87
Registered: 02-26-2010
My Carrier: Rogers
Accepted Solution

bbwp "resource name not valid"

Hi,

 

I'm getting this error all of a sudden saying my Jquery javascript file is invalid:

 

 

[INFO]                  Parsing command line options
[INFO]                  Parsing bbwp.properties
[INFO]                  Validating widget archive
[ERROR]                 Invalid widget archive - resource name not valid(jquery-1.3.2.min.js)

 

I haven't changed the file name at all... and it's been working fine for the past 3 weeks.

 

 

 

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,555
Registered: 10-16-2008
My Carrier: Rogers

Re: bbwp "resource name not valid"

If you are packaging files into a widget you cannot have a dash "-" in the file name.  This is a technical limitation of an embedded resource in a BlackBerry application.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
iamtony
Posts: 87
Registered: 02-26-2010
My Carrier: Rogers

Re: bbwp "resource name not valid"

Thanks, strange that it never complained before since I've had those used in my code for a while now.

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,555
Registered: 10-16-2008
My Carrier: Rogers

Re: bbwp "resource name not valid"

If you were externally linking them in they would be fine.  However if you are packaging them into the contents of the widget, they then become a problem because of the limitation on resource in a cod file.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
iamtony
Posts: 87
Registered: 02-26-2010
My Carrier: Rogers

Re: bbwp "resource name not valid"

Nope, I wasn't externally linking them at all. It was straight linking to my Scripts/ directory. Strange! Anyways, I fixed it and now my focus functionality is working all of a sudden too! haha

Please use plain text.
Developer
Aepfel
Posts: 22
Registered: 11-18-2009

Re: bbwp "resource name not valid"

Same here, I believe it worked with an older version of bbwp

Please use plain text.