Search

I'll be at


I support





Subscribe

Recent entries

Archives by subject

Archives by date

Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
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?

Comments

  • Muzak's Gravatar Muzak said:

    Check the comments at the bottom of this page:
    http://labs.adobe.com/wiki/index.php/Talk:Cairngor...

  • Indy Nagpal's Gravatar Indy Nagpal said:

    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.

  • Tony's Gravatar Tony said:

    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

  • Indy Nagpal's Gravatar Indy Nagpal said:

    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!

  • Tony's Gravatar Tony said:

    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

  • Indy Nagpal's Gravatar Indy Nagpal said:

    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!

  • Prem Radhakrishnan's Gravatar Prem Radhakrishnan said:

    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

  • Indy Nagpal's Gravatar Indy Nagpal said:

    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.

  • css web templates's Gravatar css web templates said:

    i have this probleb too! but i don't know how
    to do this!

  • marcelo's Gravatar marcelo said:

    I added the swc to my project but the message is still there