cancel
Showing results for 
Search instead for 
Did you mean: 

[solved] AMP pack and deploy : Resource bundle not found

zomurn
Champ in-the-making
Champ in-the-making
Hello,

I'am building an amp file and I'd like if this tree deployment is OK (I read advice about advanced amp on wiki) because when I deploy it into an embedded alfresco (zipped version with tomcat), it says it can't find ressource bundle , what is wrong ?

[img]http://img14.imageshack.us/img14/596/arboz8.th.jpg[/img]
2 REPLIES 2

zomurn
Champ in-the-making
Champ in-the-making
As usual I'am going to answer to myself.
The two properties files : msc-model and msc-webclient needs to be put in config/alfresco/extension.

In the bootstrap xml file which specify the model to bootstrap we need to put thing like this (you can remove comments of course Smiley Wink 😞

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
   <!– Registration of new models –>
   <bean id="msc.dictionaryBootstrap" parent="dictionaryModelBootstrap"
      depends-on="dictionaryBootstrap">
      <property name="models">
         <list>
            <value>classpath:alfresco/module/msc/model/msc-model.xml</value>
         </list>
      </property>
<!–      <property name="labels">–>
<!–         <list>–>
<!–            <value>classpath:alfresco/extension/msc-model</value>–>
<!–         </list>–>
<!–      </property>–>
   </bean>

   <!– Enregistrement du nouveau type en etendant le dictionnaire –>
   <bean id="bootstrapExtraBundlesBean" class="org.alfresco.web.app.ResourceBundleBootstrap">
      <property name="resourceBundles">
         <list>
            <value>org.alfresco.module.msc.web.resources.msc-web-messages</value>
            <value>classpath:alfresco/extension/msc-model</value>
            <value>classpath:alfresco/extension/msc-webclient</value>
         </list>
      </property>
   </bean>

</beans>

And Inside my java code, I reference bundles like this :

public static final String   MSC_MESSAGES_BUNDLE      = "org.alfresco.module.msc.web.resources.msc-web-messages";

   public static final String   MSC_MODEL_BUNDLE      = "alfresco.extension.msc-model";

   public static final String   MSC_WEBCLIENT_BUNDLE   = "alfresco.extension.msc-webclient";

Regards.

zomurn
Champ in-the-making
Champ in-the-making
Sorry …. webclient properties and not msc-webclient properties file (have to name it like it).
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.