cancel
Showing results for 
Search instead for 
Did you mean: 

A namespace prefix is not registered - Simple OCR

anoopkr
Confirmed Champ
Confirmed Champ

Hi,

In our 6.2 installation we have or rather had this OCR module (2.3.1) it worked flawlessly. We are now migrating the 6.2 to latest version, we did it through version 7 and all are working (seemingly) fine, except, in Workspace application and error comes at certain entries, "This item no longer exists or you don't have permission to view it. ", the error log says  " A namespace prefix is not registered for uri http://www.keensoft.es/model/content/ocr/1.0". We had removed the jar files and global-properties entries related to OCR and all the folder rules before taking the backup of both content store and DB in 6.2 and we suspect this could be the error. Someone please help to tackle this issue, apart from this everything looks okay.

An excerpt from the log file.

Caused by: org.alfresco.scripts.ScriptException: 09090057 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/metadata/metadata.get.js': A namespace prefix is not registered for uri http://www.keensoft.es/model/content/ocr/1.0
Caused by: org.alfresco.service.namespace.NamespaceException: A namespace prefix is not registered for uri http://www.keensoft.es/model/content/ocr/1.0
2024-10-09 04:52:07,076 WARN [org.alfresco.repo.module.ModuleServiceImpl] [main] A previously-installed module 'simple-ocr-repo' (version 2.3.1) is not present in your distribution.
2024-10-09 05:13:13,023 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-7] Exception from executeScript: 09090017 Wrapped Exception (with status template): 09090054 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/metadata/metadata.get.js': A namespace prefix is not registered for uri http://www.keensoft.es/model/content/ocr/1.0
org.springframework.extensions.webscripts.WebScriptException: 09090017 Wrapped Exception (with status template): 09090054 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/metadata/metadata.get.js': A namespace prefix is not registered for uri http://www.keensoft.es/model/content/ocr/1.0

Regards

ANOOP KR

 

1 ACCEPTED ANSWER

Please, use the last version of the Alfresco Model Extractor app:

https://github.com/aborroy/alfresco-model-extractor/releases/tag/0.2.0

The previous one (0.1.0) was creating the JAR with an incorrect module version.

Create again the JAR and apply it again to your Alfresco deployment.

Hyland Developer Evangelist

View answer in original post

32 REPLIES 32

Hi,

Is it possible to run the al-tengine-ocr with a port different than 8090 ? If so, please let me know.

Regards

 

Hi,

I figured it out myself, we can do it by port information as an argument, that being the case why should we run it in a docker ?

Regards

anoopkr
Confirmed Champ
Confirmed Champ

Hi,

With the support from Mr Angel and Douglascrp, we successfully eliminated the issues we were facing.  It was incredible, the help you people offered, without which we probably could never achieve the goal, thanks in abundance.

Stay well.

Regards

From India.