[opencms-dev] Exporting..
Christian Steinert
christian_steinert at web.de
Thu Sep 28 10:42:45 CEST 2006
Phil.Launchbury at tssi.co.uk schrieb:
> Hi,
>
>
>
> My boss has suggested that he would like to be able to give out what is
> essentially our website on a CD.. And suggested that I just load OpenCMS
> onto it.
>
>
>
> When I stopped banging my head against the desk I went into our test system
> and tried to do a static export of our entire site to see if I could make a
> standalone version of the site suitable for making into an embedded site on
> a CD.
>
> When I ran the export I got the following:
>
>
>
> tarting static export ...
>
> Deleting static export folders ...
>
> ( 1 / 1 ) Deleted static export folder
> "/var/apache-tomcat5/webapps/opencms/export/"
>
> ... deleting static export folders is finished.
>
> Exporting Non-Template Resources ...
>
> Exception org.opencms.loader.CmsLoaderException: Unknown resource type id
> 25 requested. at
> org.opencms.loader.CmsResourceManager.getResourceType(CmsResourceManager.java:596)
> at
> org.opencms.loader.CmsResourceManager.getLoader(CmsResourceManager.java:491)
> at
> org.opencms.staticexport.CmsAfterPublishStaticExportHandler.exportNonTemplateResources(CmsAfterPublishStaticExportHandler.java:353)
> at
> org.opencms.staticexport.CmsAfterPublishStaticExportHandler.doExportAfterPublish(CmsAfterPublishStaticExportHandler.java:103)
> at
> org.opencms.staticexport.CmsStaticExportManager.exportFullStaticRender(CmsStaticExportManager.java:564)
> at
> org.opencms.workplace.tools.database.CmsStaticExportThread.run(CmsStaticExportThread.java:95)
>
>
> Statistics:duration: 00:00:15
>
> ... the static export is finished
>
>
>
> Any ideas? I'm happy to have either problem solved - either how to
> encapsulate our openCMS site so that it can run from a CD in a regular
> Windows PC or how I can export the whole of our site to static pages..
>
>
>
> Cheers,
>
> Phil.
>
>
I think a web downloader is the better solution for you.
If you use static export, then the static export has to be set to "true"
at least for the top folders that you want to export. And the export
handler settings have to be correct, too. *But* this will mean that your
website starts using static export in production, too. If you want that,
then you could try to use static export with relative paths and then
copy the export folder onto a CD.
But I think a web downloader is the better solution, here. Wget is good,
but I for this purpose I would strongly recommend WinHttrack for Windows
or WebHttrack for Linux. It is able to download dynamic websites very
very well, it can create names that even work on ISO-cdrom-Filesystems,
etc. etc.
I used WebHttrack recently to create a static version of a dynamic,
PHP-based web application and the results were perfect.
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060928/cd405de6/attachment.bin>
More information about the opencms-dev
mailing list