cancel
Showing results for 
Search instead for 
Did you mean: 

problem with examples

ctanis
Champ in-the-making
Champ in-the-making
I'm having a problem with the build process:

If I do a Project > Clean, running the SimpleExampleWithContent causes the following java error:

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'NamespaceService' defined in class path resource [alfresco/public-services-context.xml]: Can't resolve reference to bean 'namespaceService' while setting property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dictionaryDAO' defined in class path resource [alfresco/application-context.xml]: Initialization of bean failed; nested exception is org.alfresco.service.cmr.dictionary.DictionaryException: Could not import bootstrap model alfresco/model/dictionaryModel.xmlorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dictionaryDAO' defined in class path resource [alfresco/application-context.xml]: Initialization of bean failed; nested exception is org.alfresco.service.cmr.dictionary.DictionaryException: Could not import bootstrap model alfresco/model/dictionaryModel.xmlorg.alfresco.service.cmr.dictionary.DictionaryException: Could not import bootstrap model alfresco/model/dictionaryModel.xml‍‍‍‍‍

Now, if I do a minor source code change, it rebuilds part of the project and then the example works.

To complicate matters I went through the "Step by Step Model Definition" tutorial <a href="http://www.alfresco.org/mediawiki/index.php/Data_Dictionary_Guide#Content_Model_XML_Explained">here</a> and I am getting the same "cannot import bootstrap model" error for your sample exampleModel.xml

This one, however, does not go away when I force the project to be rebuilt.

Any ideas?

Thanks,
Craig
5 REPLIES 5

gavinc
Champ in-the-making
Champ in-the-making
Are you using the Eclipse project files we ship with the source bundle?

You can also try doing a Refresh of the project, this often solves build issues for me in Eclipse.

ctanis
Champ in-the-making
Champ in-the-making
i am using the provided eclipse files.  the refresh does fix the first problem. thanks.

I'm still having a problem getting it to load the exampleModel.  Is there perhaps an incompatibility between the provided exampleModel.xml on the wiki page and the current build? 

thanks
-craig

ctanis
Champ in-the-making
Champ in-the-making
i just realized the RC1 was out.  feel free to ignore last post .. at least temporarily

-craig

ctanis
Champ in-the-making
Champ in-the-making
There is a minor problem with the exampleModel.xml on the wiki that you may want to repair.

The xmlns for the model element is wrong.

The example is working here now, after changing it to the same xmlns from the other model xml's.

Thanks,
Craig

davidc
Star Contributor
Star Contributor
Thanks for reporting this.  Will test and fix.