[opencms-dev] static export problem

Chema chemaff at hotmail.com
Tue Dec 2 09:52:20 CET 2008





Hi,
The path to export static content is defined in, by example :  <exportpath>/opencms/exportfiles/</exportpath>
Be careful what permissions from the directory where the father export, must write. In this sample "/opencms".

 Did not know him :   <exportworkpath>temp</exportworkpath>

Regards


Date: Tue, 2 Dec 2008 08:29:58 +0100
From: ll at metrohm.com
To: opencms-dev at opencms.org
Subject: [opencms-dev] static export problem










dear 
all,
 
this is my 
opencms-importexport.xml:
 
<?xml 
version="1.0" encoding="UTF-8"?>
<!DOCTYPE opencms SYSTEM "http://www.opencms.org/dtd/6.0/opencms-importexport.dtd">
 
<opencms>
 <importexport>
  <importexporthandlers>
   <importexporthandler 
class="org.opencms.importexport.CmsVfsImportExportHandler"/>
   <importexporthandler 
class="org.opencms.module.CmsModuleImportExportHandler"/>
  </importexporthandlers>
  <import>
   <overwrite>true</overwrite>
   <convert>true</convert>
   <importversions>
    <importversion 
class="org.opencms.importexport.CmsImportVersion2"/>
    <importversion 
class="org.opencms.importexport.CmsImportVersion3"/>
    <importversion 
class="org.opencms.importexport.CmsImportVersion4"/>
    <importversion 
class="org.opencms.importexport.CmsImportVersion5"/>
    <importversion 
class="org.opencms.importexport.CmsImportVersion6"/>
    <importversion 
class="org.opencms.importexport.CmsImportVersion7"/>
   </importversions>
   <immutables>
    <resource 
uri="/system/"/>
    <resource 
uri="/system/categories/"/>
    <resource 
uri="/system/galleries/"/>
    <resource 
uri="/system/galleries/download/"/>
    <resource 
uri="/system/galleries/externallinks/"/>
    <resource 
uri="/system/galleries/htmlgalleries/"/>
    <resource 
uri="/system/galleries/pics/"/>
    <resource 
uri="/system/login/"/>
    <resource 
uri="/system/modules/"/>
    <resource 
uri="/system/shared/"/>
    <resource 
uri="/system/workplace/"/>
    <resource 
uri="/system/workplace/admin/"/>
    <resource 
uri="/system/workplace/help/"/>
    <resource 
uri="/system/workplace/locales/"/>
    <resource 
uri="/system/workplace/resources/"/>
    <resource 
uri="/system/workplace/restypes/"/>
    <resource 
uri="/system/workplace/scripts/"/>
    <resource 
uri="/system/workplace/templates/"/>
    <resource 
uri="/system/workplace/views/"/>
   </immutables>
   <principaltranslations/>
   <ignoredproperties/>
  </import>
 </importexport>
 <staticexport 
enabled="true">
  <staticexporthandler>org.opencms.staticexport.CmsAfterPublishStaticExportHandler</staticexporthandler>
  <linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubstitutionHandler</linksubstitutionhandler>  
  <exportpath>export</exportpath>
  <exportworkpath>temp</exportworkpath>
  <exportbackups>2</exportbackups>
  <defaultpropertyvalue>false</defaultpropertyvalue>
  <defaultsuffixes>
   <suffix 
key=".jpg"/>
   <suffix 
key=".gif"/>
   <suffix 
key=".png"/>
   <suffix 
key=".doc"/>
   <suffix 
key=".xls"/>
   <suffix 
key=".ppt"/>
   <suffix 
key=".pdf"/>
   <suffix 
key=".txt"/>
   <suffix 
key=".css"/>
   <suffix 
key=".zip"/>
   <suffix 
key=".swf"/>
   <suffix 
key=".csv"/>
   <suffix 
key=".pptx"/>
   <suffix 
key=".docx"/>
   <suffix 
key=".asc"/>
  </defaultsuffixes>
  <rendersettings>
   <rfs-prefix>/export</rfs-prefix>
   <vfs-prefix></vfs-prefix>
   <userelativelinks>true</userelativelinks>   
   <exporturl>http://cms.myserver.de/${CONTEXT_NAME}/handle404</exporturl>
   <plainoptimization>true</plainoptimization>
   <testresource 
uri="/system/shared/page.dtd"/>
   <resourcestorender>
    <regex>/sites/.*</regex>
    <regex>/Homepages/.*</regex>
    <regex>/system/workplace/commons/style/.*</regex>
    <regex>/system/galleries/.*</regex>
    <regex>/system/modules/.*/resources/.*</regex>
   </resourcestorender>
  </rendersettings>
 </staticexport>
 <usercsvexport>
        
<separator>;</separator>
        
<columns>
        
 <column>description</column>
            
<column>lastname</column>
            
<column>firstname</column>
            
<column>email</column>
            
<column>address</column>
            
<column>zipcode</column>
            
<column>city</column>
            
<column>country</column>
            
<column>USERPREFERENCES_workplace-startupsettingssite</column>
            
<column>USERPREFERENCES_workplace-startupsettingslocale</column>
            
<column>password</column>
        
</columns>
 </usercsvexport>
 <repositories>
  <repository 
name="standard" 
class="org.opencms.repository.CmsRepository">
   <params>
  
    <param 
name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp</param>
  
    <param 
name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent</param>
  
    <param 
name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlPage</param>
  
    <param 
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperSystemFolder</param>
  
    <param 
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperPropertyFile</param>
   </params>
   <filter 
type="include">
    <regex>/__properties/.*</regex>
    <regex>/sites/.*</regex>
    <regex>/system/</regex>
    <regex>/system/__properties/.*</regex>
    <regex>/system/galleries/.*</regex>
    <regex>/system/modules/.*</regex>
    <regex>/system/workplace/.*</regex>
   </filter>
  </repository>
  <repository 
name="extended" 
class="org.opencms.repository.CmsRepository">
   <params>
    <param 
name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperJsp</param>
    <param 
name="wrapper">org.opencms.file.wrapper.CmsResourceExtensionWrapperXmlContent</param>
    <param 
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperXmlPage</param>
    <param 
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperSystemFolder</param>
    <param 
name="wrapper">org.opencms.file.wrapper.CmsResourceWrapperPropertyFile</param>
   </params>
   <filter 
type="include">
    <regex>/__properties/.*</regex>
    <regex>/sites/.*</regex>
    <regex>/system/</regex>
    <regex>/system/__properties/.*</regex>
    <regex>/system/galleries/.*</regex>
    <regex>/system/modules/</regex>
    <regex>/system/modules/[^/]*/</regex>
    <regex>/system/modules/[^/]*/__properties/.*</regex>
    <regex>/system/modules/[^/]*/resources/.*</regex>
   </filter>
  </repository>
 </repositories>
</opencms>

this works fine, all 
expected files are exported to the "temp"-directory. but they are not copied to 
the "export" directory. the directory is owned by the tomcat user. 

 
any ideas why the 
files are not copied to the export-path?
 
regards
lorenz
_________________________________________________________________
¿Aún no tienes Internet Explorer 7? Bájatelo y consigue un regalo  gratis
http://www.vivelive.com/ieak7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20081202/874bde51/attachment.htm>


More information about the opencms-dev mailing list