我想在 AMP 文件中添加自定义模型,但出现以下错误 -
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xyz.dictionaryBootstrap' defined in class path resource [alfresco/module/xyz/context/service-context.xml]: Invocation of init method failed; nested exception is org.alfresco.service.cmr.dictionary.DictionaryException: 05050000 Could not find bootstrap model config/alfresco/module/xyz/models/xyzContentModel.xml
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
错误表明xyzContentModel.xml
在给定的路径中缺少model-context.xml
,但我已经仔细检查并在 amp 文件中,xyzContentModel.xml
在给定的路径。
我在 Windows X64 上使用 Alfresco 4.0d 版本