[opencms-dev] static export 404 on Template Resources

Gerd Schrick mail at schrick-design.de
Tue May 15 19:14:09 CEST 2018


Hi Kai,

the port already was set correctly.

As only resources/requests to
/sites/default/... result in a 404
but the ones to
/system/... work
it looks like there's somewhere kind of a (not working) url rewrite.
As mentioned I didn't any Tomcat (standalone) nor OCMS config changes that may do that.

I've still no idea what's going wrong here or where/what to look for.

Maybe noone out there doing a full static export out-of-the-box?

Best regards,
Gerd

Am 15. Mai 2018 08:42:33 MESZ schrieb "Schliemann, Kai" <K.Schliemann at comundus.com>:
>Hi Gerd,
>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.
>Best regards
>Kai
>
>Von: opencms-dev-bounces at opencms.org <opencms-dev-bounces at opencms.org>
>Im Auftrag von Gerd Schrick
>Gesendet: Dienstag, 15. Mai 2018 03:27
>An: The OpenCms mailing list <opencms-dev at opencms.org>
>Betreff: Re: [opencms-dev] static export 404 on Template Resources
>
>Anyone out there to help with this?
>Am 6. Mai 2018 01:25:43 MESZ schrieb Gerd Schrick
><mail at schrick-design.de<mailto:mail at schrick-design.de>>:
>
>Dear List,
>
>I'm on a fresh local install of 10.5.3 in Tomcat (8.5.11) including the
>example site (Apollo Demo).
>All configs/settings are unchanged.
>
>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.
>
>Excerpt from the output:
>::
>( 441 / 441 ) Exporting /system/workplace/commons/style/template.css
>... o.k.
>... exporting Non-Template Resources is finished.
>Exporting Template Resources ...
>::
>( 6 / 563 ) Exporting /system/workplace/commons/style/diff.css ... o.k.
>( 7 / 563 ) Exporting
>/sites/default/tutorial/step-6-publish-your-changes/index.html ... 404
>( 8 / 563 ) Exporting
>/sites/default/tutorial/step-6-publish-your-changes/ ... 404
>::
>
>It somehow makes sense to me as I get a 404 in the browser when I
>request the reported URLs
>example: /sites/default/tutorial/step-6-publish-your-changes/index.html
>404 when:
>http://mymachine:8080/sites/default/tutorial/step-6-publish-your-changes/index.html
>404 when:
>http://mymachine:8080/opencms/sites/default/tutorial/step-6-publish-your-changes/index.html
>correct when:
>http://mymachine:8080/opencms/tutorial/step-6-publish-your-changes/index.html
>
>in opencms_importexport.xml is
><exporturl>http://mymachine:8080${CONTEXT_NAME}/handle404</exporturl<http://mymachine:8080$%7bCONTEXT_NAME%7d/handle404%3c/exporturl>>
>to omit "/handle404" (as suggested here:
>https://github.com/alkacon/opencms-core/issues/494) did not change
>anything.
>
>I already found similar/same issues reported for older versions but all
>w/o a working solution.
>
>Thanks for your helpful hints!
>Gerd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20180515/5aae3df3/attachment.htm>


More information about the opencms-dev mailing list