在放大器文件中添加自定义模型时出错

时间:2012-06-05 11:57:01

标签: alfresco

我想在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,但我已经进行了双重检查,并且在放大器文件中,xyzContentModel.xml位于给定路径。

我在Windows X64上使用Alfresco 4.0d版本

1 个答案:

答案 0 :(得分:0)

感谢您的回复,

问题出现在model-context.xml文件中,通过从xyzContentModel.xml路径中删除config来解决问题

更改了model-context.xml中xyzContentModel.xml的路径

config/alfresco/module/com.diipl.percept.alfresco/models/PerceptContentModel.xml

alfresco/module/com.diipl.percept.alfresco/models/PerceptContentModel.xml