AW: [opencms-dev] 404 in static export

Ulrich Rueth lists at rueth.info
Thu Jan 13 20:41:09 CET 2005


I found out another thing. I switched on the logging and voila, I get the
following error message in the log:

13 Jan 2005 20:23:09,906  INFO [s.i18n.CmsDefaultLocaleHandler:  91] Could
not read encoding property for resource
/sites/default/privat/foto/hochzeit/article_0001.html
org.opencms.file.CmsVfsResourceNotFoundException:
[org.opencms.db.mysql.CmsVfsDriver.readResource/3]
/sites/default/privat/foto/hochzeit/article_0001.html [Code 2 - Resource not
found!]
	at org.opencms.db.generic.CmsVfsDriver.readResource(CmsVfsDriver.java:1391)
	at org.opencms.db.CmsDriverManager.readResource(CmsDriverManager.java:5718)

Reason is rather clear: My resource "article_0001.html" is in the folder
/sites/privat/... and NOT /sites/default/privat/...! Why does OpenCms search
for my site in the /default/ folder?

Regards
Ulrich

P.S. I changed the exporturl to
<exporturl>http://localhost:8080${CONTEXT_NAME}/opencms</exporturl>, as this
handle404 directory also did not exist. Was this the mistake? Anyway, does
also not work with the handle404 folder...

-----Ursprungliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Ulrich Rueth
Gesendet: Donnerstag, 13. Januar 2005 18:58
An: The OpenCms mailing list
Betreff: AW: [opencms-dev] 404 in static export


Hi Thomas,

some resources are indeed exported correctly, all under the
/system/modules/... folder which I set to export=true. Only those in the
/sites/mysite/ folder are not exported. So it cannot be the exporturl entry,
as OpenCms seems to find it in some cases. It must be some configuration
issue.

See this snapshot of my log:

Export Non-Template Resources...
...
(35 / 1213) Exporting
/system/galleries/pics/private/articles/foto/hochzeit/article_0001/standesam
t2.jpg ... o.k.
(36 / 1213) Exporting
/system/galleries/pics/private/articles/foto/hochzeit/article_0001/standesam
t3.jpg ... o.k.
(37 / 1213) Exporting
/system/galleries/pics/private/articles/foto/hochzeit/article_0001/standesam
t4.jpg ... o.k.
(38 / 1213) Exporting
/system/galleries/pics/private/articles/foto/hochzeit/article_0001/standesam
t5.jpg ... o.k.
...
(1210 / 1213) Exporting
/system/modules/org.opencms.welcome/resources/logo_opencms_large.gif ...
o.k.
(1211 / 1213) Exporting
/system/modules/org.opencms.welcome/resources/logo_opencms_power.gif ...
o.k.
(1212 / 1213) Exporting
/system/modules/org.opencms.welcome/resources/welcome.css ... o.k.
(1213 / 1213) Exporting /system/shared/page.dtd ... o.k.
... Export Non-Template Resources completed.
Export Template Resources...
...
(13 / 118) Exporting /privat/schweiz/printversion/article_0004.html ... 404
(14 / 118) Exporting /privat/schweiz/printversion/article_0002.html ... 404
(15 / 118) Exporting /privat/schweiz/printversion/article_0003.html ... 404
(16 / 118) Exporting /privat/schweiz/printversion/article_0001.html ... 404
(17 / 118) Exporting /privat/schweiz/index.html ... 404
(18 / 118) Exporting /privat/schweiz/article_0004.html ... 404
(19 / 118) Exporting /privat/schweiz/article_0003.html ... 404
(20 / 118) Exporting /privat/schweiz/article_0002.html ... 404
(21 / 118) Exporting /privat/schweiz/article_0001.html ... 404
...

The non-template resources are exported correctly. But the template
resources have this "404" at the end. Why???

Thanks and regards
Ulrich


-----Ursprungliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Thomas Maerz
Gesendet: Donnerstag, 13. Januar 2005 12:36
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] 404 in static export


<lists at rueth.info> writes:

> my problem is that the resource don't get exported _even_ though the
> timestamp has changed. I did modify the resources. But for each
> modified resource, there is a "exporting ... 404" written in the
> publish log window, and not "exporting ... OK".

Did you modify

,----[ /WEB-INF/config/opencms-importexport.xml ]
| <exporturl>http://127.0.0.1:8080${CONTEXT_NAME}/handle404</exporturl>
`----

and can you access e. g. http://${HOST}/${CONTEXT_NAME}
from localhost? Probably you only have to change the port and/or host.

Regards,
Thomas



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list