cancel
Showing results for 
Search instead for 
Did you mean: 

Import ACP file problem: Namespace URI is not defined in repository

johncage
Champ in-the-making
Champ in-the-making
Hello All,

I have a problem. I have manually exported the content of "Data Dictionary" and particularly "Node Templates" into a file name "alf.acp".

Then I wanted to import those exported files back as a part of data bootstrap in AMP package containing that ACP file. But I got an exception below. The exception says something about that the namespace for google docs is not defined in repository. But I don't know why it happens and where are the namespaces defined. I thought that it should be defined, because my AMP module depends on the module of google docs and that's why its namespace URI should already be defined there.

For fuerther information here is an information from my module module.properties:
module.depends.org.alfresco.integrations.google.docs=*
module.version=1.0
module.description=Document templates
module.id=com.test.myalf.dictionary.node.templates
module.repo.version.max=999
module.title=Document templates
module.repo.version.min=4.1.0

And here is the content of module-context.xml

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">



   <bean id="myModule.bootstrap"

      class="org.alfresco.repo.module.ImporterModuleComponent"

      parent="module.baseComponent">



   <!– Module Details –>

   <property name="moduleId" value="com.test.myalf.dictionary.node.templates" />

   <property name="name" value="myModuleBootstrap" />

   <property name="description" value="Document templates" />

   <property name="sinceVersion" value="1.0" />

   <property name="appliesFromVersion" value="1.0" />



   <!– Data properties –>

   <property name="importer" ref="spacesBootstrap"/>

   <property name="bootstrapViews">

      <list>

         <props>

            <prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.nodetemplates.childname}</prop>

            <prop key="location">alfresco/module/com.test.myalf.dictionary.node.templates/alf.acp</prop>

         </props>

      </list>

   </property>



</bean>



</beans>




Exception:

Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 16; column 28 due to error: Namespace URI http://www.alfresco.org/model/googledocs/2.0 has not been defined in the Repository dictionary
at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:194)
at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:431)
at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:280)
at org.alfresco.repo.importer.ImporterBootstrap.doImport(ImporterBootstrap.java:479)
at org.alfresco.repo.importer.ImporterBootstrap.access$000(ImporterBootstrap.java:70)
at org.alfresco.repo.importer.ImporterBootstrap$1$1.execute(ImporterBootstrap.java:350)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
at org.alfresco.repo.importer.ImporterBootstrap$1.doWork(ImporterBootstrap.java:354)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:529)
at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:357)
… 53 more
Caused by: org.alfresco.service.cmr.view.ImporterException: Namespace URI http://www.alfresco.org/model/googledocs/2.0 has not been defined in the Repository dictionary
at org.alfresco.repo.importer.view.ViewParser.getName(ViewParser.java:989)
at org.alfresco.repo.importer.view.ViewParser.processStartElement(ViewParser.java:219)
at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:176)
… 62 more
Sep 11, 2013 11:01:09 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextLoaderListener
org.alfresco.error.AlfrescoRuntimeException: 08110002 Failed to start modules
at org.alfresco.repo.module.ModuleComponentHelper$1.doWork(ModuleComponentHelper.java:302)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:529)
at org.alfresco.repo.module.ModuleComponentHelper.startModules(ModuleComponentHelper.java:196)
at org.alfresco.repo.module.ModuleServiceImpl.startModules(ModuleServiceImpl.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy97.startModules(Unknown Source)
at org.alfresco.repo.module.ModuleStarter$1.execute(ModuleStarter.java:66)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:323)
at org.alfresco.repo.module.ModuleStarter$2.doWork(ModuleStarter.java:76)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:529)
at org.alfresco.repo.module.ModuleStarter.onBootstrap(ModuleStarter.java:71)
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:4791)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
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:618)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 08110001 A module component 'myModule.bootstrap' failed to execute: 08110000 Bootstrap failed
at org.alfresco.error.AlfrescoRuntimeException.create(AlfrescoRuntimeException.java:54)
at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:357)
at org.alfresco.repo.module.ModuleComponentHelper.executeComponent(ModuleComponentHelper.java:645)
at org.alfresco.repo.module.ModuleComponentHelper.startModule(ModuleComponentHelper.java:564)
at org.alfresco.repo.module.ModuleComponentHelper.access$400(ModuleComponentHelper.java:57)
at org.alfresco.repo.module.ModuleComponentHelper$1$1.execute(ModuleComponentHelper.java:239)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:323)
at org.alfresco.repo.module.ModuleComponentHelper$1.doWork(ModuleComponentHelper.java:260)
… 44 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 08110000 Bootstrap failed
at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:361)
at org.alfresco.repo.module.ImporterModuleComponent.executeInternal(ImporterModuleComponent.java:107)
at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:353)
… 51 more
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 16; column 28 due to error: Namespace URI http://www.alfresco.org/model/googledocs/2.0 has not been defined in the Repository dictionary
at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:194)
at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:431)
at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:280)
at org.alfresco.repo.importer.ImporterBootstrap.doImport(ImporterBootstrap.java:479)
at org.alfresco.repo.importer.ImporterBootstrap.access$000(ImporterBootstrap.java:70)
at org.alfresco.repo.importer.ImporterBootstrap$1$1.execute(ImporterBootstrap.java:350)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
at org.alfresco.repo.importer.ImporterBootstrap$1.doWork(ImporterBootstrap.java:354)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:529)
at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:357)
… 53 more
Caused by: org.alfresco.service.cmr.view.ImporterException: Namespace URI http://www.alfresco.org/model/googledocs/2.0 has not been defined in the Repository dictionary
at org.alfresco.repo.importer.view.ViewParser.getName(ViewParser.java:989)
at org.alfresco.repo.importer.view.ViewParser.processStartElement(ViewParser.java:219)
at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:176)
… 62 more

Sep 11, 2013 11:01:09 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener
org.alfresco.error.AlfrescoRuntimeException: 08110002 Failed to start modules
at org.alfresco.repo.module.ModuleComponentHelper$1.doWork(ModuleComponentHelper.java:302)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:529)
at org.alfresco.repo.module.ModuleComponentHelper.startModules(ModuleComponentHelper.java:196)
at org.alfresco.repo.module.ModuleServiceImpl.startModules(ModuleServiceImpl.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy97.startModules(Unknown Source)
at org.alfresco.repo.module.ModuleStarter$1.execute(ModuleStarter.java:66)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:323)
at org.alfresco.repo.module.ModuleStarter$2.doWork(ModuleStarter.java:76)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:529)
at org.alfresco.repo.module.ModuleStarter.onBootstrap(ModuleStarter.java:71)
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:4791)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
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:618)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 08110001 A module component 'myModule.bootstrap' failed to execute: 08110000 Bootstrap failed
at org.alfresco.error.AlfrescoRuntimeException.create(AlfrescoRuntimeException.java:54)
at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:357)
at org.alfresco.repo.module.ModuleComponentHelper.executeComponent(ModuleComponentHelper.java:645)
at org.alfresco.repo.module.ModuleComponentHelper.startModule(ModuleComponentHelper.java:564)
at org.alfresco.repo.module.ModuleComponentHelper.access$400(ModuleComponentHelper.java:57)
at org.alfresco.repo.module.ModuleComponentHelper$1$1.execute(ModuleComponentHelper.java:239)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:323)
at org.alfresco.repo.module.ModuleComponentHelper$1.doWork(ModuleComponentHelper.java:260)
… 44 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 08110000 Bootstrap failed
at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:361)
at org.alfresco.repo.module.ImporterModuleComponent.executeInternal(ImporterModuleComponent.java:107)
at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:353)
… 51 more

Thanks,
John
1 REPLY 1

mitpatoliya
Star Collaborator
Star Collaborator
Actually Google docs module is added in to alfresco setup as extension and it will be present as AMP file in your amps folder.So, I think the situation is before the model related to google docs gets loaded by bootstrap it  is trying to import your ACP file which contains reference to the google docs model URI. that is the problem.