cancel
Showing results for 
Search instead for 
Did you mean: 

Restoration of a repository fails during bootstrap.

gaspode
Champ in-the-making
Champ in-the-making
I created a backup of the whole repository of my old 4.0-preview Alfresco system and tried to import it using the instructions in http://wiki.alfresco.com/wiki/Export_and_Import, but when I start the system the import seems to fail:


12:35:39,482 INFO  [domain.schema.SchemaBootstrap] Executing database script: /opt/alfresco/tomcat/temp/Alfresco/AlfrescoSchemaCreate-org.hibernate.dialect.M
ySQLInnoDBDialect-35178.sql
12:35:49,545 INFO  [domain.schema.SchemaBootstrap] Executing database script: classpath:alfresco/dbscripts/create/1.4/${db.script.dialect}/post-create-indexe
s.sql
12:35:50,734 DEBUG [repo.importer.ImporterBootstrap] Created store: user://alfrescoUserStore
12:35:50,742 DEBUG [repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_users.acp
12:35:51,037 DEBUG [repo.importer.ImporterBootstrap] Import started at Thu Nov 02 12:35:51 CST 2006 (1162442151036)
12:35:59,432 DEBUG [repo.importer.ImporterBootstrap] Import completed at Thu Nov 02 12:35:59 CST 2006 (1162442159432)
12:35:59,432 DEBUG [repo.importer.ImporterBootstrap] Import duration: 8396 ms (Note: excluding commit time)
12:35:59,432 DEBUG [repo.importer.ImporterBootstrap]  Nodes created: 56
12:35:59,432 DEBUG [repo.importer.ImporterBootstrap]  Nodes linked: 0
12:35:59,433 DEBUG [repo.importer.ImporterBootstrap]  Aspects Added: 0
12:35:59,433 DEBUG [repo.importer.ImporterBootstrap]  Properties set: 374
12:35:59,433 DEBUG [repo.importer.ImporterBootstrap]  Content set: 0
12:35:59,433 DEBUG [repo.importer.ImporterBootstrap]  Permissions set: 0
12:37:01,687 DEBUG [repo.importer.ImporterBootstrap] Created store: system://system
12:37:01,689 DEBUG [repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_system.acp
12:37:01,691 DEBUG [repo.importer.ImporterBootstrap] Import started at Thu Nov 02 12:37:01 CST 2006 (1162442221691)
12:37:01,779 DEBUG [repo.importer.ImporterBootstrap] Import completed at Thu Nov 02 12:37:01 CST 2006 (1162442221778)
12:37:01,779 DEBUG [repo.importer.ImporterBootstrap] Import duration: 87 ms (Note: excluding commit time)
12:37:01,779 DEBUG [repo.importer.ImporterBootstrap]  Nodes created: 2
12:37:01,779 DEBUG [repo.importer.ImporterBootstrap]  Nodes linked: 0
12:37:01,779 DEBUG [repo.importer.ImporterBootstrap]  Aspects Added: 0
12:37:01,779 DEBUG [repo.importer.ImporterBootstrap]  Properties set: 28
12:37:01,779 DEBUG [repo.importer.ImporterBootstrap]  Content set: 0
12:37:01,779 DEBUG [repo.importer.ImporterBootstrap]  Permissions set: 0
12:37:01,913 DEBUG [repo.importer.ImporterBootstrap] Created store: workspace://lightWeightVersionStore
12:37:01,916 DEBUG [repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_versions.acp
12:37:01,920 DEBUG [repo.importer.ImporterBootstrap] Import started at Thu Nov 02 12:37:01 CST 2006 (1162442221920)
12:37:01,997 DEBUG [repo.importer.ImporterBootstrap] Import completed at Thu Nov 02 12:37:01 CST 2006 (1162442221997)
12:37:01,998 DEBUG [repo.importer.ImporterBootstrap] Import duration: 77 ms (Note: excluding commit time)
12:37:01,999 DEBUG [repo.importer.ImporterBootstrap]  Nodes created: 0
12:37:01,999 DEBUG [repo.importer.ImporterBootstrap]  Nodes linked: 0
12:37:01,999 DEBUG [repo.importer.ImporterBootstrap]  Aspects Added: 0
12:37:01,999 DEBUG [repo.importer.ImporterBootstrap]  Properties set: 5
12:37:02,000 DEBUG [repo.importer.ImporterBootstrap]  Content set: 0
12:37:02,000 DEBUG [repo.importer.ImporterBootstrap]  Permissions set: 1
12:37:02,170 DEBUG [repo.importer.ImporterBootstrap] Created store: archive://SpacesStore
12:39:29,507 DEBUG [repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_spaces_archive.acp
12:39:29,679 DEBUG [repo.importer.ImporterBootstrap] Import started at Thu Nov 02 12:39:29 CST 2006 (1162442369679)
12:53:02,925 DEBUG [repo.importer.ImporterBootstrap] Import completed at Thu Nov 02 12:53:02 CST 2006 (1162443182924)
12:53:03,022 DEBUG [repo.importer.ImporterBootstrap] Import duration: 813245 ms (Note: excluding commit time)
12:53:03,022 DEBUG [repo.importer.ImporterBootstrap]  Nodes created: 102
12:53:03,023 DEBUG [repo.importer.ImporterBootstrap]  Nodes linked: 0
12:53:03,023 DEBUG [repo.importer.ImporterBootstrap]  Aspects Added: 314
12:53:03,023 DEBUG [repo.importer.ImporterBootstrap]  Properties set: 1451
12:53:03,024 DEBUG [repo.importer.ImporterBootstrap]  Content set: 57
12:53:03,024 DEBUG [repo.importer.ImporterBootstrap]  Permissions set: 0
12:53:27,175 ERROR [openoffice.connection.SocketOpenOfficeConnection] disconnected unexpectedly
12:53:30,160 DEBUG [repo.importer.ImporterBootstrap] Created store: workspace://SpacesStore
12:53:32,955 DEBUG [repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_spaces.acp
12:53:33,040 DEBUG [repo.importer.ImporterBootstrap] Import started at Thu Nov 02 12:53:33 CST 2006 (1162443213040)
12:53:35,506 DEBUG [repo.importer.ImporterBootstrap] Import completed at Thu Nov 02 12:53:35 CST 2006 (1162443215501)
12:53:35,507 DEBUG [repo.importer.ImporterBootstrap] Error occured at Thu Nov 02 12:53:35 CST 2006 (1162443215501)
12:53:35,507 DEBUG [repo.importer.ImporterBootstrap] Exception: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 338; column
54 due to error: Namespace URI http://www.alfresco.org/model/record/1.0 has not been defined in the Repository dictionary
12:53:35,508 DEBUG [repo.importer.ImporterBootstrap] Import duration: 2461 ms (Note: excluding commit time)
12:53:03,022 DEBUG [repo.importer.ImporterBootstrap]  Nodes created: 102
12:53:03,023 DEBUG [repo.importer.ImporterBootstrap]  Nodes linked: 0
12:53:03,023 DEBUG [repo.importer.ImporterBootstrap]  Aspects Added: 314
12:53:03,023 DEBUG [repo.importer.ImporterBootstrap]  Properties set: 1451
12:53:03,024 DEBUG [repo.importer.ImporterBootstrap]  Content set: 57
12:53:03,024 DEBUG [repo.importer.ImporterBootstrap]  Permissions set: 0
12:53:27,175 ERROR [openoffice.connection.SocketOpenOfficeConnection] disconnected unexpectedly
12:53:30,160 DEBUG [repo.importer.ImporterBootstrap] Created store: workspace://SpacesStore
12:53:32,955 DEBUG [repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_spaces.acp
12:53:33,040 DEBUG [repo.importer.ImporterBootstrap] Import started at Thu Nov 02 12:53:33 CST 2006 (1162443213040)
12:53:35,506 DEBUG [repo.importer.ImporterBootstrap] Import completed at Thu Nov 02 12:53:35 CST 2006 (1162443215501)
12:53:35,507 DEBUG [repo.importer.ImporterBootstrap] Error occured at Thu Nov 02 12:53:35 CST 2006 (1162443215501)
12:53:35,507 DEBUG [repo.importer.ImporterBootstrap] Exception: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 338; column
54 due to error: Namespace URI http://www.alfresco.org/model/record/1.0 has not been defined in the Repository dictionary
12:53:35,508 DEBUG [repo.importer.ImporterBootstrap] Import duration: 2461 ms (Note: excluding commit time)
12:53:35,508 DEBUG [repo.importer.ImporterBootstrap]  Nodes created: 14
12:53:35,509 DEBUG [repo.importer.ImporterBootstrap]  Nodes linked: 0
12:53:35,509 DEBUG [repo.importer.ImporterBootstrap]  Aspects Added: 14
12:53:35,509 DEBUG [repo.importer.ImporterBootstrap]  Properties set: 152
12:53:35,510 DEBUG [repo.importer.ImporterBootstrap]  Content set: 1
12:53:35,510 DEBUG [repo.importer.ImporterBootstrap]  Permissions set: 2
12:53:35,883 ERROR [web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
        at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:448)
        at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(ImporterBootstrap.java:670)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:54)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3692)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4127)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 338; column 54 due to error: Namespace URI http://www.alfresco.o
rg/model/record/1.0 has not been defined in the Repository dictionary
        at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:171)
        at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:344)
        at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:222)
        at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:433)
        … 33 more
Caused by: org.alfresco.service.cmr.view.ImporterException: Namespace URI http://www.alfresco.org/model/record/1.0 has not been defined in the Repository dic
tionary
        at org.alfresco.repo.importer.view.ViewParser.getName(ViewParser.java:890)
        at org.alfresco.repo.importer.view.ViewParser.processStartElement(ViewParser.java:192)
        at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:157)
        … 36 more

How do I register the record model to make this import work?
3 REPLIES 3

davidc
Star Contributor
Star Contributor
With 1.4 community final you can remove the .sample extension from

alfresco/extension/records-management-context.xml.sample

gaspode
Champ in-the-making
Champ in-the-making
That file doesn't seem to have been packaged in neither the tomcat-bundle release, nor the war-release…


[root@cms ~]# tar -tzvf alfresco-community-tomcat-1.4.0.tar.gz |grep record
-rw-r–r– /            538444 2006-09-07 01:26:34 extras/record_space.acp
[root@cms ~]# tar -tzvf alfresco-community-war-1.4.0.tar.gz |grep record
-rw-r–r– /            538444 2006-09-07 01:26:34 extras/record_space.acp

I'm downloading the full installation now, so hopefully it is in that one…

gaspode
Champ in-the-making
Champ in-the-making
… it wasn't as far as I can see:


[root@cms alfresco_install]# find . -name \*record\*
./extras/record_space.acp

Could you post the contents of the file here?