Depend on site model

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2013 05:54 AM
Hi,
I'm creating a custom model, and I need to import site model. But I'm having problems with it:
I do have the import line in my <imports> tag:
The bean "extension.dictionaryBootstrap" has the depends-on clause for dictionary(
UPDATE: I got a PM asking how exactly I solved this issue, here is how:
I edited
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> ….
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2013 06:05 AM
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.
