06-20-2018 05:55 AM
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>
06-20-2018 06:32 AM
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.
06-20-2018 06:32 AM
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.
06-20-2018 06:43 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.