Hola tengo un error al momento de usar un Aspecto sencillo en mi modelo:
<code> <?xml version="1.0" encoding="UTF-8"?>
<!– Custom Model –>
<!– Note: This model is pre-configured to load at startup of the Repository. So, all custom –> <!– types and aspects added here will automatically be registered –>
<!– Introduction of new namespaces defined by this model –> <!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –> <namespaces> <namespace uri="custom.model" prefix="custom"/> </namespaces> <types>
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 06290001 Could not import bootstrap model alfresco/extension/customModel.xml at org.alfresco.repo.dictionary.DictionaryBootstrap.onDictionaryInit(DictionaryBootstrap.java:159) at org.alfresco.repo.dictionary.DictionaryBootstrap.bootstrap(DictionaryBootstrap.java:105) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1639) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1580) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1510) … 26 more Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 06290000 Failed to parse model at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:102) at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:88) at org.alfresco.repo.dictionary.DictionaryBootstrap.onDictionaryInit(DictionaryBootstrap.java:148) … 34 more Caused by: org.jibx.runtime.JiBXException: Expected "{http://www.alfresco.org/model/dictionary/1.0}aspect" end tag, found "{http://www.alfresco.org/model/dictionary/1.0}appearance" start tag (line 120, col 15) at org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(UnmarshallingContext.java:731) at org.alfresco.repo.dictionary.JiBX_defaultM2Aspect_access.unmarshal() at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_8() at org.alfresco.repo.dictionary.JiBX_defaultMungeAdapter.JiBX_default_unmarshal_1_9() at org.alfresco.repo.dictionary.JiBX_defaultM2Model_access.unmarshal() at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2757) at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900) at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:97) … 36 more
Si quito mi aspecto dentro de mi modelo no me da el error pero quisiera usar un aspecto para efecto de mejores practicas.
El único error que veo es que has puesto un espacio de nombres que no has declarado en el tipo. Cambiando "cont" por "custom" el modelo parece correcto.