cancel
Showing results for 
Search instead for 
Did you mean: 

'A namespace prefix is not registered for uri http://www.alfresco.org/model/site/1.0' while deploying Activiti

celestocalculus
Champ in-the-making
Champ in-the-making
Hi all,
I'm a beginner with Alfresco and I'm having lots of issues getting it to work with my custom workflow definitions.

I created a basic workflow with two user tasks and a start and an end, created the model definition xml, the -context xml and the required share-config-custom, web-client-config-custom xml and the .properties file.

The -context.xml file is not picked automatically, I don't know why. However, I used the repoadmin console to install the model which installed successfully, but when I try to use the workflow console to install the workflow, it gives me an error and I'm not able to run alfresco again. I've had to uninstall and re-install Alfresco two times now, yet I still get the same message.

The error says: "A namespace prefix is not registered for uri http://www.alfresco.org/model/site/1.0" and then Alfresco goes down and never starts-up again.

Please can you help me with a solution to this? Find attached my source codes and the workflow.

Thanks.
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
attached files are not visible
you need to use different namespace I guess that is the problem still better to check your files.

aevans713
Champ in-the-making
Champ in-the-making
Currently attachments on the forum aren't displayed, it's a defect we are working on. You can copy/paste the text into your post or use pasetbin.

andy2_0
Champ in-the-making
Champ in-the-making
I did the similar thing and have the same problem now. Anybody please help?  Thanks in advance!

While restarting the alfresco, I will get the following error messages, alfresco can be launched but I can't login to share.


14:36:40,411 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Replication' subsystem, ID: [Replication, default]
14:36:40,424 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Replication' subsystem, ID: [Replication, default] complete
14:36:41,169 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.service.namespace.NamespaceException: A namespace prefix is not registered for uri http://www.alfresco.org/model/Morelevelworkflow/1.0
   at org.alfresco.service.namespace.QName.toPrefixString(QName.java:417)
   at org.alfresco.cmis.mapping.CMISMapping.getCmisTypeId(CMISMapping.java:453)
   at org.alfresco.cmis.mapping.CMISMapping.getCmisTypeId(CMISMapping.java:490)
   at org.alfresco.cmis.dictionary.CMISStrictDictionaryService.createTypeDefs(CMISStrictDictionaryService.java:68)
   at org.alfresco.cmis.dictionary.CMISStrictDictionaryService.createDefinitions(CMISStrictDictionaryService.java:48)
   at org.alfresco.cmis.dictionary.CMISAbstractDictionaryService.init(CMISAbstractDictionaryService.java:423)
   at org.alfresco.cmis.dictionary.CMISAbstractDictionaryService.afterDictionaryInit(CMISAbstractDictionaryService.java:517)
   at org.alfresco.cmis.dictionary.CMISAbstractDictionaryService.onBootstrap(CMISAbstractDictionaryService.java:543)
   at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:724)