A namespace prefix is not registered for uri xxx

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2013 10:27 AM
Hi,
I am using Alfresco 4.2.d Community, and I've made some changes to my custom model.
Now, the changes are in for a couple of weeks now, but I've just noticed this in the log, it happens often:
What could that mean?
One potential issue is that at the first try, I just had this in my model file:
Now, after the changes, I have something slightly different:
<em>(www.mydomain.com is altered here)</em>
What is Solr trying to tell me?
And further more, how to stop getting that message in the log?
I am using Alfresco 4.2.d Community, and I've made some changes to my custom model.
Now, the changes are in for a couple of weeks now, but I've just noticed this in the log, it happens often:
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.service.namespace.NamespaceException: A namespace prefix is not registered for uri bv.model
What could that mean?
One potential issue is that at the first try, I just had this in my model file:
<namespace uri="bv.model" prefix="bv"/>
Now, after the changes, I have something slightly different:
<namespace uri="http://www.mydomain.com/model/dictionary/1.0" prefix="bv"/>
<em>(www.mydomain.com is altered here)</em>
What is Solr trying to tell me?
And further more, how to stop getting that message in the log?
Labels:
- Labels:
-
Archive
7 REPLIES 7
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2013 11:21 AM
Have you tried after changing the model file name? also change the context file accordingly.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2013 04:11 PM
What should I name my file then?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2013 10:34 PM
Name could be anything but the point is because you have same model name it will consider it as same model file and its previous version is also being loaded So my assumption is if you completely rename the model file name and also change uri(which you have already done) and prefix it should not look for old namespace.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2013 12:03 PM
Ok, thanks, I can give it a shot.
Although, two things confuse me here.
For one, I thought that if I change the model, the new version will automatically be deployed. Does this mean that since I changed the namespace, I should also change the name of the file?
And second thing, when you see that the previous model is being loaded too, do you mean by solr? Or by Alfresco?
Although, two things confuse me here.
For one, I thought that if I change the model, the new version will automatically be deployed. Does this mean that since I changed the namespace, I should also change the name of the file?
And second thing, when you see that the previous model is being loaded too, do you mean by solr? Or by Alfresco?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2013 02:10 PM
Well, in any case, it didn't help. I still get the messages in the log.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2013 02:37 PM
This is affecting me as well.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2013 10:15 PM
You should edit Model name instead of model file name, Whether a model will automatically be deployed is acorrding model name not file name.
Of cause the model name you changed should not already exist.
<strong>
<model name="app:applicationmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
</strong>
Of cause the model name you changed should not already exist.
<strong>
<model name="app:applicationmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
</strong>
