problem with examples
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 04:28 PM
I'm having a problem with the build process:
If I do a Project > Clean, running the SimpleExampleWithContent causes the following java error:
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
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
Labels:
- Labels:
-
Archive
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 09:49 AM
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.
You can also try doing a Refresh of the project, this often solves build issues for me in Eclipse.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 11:26 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 12:02 PM
i just realized the RC1 was out. feel free to ignore last post .. at least temporarily
-craig
-craig
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 01:56 PM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 07:09 AM
Thanks for reporting this. Will test and fix.
