AnsweredAssumed Answered

Custom action and message resource file XXX_fr_BE not found

Question asked by m'enfin on Oct 11, 2007
Latest reply on Oct 11, 2007 by janv

I'm using alfresco 2.0, with jdk 1.6.01.

I'm developing a custom action, that requiered a mandatory argument.

To deploy the action, everything is packaged as a jar and placed in the webapps/alfresco/WEB-INF/lib.

Here's the jar content:
   |   |extension
   |       |export-context.xml
       | ExportActionExecuter.class

To develop the action I'm using the sdk, and test it with JUnit.

When I launch the test I get the following exception at startup:

13:28:58,446 ERROR [web.context.ContextLoader] Context initialization failed
java.util.MissingResourceException: Can't find bundle for base name
                                , locale fr_BE

But the file is well there at the same place as the

Here's the context definitions extract:

   <!– Export Action Bean –>
   <bean id="export"
      <property name="nodeService">
         <ref bean="nodeService" />
      <property name="contentService">
         <ref bean="contentService" />

   <!– Load the Export Action Messages –>
   <bean id="export-messages"
      <property name="resourceBundles">

Is it the right place for the messages? If yes, why is Alfresco not finding the bundle?

Another question: How avoid having to define a _fr_BE? I would like to take care of the language (the fr) and not the country (the BE).