[opencms-dev] Static export on linux machine

Schliemann, Kai K.Schliemann at comundus.com
Mon Feb 14 11:57:37 CET 2011


Hello Harini,

I forgot to mention that you usually do not need to change the IP
address (127.0.0.1). Because OpenCms is doing an internal request to the
404-handler.

So try to replace

http://www.holidays-uncoveredprjdev.co.uk
<http://www.holidays-uncoveredprjdev.co.uk> 

with

127.0.0.1

 

HTH

Regards

Kai

 

Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von rama harini
Gesendet: Montag, 14. Februar 2011 11:29
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] Static export on linux machine

 

Hello Kai,

 

I have changed the port in opencms-importexport.xml.

<exporturl>http://www.holidays-uncoveredprjdev.co.uk:40633${CONTEXT_NAME
}/handle404</exporturl>

 

 

Now I am getting the below error.

 ( 1 / 156 ) Exporting /system/workplace/commons/style/onlinehelp.css
... Exception java.net.SocketException: Unexpected end of file from
server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:769)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:766)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnec
tion.java:1200)
at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.exportTempla
teResource(CmsAfterPublishStaticExportHandler.java:440)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.exportTempla
teResources(CmsAfterPublishStaticExportHandler.java:510)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.doExportAfte
rPublish(CmsAfterPublishStaticExportHandler.java:166)
at
org.opencms.staticexport.CmsStaticExportManager.exportFullStaticRender(C
msStaticExportManager.java:715)
at
org.opencms.workplace.tools.database.CmsStaticExportThread.run(CmsStatic
ExportThread.java:86)


Regards,

Harini
 

On Mon, Feb 14, 2011 at 2:32 PM, Schliemann, Kai
<K.Schliemann at comundus.com> wrote:

Hello Harini,

check the Tag exporturl in your opencms-importexport.xml:

<exporturl>http://127.0.0.1:8080${CONTEXT_NAME}/handle404</exporturl
<http://127.0.0.1:8080$%7bCONTEXT_NAME%7d/handle404%3c/exporturl> >

The port must match the port your Tomcat is running under.

 

HTH

Kai

 

Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von rama harini
Gesendet: Montag, 14. Februar 2011 07:37
An: opencms-dev at opencms.org
Betreff: [opencms-dev] Static export on linux machine

 

Hi,

 

I got the below error while doing static export. I am using tomcat6.0.26
and OpenCms : 7.5.2. Opencms is installed on linux machine. When I
attempt to do the staic export with opencms installed on windows
machine, I am able to do it. Can you please help? 

 

Exporting Template Resources ...
( 1 / 143 ) Exporting /sites/default/thomson/pages/our_partners.html ...
Exception java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConn
ection.java:975)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnecti
on.java:916)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.ja
va:841)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.exportTempla
teResource(CmsAfterPublishStaticExportHandler.java:439)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.exportTempla
teResources(CmsAfterPublishStaticExportHandler.java:510)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.doExportAfte
rPublish(CmsAfterPublishStaticExportHandler.java:166)
at
org.opencms.staticexport.CmsStaticExportManager.exportFullStaticRender(C
msStaticExportManager.java:715)
at
org.opencms.workplace.tools.database.CmsStaticExportThread.run(CmsStatic
ExportThread.java:86)
( 2 / 143 ) Exporting
/sites/default/thomson/pages/onholidays/pagesLB/kids_club_hatch_the_turt
le.html ... Exception java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConn
ection.java:975)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnecti
on.java:916)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.ja
va:841)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.exportTempla
teResource(CmsAfterPublishStaticExportHandler.java:439)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.exportTempla
teResources(CmsAfterPublishStaticExportHandler.java:510)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.doExportAfte
rPublish(CmsAfterPublishStaticExportHandler.java:166)
at
org.opencms.staticexport.CmsStaticExportManager.exportFullStaticRender(C
msStaticExportManager.java:715)
at
org.opencms.workplace.tools.database.CmsStaticExportThread.run(CmsStatic
ExportThread.java:86)
( 3 / 143 ) Exporting
/sites/default/thomson/pages/onholidays/pagesLB/in_resort_restaurant.htm
l ... Exception java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConn
ection.java:975)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnecti
on.java:916)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.ja
va:841)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.exportTempla
teResource(CmsAfterPublishStaticExportHandler.java:439)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.exportTempla
teResources(CmsAfterPublishStaticExportHandler.java:510)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.doExportAfte
rPublish(CmsAfterPublishStaticExportHandler.java:166)
at
org.opencms.staticexport.CmsStaticExportManager.exportFullStaticRender(C
msStaticExportManager.java:715)
at
org.opencms.workplace.tools.database.CmsStaticExportThread.run(CmsStatic
ExportThread.java:86)

 

 

 

Regards,

Harini

 

 

 



_______________________________________________
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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110214/5bbbf022/attachment.htm>


More information about the opencms-dev mailing list