cancel
Showing results for 
Search instead for 
Did you mean: 

Name space http://www.mycompany.com/model/emc/contractor/1.0 not found

ssmirnov
Champ in-the-making
Champ in-the-making
Hi,

When I start tomcat 6.0.29 with alfresco 4.0.e this error occurs:


2015-04-09 09:23:12,630 ERROR [WarmCacheListenerBean$Runner][Thread-40] java.lang.RuntimeException: Name space = [http://www.mycompany.com/model/emc/contractor/1.0] not found
….

What can cause the errors?

Thanks,
Sergey
5 REPLIES 5

mrogers
Star Contributor
Star Contributor
That's not an alfresco namespace.  So at some point you have added a custom model and then removed it.

ssmirnov
Champ in-the-making
Champ in-the-making
Yes, it's customize alfresco.

I have an xml describing this model:

<model name="ca:contractorModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
    <description>Contractor model</description>
    <author>ssmirnov</author>
    <version>1.0</version>

    <imports>
        <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
        <import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
        <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
        <import uri="http://www.alfresco.org/model/forum/1.0" prefix="fm"/>
    </imports>

    <namespaces>
        <namespace uri="http://www.mycompany.com/model/emc/contractor/1.0" prefix="ca"/>
        <namespace uri="http://www.mycompany.com/model/emc/contractorchangelog/1.0" prefix="ccc"/>
    </namespaces>


    <types>
        <type name="ca:externalPattern">
   …….
   </type>
        <type name="ccc:changeLog">
   …
   </type>
……


why did not he loads it?

mrogers
Star Contributor
Star Contributor
Where is that model?    You need to post more details if you expect anyone to help!

ssmirnov
Champ in-the-making
Champ in-the-making
here is my content model file

ssmirnov
Champ in-the-making
Champ in-the-making
according to the logs:

2015-04-10 14:38:49,086  DEBUG [repo.dictionary.DictionaryBootstrap] [main] Loading model: ca:contractorModel (from alfresco/model/contractor-model.xml)
2015-04-10 14:38:49,087  DEBUG [repo.dictionary.DictionaryBootstrap] [main] Model count: before=0, load=33, after=33 in 127 msecs [Thread[main,5,main]]


but this query not found my uri:

alfresco3=> select * from alf_namespace;                                                                                                       
id | version |                      uri                      
—-+———+————————————————
  1 |       0 | http://www.alfresco.org/model/system/1.0
  2 |       0 | http://www.alfresco.org/model/user/1.0
  3 |       0 | http://www.alfresco.org/model/security/1.0
  4 |       0 | http://www.alfresco.org/model/versionstore/1.0
  5 |       0 | http://www.alfresco.org/model/versionstore/2.0
  6 |       0 | http://www.alfresco.org/model/content/1.0
  7 |       0 | http://www.alfresco.org/model/application/1.0
  8 |       0 | http://www.alfresco.org/model/rule/1.0
  9 |       0 | http://www.alfresco.org/model/action/1.0
10 |       0 | http://www.alfresco.org/model/site/1.0
11 |       0 | http://www.alfresco.org/model/transfer/1.0
12 |       0 | http://www.alfresco.org/model/publishing/1.0
13 |       0 | .empty
14 |       0 | http://www.alfresco.org/model/rendition/1.0
15 |       0 | http://www.alfresco.org/model/exif/1.0
16 |       0 | http://www.alfresco.org/model/forum/1.0
17 |       0 | http://www.alfresco.org/model/linksmodel/1.0
18 |       0 | http://www.alfresco.org/model/datalist/1.0
19 |       0 | http://www.alfresco.org/system/modules/1.0
(19 rows)


Why there is no record in the table?