[opencms-dev] Warning on static resource image

Juan Antonio Ruiz jaruiz at sopde.es
Mon Jul 18 12:10:53 CEST 2011


Hi,

I have a lot of warnings in my opencms.log about static resources images,

 


..

18 jul 2011 09:54:14,133  WARN [cexport.CmsStaticExportManager:2347] Cannot
export file
"/sites/default/es/anuncios/ficheros/anu_2011044_84746.jpg_1259467713.jpg".
Does the guest user have access to it?

org.opencms.file.CmsVfsResourceNotFoundException: Error leyendo recurso
desde la ruta
"/sites/default/es/anuncios/ficheros/anu_2011044_84746.jpg_1259467713.jpg".

         at
org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsVfsResou
rceNotFoundException.java:78)

         at
org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:238)

         at org.opencms.db.CmsDbContext.report(CmsDbContext.java:212)

         at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:4036)

         at org.opencms.file.CmsObject.readResource(CmsObject.java:3529)

         at org.opencms.file.CmsObject.readResource(CmsObject.java:3496)

         at
org.opencms.staticexport.CmsStaticExportManager.getVfsNameInternal(CmsStatic
ExportManager.java:2338)

         at
org.opencms.staticexport.CmsStaticExportManager.getExportData(CmsStaticExpor
tManager.java:2231)

         at
org.opencms.staticexport.CmsStaticExportManager.getExportData(CmsStaticExpor
tManager.java:906)

         at org.opencms.main.OpenCmsServlet.handle(OpenCmsServlet.java:194)

         at
org.opencms.main.OpenCmsServlet.invokeHandler(OpenCmsServlet.java:269)

         at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:149)

         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)

         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

         at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)

         at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)

         at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128
)

         at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
)

         at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)

         at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

         at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)

         at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.java:583)

         at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)

         at java.lang.Thread.run(Unknown Source)

Caused by: org.opencms.file.CmsVfsResourceNotFoundException: No se pudo leer
el recurso
"/sites/default/es/anuncios/ficheros/anu_2011044_84746.jpg_1259467713.jpg".

         at
org.opencms.db.generic.CmsVfsDriver.readResource(CmsVfsDriver.java:1937)

         at
org.opencms.db.CmsDriverManager.readResource(CmsDriverManager.java:6462)

         at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:5849)

         at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:4034)

         ... 22 more

 

18 jul 2011 09:54:14,133 DEBUG [cexport.CmsStaticExportManager: 549] Ruta
del sitio de exportación estática "/sites/default" / vfsName
"/es/anuncios/ficheros/anu_2011044_84746.jpg"

18 jul 2011 09:54:14,133 DEBUG [cexport.CmsStaticExportManager: 564]
Exportación estática comenzando para el recurso
"org.opencms.staticexport.CmsStaticExportData[vfsName=/sites/default/es/anun
cios/ficheros/anu_2011044_84746.jpg,
rfsName=/sites/default/es/anuncios/ficheros/anu_2011044_84746.jpg_1259467713
.jpg, structureId=652ad8ac-5eab-11e0-b214-0019666093ab]"



..

 

My opencms-importexport.xml static configuration is :

 


.

       <staticexport enabled="true">

 
<staticexporthandler>org.opencms.staticexport.CmsOnDemandStaticExportHandler
</staticexporthandler>

 
<linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubstitution
Handler</linksubstitutionhandler>             

             <exportpath>export</exportpath>

             <exportworkpath>temp</exportworkpath>

             <exportbackups>2</exportbackups>

             <defaultpropertyvalue>false</defaultpropertyvalue>

             <defaultsuffixes>

                    <suffix key=".jpg"/>

                    <suffix key=".gif"/>

                    <suffix key=".png"/>

                    <suffix key=".doc"/>

                    <suffix key=".xls"/>

                    <suffix key=".ppt"/>

                    <suffix key=".pdf"/>

                    <suffix key=".txt"/>

                    <suffix key=".css"/>

                    <suffix key=".zip"/>

                    <suffix key=".swf"/>

                    <suffix key=".js"/>

                    <suffix key=".ico"/>

             </defaultsuffixes>

             <rendersettings>

                    <rfs-prefix>/export</rfs-prefix>

                    <vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix>

                    <userelativelinks>false</userelativelinks>


 
<exporturl>http://localhost:8082${CONTEXT_NAME}/handle404</exporturl>

                    <plainoptimization>true</plainoptimization>

                    <testresource uri="/system/shared/page.dtd"/>

                    <resourcestorender>

                           <regex>/sites/.*</regex>

                           <regex>/system/workplace/commons/style/.*</regex>

                           <regex>/system/galleries/.*</regex>

                           <regex>/system/modules/.*/resources/.*</regex>

                    </resourcestorender>

             </rendersettings>

       </staticexport>


.


and server.xml :


.

    <Connector connectionTimeout="20000" executor="tomcatThreadPool"
port="8082" protocol="HTTP/1.1" redirectPort="8443"/>

    <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1"
redirectPort="8443"/>


.

Ultimately, the image is exported but  warnings appears. Any idea why it
appears?.

Thanks.


 

http://intranet/correo/dibujos/barra.gif



http://intranet/correo/dibujos/flecha.gif

Juan Antonio Ruiz 
Programador 
Tecnologías de la Información 
SOPDE, S.A. 

	
Plaza de la Marina nº 4
29015 Málaga 



http://intranet/correo/dibujos/pie.gif


http://intranet/correo/dibujos/barra.gif

		

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110718/de9bfe5f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 251 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110718/de9bfe5f/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 241 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110718/de9bfe5f/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.gif
Type: image/gif
Size: 1005 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110718/de9bfe5f/attachment-0002.gif>


More information about the opencms-dev mailing list