07-13-2007 04:50 PM
07-18-2007 01:05 PM
Perhaps you mean the Bootstrap-Import-Method described in the wiki
[[list]edit] Bootstrap destination Repository from ACP files exported from Full Export
The Alfresco Repository supports a bootstrap process which is initiated whenever the Repository is first started. The process populates the Repository with information that is required upon first login such as system users, data dictionary definitions and important root folders.
The bootstrap process is configurable allowing the population of any information during the first start of the Repository. It is this configurability that allows a Repository to be bootstrapped from an existing 'Full Repository Export' as described in step 1. Upon startup of the Repository, all information exported from the source Repository is imported, so that once started, the new Repository will look just like the source Repository.
Note: When exporting and importing from an older Repository version to a newer Repository version, all applicable patches are automatically applied.
The steps for configuring the bootstrap process for a full restore are:
Install Alfresco, but do not start (or ensure existing Alfresco installation is configured against an empty database and file system).
Rename existing restore-context.xml.sample to restore-context.xml and place into the configuration extension directory /alfresco/extension.
By default, restore-context.xml assumes a package name of 'Export' was used. If this is not the case, replace all occurrances of Export with your package name.
More precisely you shoud replace any occurence of "export" (and not "Export", as there is no occurence of such a string within the provided restore-context.xml.sample file). Shouldn't you ?
Create a directory called restore within /alfresco/extension.
Place the exported files from the source Repository into /alfresco/extension/restore.
Start Alfresco
If configured correctly, log messages detailing the import of each backup file are presented to the Alfresco server console.
TODO: Where is restore-context.xml.sample in install?
The restore-context.xml.sample file can be found in various locations, depending on the distribution of Alfresco you download. If you installed the JBoss distribution, you can find the restore-context.xml.sample in $JBOSS_HOME/server/default/conf/alfresco/extension/. For other distributions, the location of this extension directory may be slightly different.[/list]
07-20-2007 10:45 AM
18:19:19,651 WARN [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
18:19:22,734 WARN [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
18:19:28,280 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
18:19:28,566 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /data/opt/alfresco/tomcat/temp/Alfresco/AlfrescoSchemaCreate-org.hibernate.dialect.MySQLInnoDBDialect-55950.sql (Generated).
18:19:45,980 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /data/opt/alfresco/tomcat/temp/Alfresco/AlfrescoSchemaUpdate-org.hibernate.dialect.MySQLInnoDBDialect-55951.sql (Copied from classpath:alfresco/dbscripts/create/2.1/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoPostCreate-2.1-FKIndexes.sql).
18:19:46,080 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] All executed statements written to file /data/opt/alfresco/tomcat/temp/Alfresco/AlfrescoSchemaUpdate-All_Statements-55952.sql.
18:19:47,779 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Created store: user://alfrescoUserStore
18:19:47,797 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_users.acp
18:19:48,087 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import started at Thu Jul 19 18:19:48 CEST 2007 (1184861988085)
18:19:52,409 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import completed at Thu Jul 19 18:19:52 CEST 2007 (1184861992409)
18:19:52,409 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import duration: 4324 ms (Note: excluding commit time)
18:19:52,409 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Nodes created: 27
18:19:52,410 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Nodes linked: 0
18:19:52,410 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Aspects Added: 0
18:19:52,410 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Properties set: 291
18:19:52,410 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Content set: 0
18:19:52,410 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Permissions set: 1
18:19:53,979 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Created store: system://system
18:19:53,989 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_system.acp
18:19:53,992 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import started at Thu Jul 19 18:19:53 CEST 2007 (1184861993992)
18:19:54,447 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import completed at Thu Jul 19 18:19:54 CEST 2007 (1184861994447)
18:19:54,447 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import duration: 455 ms (Note: excluding commit time)
18:19:54,447 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Nodes created: 3
18:19:54,447 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Nodes linked: 0
18:19:54,447 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Aspects Added: 0
18:19:54,447 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Properties set: 33
18:19:54,448 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Content set: 1
18:19:54,448 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Permissions set: 0
18:19:54,960 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Created store: workspace://lightWeightVersionStore
18:19:57,170 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_versions.acp
18:20:23,467 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:444)
at org.alfresco.repo.importer.ImporterBootstrap.onBootstrap(ImporterBootstrap.java:666)
at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:241)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:349)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
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:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to find xml meta-data file within .acp package
at org.alfresco.repo.importer.ACPImportPackageHandler.getDataStream(ACPImportPackageHandler.java:122)
at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:233)
at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:430)
… 35 more
18:20:23,477 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:444)
………………………………….
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to find xml meta-data file within .acp package
at org.alfresco.repo.importer.ACPImportPackageHandler.getDataStream(ACPImportPackageHandler.java:122)
at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:233)
at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:430)
… 35 more
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.