<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.note
        {mso-style-name:note;}
span.ok
        {mso-style-name:ok;}
span.head
        {mso-style-name:head;}
span.E-MailFormatvorlage23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">Hi Kai,<br>
<br>
the port already was set correctly.<br>
<br>
As only resources/requests to<br>
/sites/default/... result in a 404<br>
but the ones to<br>
/system/... work<br>
it looks like there's somewhere kind of a (not working) url rewrite.<br>
As mentioned I didn't any Tomcat (standalone) nor OCMS config changes that may do that.<br>
<br>
I've still no idea what's going wrong here or where/what to look for.<br>
<br>
Maybe noone out there doing a full static export out-of-the-box?<br>
<br>
Best regards,<br>
Gerd<br><br><div class="gmail_quote">Am 15. Mai 2018 08:42:33 MESZ schrieb "Schliemann, Kai" <K.Schliemann@comundus.com>:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi Gerd,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">a common mistake is to not set the correct Tomcat port in opencms-importexport.xml. So if your Tomcat rums on port 8080, please make sure to set that port in opencms-importexport.xml.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Kai<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>Von:</b> opencms-dev-bounces@opencms.org <opencms-dev-bounces@opencms.org>
<b>Im Auftrag von </b>Gerd Schrick<br>
<b>Gesendet:</b> Dienstag, 15. Mai 2018 03:27<br>
<b>An:</b> The OpenCms mailing list <opencms-dev@opencms.org><br>
<b>Betreff:</b> Re: [opencms-dev] static export 404 on Template Resources<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Anyone out there to help with this?<o:p></o:p></p>
<div>
<p class="MsoNormal">Am 6. Mai 2018 01:25:43 MESZ schrieb Gerd Schrick <<a href="mailto:mail@schrick-design.de">mail@schrick-design.de</a>>:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p>Dear List,<o:p></o:p></p>
<p>I'm on a fresh local install of 10.5.3 in Tomcat (8.5.11) including the example site (Apollo Demo).<br>
All configs/settings are unchanged.<o:p></o:p></p>
<p>When I do a Static Export (Database Management -> Static export) there's no Error/Exception shown in the output but any resource below /sites shows ... 404 instead of ... o.k. and (as expected) none of them are exported.<o:p></o:p></p>
<p>Excerpt from the output:<br>
<span class="note">::</span><br>
<span class="note">( 441 / 441 ) Exporting</span> /system/workplace/commons/style/template.css ...
<span class="ok">o.k.</span><br>
<span class="head">... exporting Non-Template Resources is finished.</span><br>
<span class="head">Exporting Template Resources ...</span><br>
::<br>
<span class="note">( 6 / 563 ) Exporting</span> /system/workplace/commons/style/diff.css ...
<span class="ok">o.k.</span><br>
<span class="note">( 7 / 563 ) Exporting</span> /sites/default/tutorial/step-6-publish-your-changes/index.html ...
<span class="ok">404 </span><br>
<span class="note">( 8 / 563 ) Exporting</span> /sites/default/tutorial/step-6-publish-your-changes/ ...
<span class="ok">404</span><br>
<span class="ok">::</span><o:p></o:p></p>
<p>It somehow makes sense to me as I get a 404 in the browser when I request the reported URLs<br>
example: /sites/default/tutorial/step-6-publish-your-changes/index.html<br>
404 when: <a href="http://mymachine:8080/sites/default/tutorial/step-6-publish-your-changes/index.html">
http://mymachine:8080/sites/default/tutorial/step-6-publish-your-changes/index.html</a><br>
404 when: <a href="http://mymachine:8080/opencms/sites/default/tutorial/step-6-publish-your-changes/index.html">
http://mymachine:8080/opencms/sites/default/tutorial/step-6-publish-your-changes/index.html</a><br>
correct when: <a href="http://mymachine:8080/opencms/tutorial/step-6-publish-your-changes/index.html">
http://mymachine:8080/opencms/tutorial/step-6-publish-your-changes/index.html</a><o:p></o:p></p>
<p>in opencms_importexport.xml is<br>
<exporturl><a href="http://mymachine:8080$%7bCONTEXT_NAME%7d/handle404%3c/exporturl">http://mymachine:8080${CONTEXT_NAME}/handle404</exporturl</a>><br>
to omit "/handle404" (as suggested here: <a href="https://github.com/alkacon/opencms-core/issues/494)">
https://github.com/alkacon/opencms-core/issues/494)</a> did not change anything.<o:p></o:p></p>
<p>I already found similar/same issues reported for older versions but all w/o a working solution.<o:p></o:p></p>
<p>Thanks for your helpful hints!<br>
Gerd<o:p></o:p></p>
</blockquote>
</div>
</div>


</blockquote></div></body></html>