[opencms-dev] Big troubles with static export

Joan David joan.david at netapsys.fr
Mon Jul 3 11:56:42 CEST 2006


Hi,
I find that other before me already had troubles to export them sites. But I
didn't find solutions to my issues.
I created a site in /sites/Netapsys with a module in
/system/modules/fr.netapsys.site. And when I make static export, all the new
xml-content I had create  generate 404 errors. In other hand I tried to
access to the web site at
http://192.168.1.216:8080/opencms/export/sites/Netapsys/modules/Acceuil/
with success. But every link on my pages are redirect to /opencm/opencms/...
in fact of /opencms/export/...

here is my opencms-importexport xml in Tomcat
5.5\webapps\opencms\WEB-INF\config:

<?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="com.opencms.legacy.CmsCosImportExportHandler"/>
			<importexporthandler
class="org.opencms.importexport.CmsVfsImportExportHandler"/>
			<importexporthandler
class="org.opencms.module.CmsModuleImportExportHandler"/>
		</importexporthandlers>
		<import>
			<overwrite>true</overwrite>
			<convert>true</convert>
			<importversions>
				<importversion class="com.opencms.legacy.CmsImportVersion1"/>
				<importversion class="org.opencms.importexport.CmsImportVersion2"/>
				<importversion class="org.opencms.importexport.CmsImportVersion3"/>
				<importversion class="org.opencms.importexport.CmsImportVersion4"/>
			</importversions>
			<immutables>
				<resource uri="/system/"/>
				<resource uri="/system/bodies/"/>
				<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/action/"/>
				<resource uri="/system/workplace/administration/"/>
				<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/"/>
				<resource uri="/channels/"/>
				<resource uri="/sites/"/>
			</immutables>
			<principaltranslations/>
			<ignoredproperties/>
		</import>
	</importexport>
	<staticexport enabled="true">
	
<staticexporthandler>org.opencms.staticexport.CmsAfterPublishStaticExportHandler</staticexporthandler>
		<exportpath>export</exportpath>
		<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"/>
		</defaultsuffixes>
		<rendersettings>
			<rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix>
			<vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix>
			<userelativelinks>true</userelativelinks>			
			<exporturl>http://127.0.0.1:8080${CONTEXT_NAME}/handle404</exporturl>
			<plainoptimization>true</plainoptimization>
			<testresource uri="/system/shared/page.dtd"/>
			<resourcestorender>
				<regex>/sites/.*</regex>
				<regex>/sites/Netapsys/.*</regex>
				<regex>/system/modules/fr.netapsys.site/.*</regex>
				<regex>/system/galleries/.*</regex>
				<regex>/system/modules/.*/resources/.*</regex>
				<regex>/system/modules/.*/elements/.*</regex>
				<regex>/system/modules/.*/elements/css/.*</regex>
				<regex>/system/workplace/.*</regex>
				<export-rules>
					<export-rule>
						<name>rule for site one</name>
						<description>description of rule for site one</description>
						<modified-resources>
							<regex>/sites/Netapsys/.*</regex>
							<regex>/system/modules/fr.netapsys.site/.*</regex>
						</modified-resources>
						<export-resources>
							<uri>/sites/Netapsys/</uri>
						</export-resources>
					</export-rule>
				</export-rules> 
			</resourcestorender>
     			<rfs-rules>
          			<rfs-rule>
             			<name>rule for site Netapsys</name>
              			<description>description of the rule</description>
              			<source>/sites/Netapsys/.*</source>
              			<rfs-prefix></rfs-prefix>
              			<exportpath>/apache/Netapsys</exportpath>
              			<userelativelinks>true</userelativelinks>            
              			<related-system-res>
                  			<regex>/system/modules/fr.netapsys.site.*</regex>
              			</related-system-res>
          			</rfs-rule>
      		</rfs-rules>
		</rendersettings>
	</staticexport>
</opencms>


-- 
View this message in context: http://www.nabble.com/Big-troubles-with-static-export-tf1883651.html#a5149325
Sent from the OpenCMS - Dev forum at Nabble.com.




More information about the opencms-dev mailing list