25
Aug
Unable to resolve a class for ResourceBundle: CairngormMessages
Today I was building an application using Cairngorm 2.2. All was going well and I was very happy with the progress I was making. But then, I started facing this error while compiling the application.
Unable to resolve a class for ResourceBundle: CairngormMessages
From the text of the error it appears that the locale-specific bundle for CairngormMessages is not available/visible.
I made sure that the "locale" folder was available off the root of the project, and that the compiler was using the correct locale setting.
But I found an interim solution to the issue -- using Cairngorm.swc, rather than the actual source of Cairngorm (which I was using) makes the error goes away.
So, for now I'm on my way by using Cairngorm.swc. But I still need to figure out why the error occurs in the first place.
Any thoughts?




Check the comments at the bottom of this page:
http://labs.adobe.com/wiki/index.php/Talk:Cairngor...
August 27, 2007 3:26 AM
Thanks Muzak. I've looked at the comments, and tried to add the locale path as suggested. But doesn't seem to do the trick.
The only way I can get it to go is by using the SWC -- which is an acceptable solution at the moment. It is just that I like to use the source when developing so that I can actually see what the framework is actually doing.
August 27, 2007 6:06 AM
Indy,
I also had this problem, but cannot remember the working solution. Mine is working now. Sorry I did not blog it at the time now. Anyway, I set up Cairngorm as a Project in my workspace. In the cairngorm project, I have:
Library path - ${FRAMEWORKS}/locale/{locale}
Source path - locale/{locale}
and also a locale/en_US directory path with CairngormMessages.properties in there.
In my project that uses cairngorm I "Add Project" under Library path.
Hope this helps you.
Tony
August 28, 2007 10:28 PM
Thanks for your comment Tony. It is very helpful. Where are you based? I looked at your blog, but couldn't find anything about you. You have some good stuff there!
August 31, 2007 3:45 PM
Thanks Indy,
I am out of Southern California. I have been using Flex for about 4 months now. I hope you were able to get your problem solved. If not, I would set up a new project trying to use Cairngorm the way you had it and see where your settings may have broke.
Tony
September 1, 2007 3:25 AM
Ya, I got it to go the way you suggested. Cheers.
I think I need to add a "Contact" or "About me" section to my blog as well!
September 2, 2007 8:06 AM
Did you ever get this to work? I am having the same problem but I am not really understanding Tony's solution?
I downloaded the Cairngorm source files, unzipped it to a location and then I tried to create a Flex Library project. Is that what I need to do ? I am still very new to this and would appreciate if someone told me exactly what to do if you want to use the source code instead of the swc for development purposes.
Cheers
Prem
October 16, 2007 9:52 AM
You can do either of the following:
- Use Cairngorm.swc, rather than the actual source code of Cairngorm
- If you want to use Cairngorm source code, then you can:
a) copy the locale folder in the root of your Flex Builder project.
b) the Flex compiler path in Flex Builder would look like this:
-source-path+=locale/{locale} -locale=en_US --services=[PATH_TO_services-config.xml]
You'd need to replace [PATH_TO_services-config.xml] with the path to services-config.xml that you want to use.
That should do it.
Let me know how you go.
October 16, 2007 9:25 PM
i have this probleb too! but i don't know how
to do this!
December 9, 2007 7:18 AM
I added the swc to my project but the message is still there
December 13, 2007 6:38 AM