AnsweredAssumed Answered

FLEX 4.6 could not find resource bundle 'components' for locale 'en_US'

Question asked by csgismsdbc on Feb 11, 2013
Latest reply on Mar 27, 2014 by phdjoe
I've seen this issue on some of the Flex forums at Adobe and Esri, but have not been able to reach a solution.

I started with custom written widgets designed to work in ArcGIS 1.x API for Flex and have migrated them to work on the ArcGIS 3.1 API for Flex.  There is one main widget, a modified query widget (which queries a map service for specific feature types) and 2 others that serve as popups, makings graphs from SQL data returned as an xml document, facilitated by a web service.  I know it might be a bit verbose, but I am trying to paint a clear picture of what I have done so far.

I have successfully gotten the widgets to work in the FlashBuilder 4.6 environment using the out-of-the-box ArcGIS API for Flex 3.1 , but my goal is to take the widgets from that environment into an existing flexviewer website, which was modified by another user using Application Builder.  (A big thanks to the article by Robert Scheitlin, Bjorn Svensson, and Derek Law.  Just seeing it work in my development environment made my weekend a couple of weekends ago.)


I've added the SWF's to a subfolder in our staging website (a copy of our live website) and set up the config.xml and widget config xml appropriately.  The primary query widget displays, but will not display the query results.  I get an error message with the following error:

Error: Could not find compiled resource bundle 'components' for locale 'en_US'.
at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()
at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()
at mx.core::FlexModuleFactory/installCompiledResourceBundles()
at mx.core::FlexModuleFactory/docFrameHandler()
at mx.core::FlexModuleFactory/docFrameListener()

There are a host of other errors, but I assume that they are results of asynchronous function calls continuing after the first is stymied.

I have used a variety of compiler options from the standard choices and checkboxes.  for example, I am using the default Flex SDK (4.6 for my version), the minimum version of Flash Player required by the Flex SDK.  I have all of the compiler options checked (Flash Text Engine in MX components, copy non-embedded files to output folder, etc...)

I am compiling with the following additional compiler arguments:
-locale en_US -source-path=locale/{locale} -keep-all-type-selectors=true
-resource-bundle-list=c:\bundles.txt^  (just to get a list of resource bundles to include)    
-include-resource-bundles=ESRIMessages,SharedResources,charts,collections,components,containers,controls,core,effects,formatters,layout,logging,messaging,osmf,rpc,skins,sparkEffects,styles,textLayout,utils,validators

If anyone can help, I would greatly appreciate it.

Thank you

Outcomes