[opencms-dev] Static export problems
Hari
Hari.Subramanian at jvolution.co.uk
Tue Feb 28 09:46:49 CET 2006
Hi Corsin,
Yes, AfterPublishStaticExportHandler will export the whole site for
every publish. We made changes to the CmsStaticExportManager class to
change this and now it only exports the resource that is published. I
have attached the class and this can be deployed in
WEB-INF/classes/org/opencms/staticexport. Just drop in org/opencms/.
Depending what version of OpenCms you use, you might have to recompile
CmsLink.java. Our version is 6.0.4.
Hope this helps.
Cheers
Hari
_____
From: Corsin Camichel [mailto:cocaman at gmail.com]
Sent: 27 February 2006 17:58
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Static export problems
Thank you Hari for your setting
I have set mine up the same, but the problem is now, that it exports ALL
my files each time somebody publishes something.
Do you (or anybody else in this list) know how to avoid this? This takes
a long time and needs some resources.
Hope that you can help me.
Regards
-- Corsin
On 2/23/06, Hari <Hari.Subramanian at jvolution.co.uk > wrote:
Hi,
This is our static export configuration. We have the site "jvolution"
under /sites/jvolution/. Here export is set to true and for folders
within the site set "Inherit true from /" using Secure/Export from the
drop down when you click on a folder. And also export the dependencies
i.e. /system/modules/com.jvolution etc
staticexport enabled="true">
<staticexporthandler>org.opencms.staticexport.CmsAfterPublishStaticExpor
tHandler</staticexporthandler>
<exportpath>C:\Tomcat
5.5\webapps\hari</exportpath> (we use tomcat)
<defaultpropertyvalue>true</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}/Trace2web</rfs-prefix>
<vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix>
<userelativelinks>false</userelativelinks>
<exporturl>http://127.0.0.1:8093${CONTEXT_NAME}/handle404</exporturl>
(Use 8093 as the port)
<plainoptimization>true</plainoptimization>
<testresource
uri="/system/shared/page.dtd"/>
<resourcestorender>
<regex>/sites/jvolution/.*</regex>
<regex>/sites/jvolutionDEV/.*</regex>
<regex>/system/galleries/.*</regex>
<regex>/system/modules/com.jvolution.Jvolution/.*</regex> ( module that
runs the site)
</resourcestorender>
</rendersettings>
</staticexport>
Hope this helps
Cheers
Hari
_____
From: apoorv.durga at wipro.com [mailto: apoorv.durga at wipro.com
<mailto:apoorv.durga at wipro.com> ]
Sent: 23 February 2006 14:56
To: opencms-dev at opencms.org
Subject: RE: [opencms-dev] Static export problems
same result :(
all the other sites are gettinf published except for the one that we
developed. All i get is a series of 302s in the opencms static export
console
_____
From: opencms-dev-bounces at opencms.org [mailto:
opencms-dev-bounces at opencms.org <mailto:opencms-dev-bounces at opencms.org>
] On Behalf Of Corsin Camichel
Sent: Thursday, February 23, 2006 8:05 PM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Static export problems
Hi guys
Try this:
<resourcestorender>
<regex>/sites/.*</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>
</resourcestorender>
in opencms-importexport.xml
and check that <staticexport enabled="true"> is set to true
HTH
Regards
//Corsin
On 2/23/06, vinodh.kumar at wipro.com <vinodh.kumar at wipro.com>
wrote:
We are also facing the same problem....
Yes.....we have restarted the server after every change in xml
and
system folders....
Best Regards,
Vinodh.
Phone:30691961
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Hari
Sent: Thursday, February 23, 2006 7:36 PM
To: The OpenCms mailing list
Subject: RE: [opencms-dev] Static export problems
Did you re-start weblogic? Needs a re-start for any change to
the system
folders.
-----Original Message-----
From: apoorv.durga at wipro.com [mailto:apoorv.durga at wipro.com]
Sent: 23 February 2006 13:32
To: opencms-dev at opencms.org
Subject: RE: [opencms-dev] Static export problems
Yes, I'm exporting from within the site
Ecport is set to true
org.OpenCms.staticexport.CmsAfterPublishStaticExportHandler
Configuration: opencms 6.0.2, weblogic 8.1 sp5, my sql as well
as sql
server
We've added our site in regex
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Hari
> Sent: Thursday, February 23, 2006 6:35 PM
> To: The OpenCms mailing list
> Subject: RE: [opencms-dev] Static export problems
>
> Are you exporting from within your site? Is the property
> "export" set to true for all the resources that you wish to
> export. Have you included your site in the regex folder in
> opencms-importexport.xml? Are you using
CmsAfterPublishExportHandler?
>
> We had quite a few issues with static export but all resolved
now.
>
> Cheers
> Hari
>
> -----Original Message-----
> From: www bot [mailto:durgajee at gmail.com]
> Sent: 23 February 2006 12:39
> To: opencms-dev at opencms.org
> Subject: RE: [opencms-dev] Static export problems
>
> Hi,
>
> Any takers for this?
>
> This is becoming a big issue for us.
>
> BR,
> /a
>
> > -----Original Message-----
> > From: opencms-dev-bounces at opencms.org
> > [mailto: opencms-dev-bounces at opencms.org
<mailto:opencms-dev-bounces at opencms.org> ] On Behalf Of www bot
> > Sent: Wednesday, February 22, 2006 7:28 PM
> > To: opencms-dev at opencms.org
> > Subject: [opencms-dev] Static export problems
> >
> > Hi,
> >
> > We've been trying to do a static export of the site that we
> developed.
> > I've made changes to opencms-importexport.xml and was able
> to export
> > all the example sites (xmlcontentdemo, modulesdemo and even
> > alkacon-documentation). However, when I export our site, i
get a
> > series of 302 and 404. The export settings are same for all
> the sites.
> >
> > However, the site works perfectly fine if browsed
dynamically.
> >
> > Any pointers would be appreciated. This has become a
> showstopper for
> > us to go live.
> >
> > A snippet of log is appended below.
> >
> > Environment: weblogic 8.1, opencms 6.0.2, mysql 4.1
> >
> >
> >
> > BR,
> > /a
> >
> > .......
> > ......
> > ( 699 / 775 ) Exporting /static/user/menuDropDwn.html ...
> 404 ( 700 /
> > 775 ) Exporting /static/user/logOutLink2.html ... 404 ( 701
/ 775 )
> > Exporting /static/user/logOutLink1.html ... 404 ( 702 / 775
)
> > Exporting /static/user/locateus/index.jsp.html
> > ... skipped ( 703 / 775 ) Exporting
> /static/user/logOut.html ... 302 (
> > 704 / 775 ) Exporting /static/user/locateus/index.html ...
> 302 ( 705 /
> > 775 ) Exporting /static/user/help/index.html ... 302 ( 707 /
775 )
> > Exporting /static/user/error404.html ... 302 ( 708 / 775 )
> Exporting
> > /static/user/help/ ... 302 ( 709 / 775 ) Exporting
> > /static/user/contactus/index.html ... 302
....................
> > ..................
> >
> > _______________________________________________
> > This mail is sent to you from the opencms-dev mailing list
> To change
> > your list options, or to unsubscribe from the list, please
visit
> > http://lists.opencms.org/mailman/listinfo/opencms-dev
> >
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list To
> change your list options, or to unsubscribe from the list,
> please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list To
> change your list options, or to unsubscribe from the list,
> please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
>
The information contained in this electronic message and any
attachments
to this message are intended for the exclusive use of the
addressee(s)
and may contain proprietary, confidential or privileged
information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender
immediately and
destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The
recipient
should check this email and any attachments for the presence of
viruses.
The company accepts no liability for any damage caused by any
virus
transmitted by this email.
www.wipro.com
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list,
please
visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list,
please
visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
addressee(s) and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The
recipient should check this email and any attachments for the presence
of viruses. The company accepts no liability for any damage caused by
any virus transmitted by this email.
www.wipro.com
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list,
please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
--
Corsin Camichel
cocaman at gmail.com
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
www.wipro.com
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
--
Corsin Camichel
cocaman at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060228/03bbd7c4/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: staticexport.zip
Type: application/x-zip-compressed
Size: 140268 bytes
Desc: staticexport.zip
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060228/03bbd7c4/attachment.bin>
More information about the opencms-dev
mailing list