cancel
Showing results for 
Search instead for 
Did you mean: 

Depend on site model

zladuric
Champ on-the-rise
Champ on-the-rise
Hi,

I'm creating a custom model, and I need to import site model. But I'm having problems with it:
Caused by: org.alfresco.service.namespace.NamespaceException: URI http://www.alfresco.org/model/site/1.0 cannot be imported as it is not defined (with prefix st


I do have the import line in my <imports> tag:
<import uri="http://www.alfresco.org/model/site/1.0" prefix="st" />  
, but it still fails.

The bean "extension.dictionaryBootstrap" has the depends-on clause for dictionary(
depends-on="dictionaryBootstrap">
, but I suspect that's not it. What else am I missing?


UPDATE: I got a PM asking how exactly I solved this issue, here is how:

I edited
alfresco/WEB-INF/classes/alfresco/site-services-context.xml
file and I added this:

   <bean id="siteService_dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/model/siteModel.xml</value>
            </list>
        </property>
  ….


1 REPLY 1

zladuric
Champ on-the-rise
Champ on-the-rise
Found it. Site model is not not part of dictionaryBootstrap, it is part of <strong>siteService_dictionaryBootstrap</strong> bean, so I just added a dependancy to that bean too. My model is now ok.