[opencms-dev] Usage of image scaling via <cms:img> tag in opencms 6.2.3.
Webmaster
webmaster at lenord.de
Wed Mar 12 15:57:59 CET 2008
Hello list
Im using the <cms:img> tag as follows:
<cms:img width="450" scaleType="1" scaleQuality="85">
<cms:param name="src"><cms:link><c:out value="${curProp}"
/></cms:link></cms:param>
<cms:param name="alt"><%= ltb.key("bericht.bild.altText")
%></cms:param>
</cms:img>
or
<cms:img width="500" scaleType="1" scaleQuality="60">
<cms:param name="src"><cms:link><%= expNews.getBild()
%></cms:link></cms:param>
<cms:param name="alt"><%= expNews.getBildUnterschrift() %></cms:param>
</cms:img>
or
<cms:img scaleQuality="85" scaleType="1" width="500">
<cms:param name="src"><cms:link><cms:contentshow element="Bild"
/></cms:link></cms:param>
<cms:param name="alt"><cms:contentshow element="Bild-Unterschrift"
/></cms:param>
</cms:img>
RESULT
In offline mode everything works fine, but in online mode the images do
not appear.
The offline mode links look like this:
http://www.lenord.de/medienarchiv/Pressebilder/presseteaser/080220-zwischenstand-schuelerwettbewerb-preview.jpg?__scale=w:150,h:118,t:1,q:85
The error message is:
[...]
at org.opencms.jsp.CmsJspTagImage.doEndTag(CmsJspTagImage.java:269)
at
org.opencms.jsp.CmsJspTagImage.imageTagAction(CmsJspTagImage.java:155)
at org.opencms.file.CmsObject.readResource(CmsObject.java:2677)
at org.opencms.file.CmsObject.readResource(CmsObject.java:2711)
at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:3830)
at org.opencms.db.CmsDbContext.report(CmsDbContext.java:197)
at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:213)
at
org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsVfsResourceNotFoundException.java:78)
org.opencms.file.CmsVfsResourceNotFoundException: Error reading
resource from path "/export/sites/..."
[...]
REASON
Does this error occur due to misconfiguration of the static export?
( 961 / 1.236 ) Exportiere /sites/.../kia/index.html ... Fehler
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.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:500)
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:318)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:733)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:658)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.exportTemplateResources(CmsAfterPublishStaticExportHandler.java:533)
at
org.opencms.staticexport.CmsAfterPublishStaticExportHandler.doExportAfterPublish(CmsAfterPublishStaticExportHandler.java:161)
at
org.opencms.staticexport.CmsStaticExportManager.exportFullStaticRender(CmsStaticExportManager.java:577)
at
org.opencms.workplace.tools.database.CmsStaticExportThread.run(CmsStaticExportThread.java:95)
I get error messages like that above for all jsp pages that opencms
tries to export.
The error handler for http error 404/500 works fine.
As far as I know this could also be a reason for faulty image scaling.
Any help/hints are appreciated.
Kind regards
Stefan Hamelmann
--
Lenord + Bauer Online Team
Lenord, Bauer & Co. GmbH
Dohlenstr. 32
46145 Oberhausen
Germany
Phone: +49 208 9963-0
Fax: + 49 208 677 642
http://www.lenord.de
Lenord, Bauer & Co. GmbH - Dohlenstrasse 32 - 46145 Oberhausen - Germany
Geschäftsführer/Managing director: Hans-Georg Wilk
Amtsgericht/Trade register: Duisburg HRB 12033
Tel.: +49 (0)208 9963-0 - Fax: +49 (0)208 676292
Internet: www.lenord.de - E-Mail: info at lenord.de
Besuchen Sie unsere Website und abonnieren Sie unseren Newsletter unter
www.lenord.de/newsletter. So bleiben Sie stets auf dem Laufenden!
Visit our website and subscribe to our newsletter at
www.lenord.de/newsletter. It keeps you up to date!
More information about the opencms-dev
mailing list