[opencms-dev] static export

Alex Dubin webtekie at gmail.com
Mon Feb 14 21:04:25 CET 2005


Hello,

I am trying to do static export of my html pages and have a few questions. 
I am using OpenCms v6 on Fedora 1 using MySQL 4.1. 
First of all, when I executed static export, it seems everything that
is in my filesystem is exported. Can't I export just a specific
directory?
When I tried to do static export, first set of flies exported fine,
but for others I got an exception:
===============================================================
Starting static export ...
Export Non-Template Resources...
(1 / 28) Exporting /sites/default/demopages/search-demo/excelsheet.xls ... o.k.
(2 / 28) Exporting
/sites/default/demopages/search-demo/OpenCms6_Alkacon_Business.pdf ...
o.k.
(3 / 28) Exporting
/sites/default/demopages/search-demo/TN_0027_OpenCms_Workplace_structure.pdf
... o.k.
(4 / 28) Exporting
/sites/default/demopages/search-demo/wordtestdocument.doc ... o.k.
(5 / 28) Exporting /sites/default/xmlcontent/article.xsd ... ignored
(6 / 28) Exporting
/system/galleries/pics/alkacon-templateone/bg_nav_alkacon.jpg ... o.k.
(7 / 28) Exporting
/system/galleries/pics/alkacon-templateone/head_img_alkacon.jpg ...
o.k.
(8 / 28) Exporting
/system/galleries/pics/alkacon-templateone/head_img_alkacon2.jpg ...
o.k.
(9 / 28) Exporting /system/galleries/pics/ocms-templateone/bg_nav.jpg ... o.k.
(10 / 28) Exporting
/system/galleries/pics/ocms-templateone/head_img.jpg ... o.k.
(11 / 28) Exporting
/system/galleries/pics/ocms-templateone/logo_alkacon_150_t.gif ...
o.k.
(12 / 28) Exporting
/system/galleries/pics/ocms-templateone/logo_opencms_150.gif ... o.k.
(13 / 28) Exporting
/system/modules/org.opencms.frontend.templateone/resources/contact.gif
... o.k.
(14 / 28) Exporting
/system/modules/org.opencms.frontend.templateone/resources/login.gif
... o.k.
(15 / 28) Exporting
/system/modules/org.opencms.frontend.templateone/resources/mail.gif
... o.k.
(16 / 28) Exporting
/system/modules/org.opencms.frontend.templateone/resources/menu.js ...
o.k.
(17 / 28) Exporting
/system/modules/org.opencms.frontend.templateone/resources/navigation.js
... o.k.
(18 / 28) Exporting
/system/modules/org.opencms.frontend.templateone/resources/nav_a.gif
... o.k.
(19 / 28) Exporting
/system/modules/org.opencms.frontend.templateone/resources/nav_bc.gif
... o.k.
(20 / 28) Exporting
/system/modules/org.opencms.frontend.templateone/resources/nav_i.gif
... o.k.
(21 / 28) Exporting
/system/modules/org.opencms.frontend.templateone/resources/page.js ...
o.k.
(22 / 28) Exporting
/system/modules/org.opencms.frontend.templateone/resources/print.gif
... o.k.
(23 / 28) Exporting
/system/modules/org.opencms.frontend.templateone/resources/up.gif ...
o.k.
(24 / 28) Exporting
/system/modules/org.opencms.welcome/resources/logo_alkacon.gif ...
ignored
(25 / 28) Exporting
/system/modules/org.opencms.welcome/resources/logo_opencms_large.gif
... o.k.
(26 / 28) Exporting
/system/modules/org.opencms.welcome/resources/logo_opencms_power.gif
... o.k.
(27 / 28) Exporting
/system/modules/org.opencms.welcome/resources/welcome.css ... o.k.
(28 / 28) Exporting /system/shared/page.dtd ... o.k.
... Export Non-Template Resources completed.
Export Template Resources...
(1 / 56) Exporting /templateone/resources/style_accessible.css ...
Exception java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:315)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:521)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:498)
at org.opencms.staticexport.CmsStaticExportManager.exportTemplateResources(CmsStaticExportManager.java:1505)
at org.opencms.staticexport.CmsStaticExportManager.doExportAfterPublish(CmsStaticExportManager.java:1326)
at org.opencms.staticexport.CmsStaticExportManager.exportFullStaticRender(CmsStaticExportManager.java:530)
at org.opencms.threads.CmsStaticExportThread.run(CmsStaticExportThread.java:87)
================================================================

Lastly, I did a search on context export
(http://mail.opencms.org/pipermail/opencms-dev/2002q4/002559.html) and
it seems people talk about settings in opecms.properties file that I
don't have in mine, like:

staticexport.path=/srv/www/htdocs
url_prefix_export=
url_prefix_http=/${WEB_APP_NAME}/opencms
url_prefix_https=
url_prefix_servername

should I edit the file to include these?

thanks a lot, 
Alex
Sorry for a long post.



More information about the opencms-dev mailing list