AW: [opencms-dev] Using DB Import instead of "the hard way"
Andreas Zahner
A.Zahner at alkacon.com
Wed Feb 11 14:51:00 CET 2004
Thomas,
To learn how an import file must look like simply make an export of an
existing folder of OpenCms (e.g. the "release" folder). Check the
created zip file. In the root folder of the zip file has to be a file
"manifest.xml" which contains all necessary data about the exported
files and folder.
Regards,
Andreas Zahner
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
-----Ursprüngliche Nachricht-----
Von: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] Im Auftrag von Thomas Gagné
Gesendet: Mittwoch, 11. Februar 2004 14:33
An: opencms-dev at opencms.org
Betreff: [opencms-dev] Using DB Import instead of "the hard way"
Off to the list archives I go. But while I'm searching...
Is the database import function described anywhere? Specifically:
1. should the import file be a .zip?
2. what should its directory structure be?
When I tried it on one that started from inside htdocs (with
subdirectories) I got a traceback:
Importing database ...
Exception com.opencms.core.CmsException: 0 Unknown exception. Detailed
error: CmsException ID: 0.
root cause was java.lang.NullPointerException
at
com.opencms.file.genericSql.CmsResourceBroker.getFirstTagFromManifest(Cm
sResourceBroker.java:8078)
at
com.opencms.file.genericSql.CmsResourceBroker.importResources(CmsResourc
eBroker.java:4150)
at com.opencms.file.CmsObject.importResources(CmsObject.java:2167)
at
com.opencms.workplace.CmsAdminDatabaseImportThread.run(CmsAdminDatabaseI
mportThread.java:74)
>-----------
>Root cause:
>java.lang.NullPointerException
> at java.util.zip.ZipFile.getInputStream(ZipFile.java:184)
> at
com.opencms.file.genericSql.CmsResourceBroker.getFirstTagFromManifest(Cm
sResourceBroker.java:8067)
> at
com.opencms.file.genericSql.CmsResourceBroker.importResources(CmsResourc
eBroker.java:4150)
> at com.opencms.file.CmsObject.importResources(CmsObject.java:2167)
> at
com.opencms.workplace.CmsAdminDatabaseImportThread.run(CmsAdminDatabaseI
mportThread.java:74)
java.lang.NullPointerException
at java.util.zip.ZipFile.getInputStream(ZipFile.java:184)
at
com.opencms.file.genericSql.CmsResourceBroker.getFirstTagFromManifest(Cm
sResourceBroker.java:8067)
at
com.opencms.file.genericSql.CmsResourceBroker.importResources(CmsResourc
eBroker.java:4150)
at com.opencms.file.CmsObject.importResources(CmsObject.java:2167)
at
com.opencms.workplace.CmsAdminDatabaseImportThread.run(CmsAdminDatabaseI
mportThread.java:74)
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list