我想在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版本
答案 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