I currently have built the alfter SDK project for version 3.0.1. I have setup my project in Intellij.
The default bootstrap-context.xml file in the platforms module show an error that it cannot load dictionaryModelBootstrap spring bean and similarly the dependency dictionaryBootstrap .
Similarly it isnt able to recognise the property name="labels" .
I am not sure what the issue is? Should I make any changes to the default bootstrap file?
<?xml version='1.0' encoding='UTF-8'?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<!-- The bootstrap-context.xml file is used for patch definitions, importers,
workflow, and loading custom content models. -->
<!-- Registration of new models -->
<bean id="iceberg-alfresco-platform-jar.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/module/${project.artifactId}/model/content-model.xml</value>
<value>alfresco/module/${project.artifactId}/model/workflow-model.xml</value>
</list>
</property>
<property name="labels">
<list>
<!-- Bootstrap Resource Bundles for the content model types, aspects, properties etc -->
<value>alfresco/module/${project.artifactId}/messages/content-model</value>
</list>
</property>
</bean>
Solved! Go to Solution.
Is it an error in the IDEs editor (i.e. from some Spring introspection tool) or during the actual execution of the project?
If it is the former, I would assume that IntelliJ simply cannot find the parent bean since the Alfresco core Spring files are not included in its analysis path, and in that case the error might be ignored (or, if you know how to add Spring files from JARs / Maven dependencies to the analysis / lookup path, the configuration of the IDE be changed). If it is the latter, we require the actual Alfresco log files with exception stacktraces for any further suggestions / help.
Is it an error in the IDEs editor (i.e. from some Spring introspection tool) or during the actual execution of the project?
If it is the former, I would assume that IntelliJ simply cannot find the parent bean since the Alfresco core Spring files are not included in its analysis path, and in that case the error might be ignored (or, if you know how to add Spring files from JARs / Maven dependencies to the analysis / lookup path, the configuration of the IDE be changed). If it is the latter, we require the actual Alfresco log files with exception stacktraces for any further suggestions / help.
It is an error in the IDEs, as you suggest I would presume it cannot load the core spring files in the path and hence erroring out. I will ignore this for now and go ahead.
Thanks for your response Axel.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.