11-03-2009 12:35 AM
…
INFO: Initializing Spring root WebApplicationContext
03 Nov 09 12:00:25 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'extension.dictionaryBootstrap' defined in file [E:\alfresco\tomcat\shared\classes\alfresco\extension\my-model-context.xml]: Invocation of init method failed; nested exception is org.alfresco.service.cmr.dictionary.DictionaryException: 10030001 Could not import bootstrap model alfresco/extension/myModel.xml
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 10030001 Could not import bootstrap model alfresco/extension/myModel.xml
at org.alfresco.repo.dictionary.DictionaryBootstrap.onDictionaryInit(DictionaryBootstrap.java:151)
at org.alfresco.repo.dictionary.DictionaryBootstrap.bootstrap(DictionaryBootstrap.java:108)
[more stack trace follows]
…
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 10030000 Failed to parse model
…
Caused by: org.jibx.runtime.JiBXException: Expected "{http://www.alfresco.org/model/dictionary/1.0}model" end tag, found "{http://www.alfresco.org/model/dictionary/1.0}imports" start tag (line 20, col 13)
…
[more stack trace follows]
<model name="my:model" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Experimental Model</description>
<author>Barkah Yusuf</author>
<version>0.1</version>
<namespaces>
<namespace uri="my.cms.model" prefix="my"/>
</namespaces>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<types>
<type name="my:exp">
<title>Exerimental content type</title>
<parent>cm:content</parent>
<properties>
<property name="my:contentTimeLineStart">
<type>d:datetime</type>
</property>
<property name="my:contentTimeLineEnd">
<type>d:datetime</type>
</property>
<property name="my:contentOwner">
<type>d:text</type>
</property>
</properties>
</type>
</types>
</model>
11-03-2009 03:14 AM
11-03-2009 04:24 AM
you have to declare the "imports" before the "namespaces".
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.