Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 75592 invoked from network); 14 May 2008 06:15:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 May 2008 06:15:03 -0000 Received: (qmail 13620 invoked by uid 500); 14 May 2008 06:15:02 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 13559 invoked by uid 500); 14 May 2008 06:15:02 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 13548 invoked by uid 99); 14 May 2008 06:15:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 23:15:02 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bhavyasharma@gmail.com designates 209.85.198.240 as permitted sender) Received: from [209.85.198.240] (HELO rv-out-0708.google.com) (209.85.198.240) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2008 06:14:15 +0000 Received: by rv-out-0708.google.com with SMTP id f25so6451366rvb.18 for ; Tue, 13 May 2008 23:14:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=qeXkHxq0RXq0GMc3MRweEEWqJzr625WxMHf8JhoURmA=; b=Mbm0Q9LeBMggIUQzRSqqH3x8JwDGRk5DNsQ1snpgUUJ1IyQzFLezVH7FPhqljcsGbi3it8++gfd0KDbfpbVnaAdz3SEX/uR4KQOEOGKZlxdQwtWwsJilJnBSulofLep+rGU1XSua7ye6zpgZ83L/oxH34obzEvjXozwt2rC18Wg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=tWNCTLeygpKPDSTUrVrmnnJxMOC8g8YuOqCqBHb3ktvfWX24t2scH9cNvCcqBmcuJ88fLoXZkefxpxcq70HhYUaa6TsNY+YapuI+euR3iJzGB1wgpcfz0ZD8k13JzPNBYSncCeJzWoIgZH82M8qj/AUY0UTD7Q6Ouh/1BkN7H78= Received: by 10.140.180.13 with SMTP id c13mr295043rvf.153.1210745670560; Tue, 13 May 2008 23:14:30 -0700 (PDT) Received: by 10.140.134.8 with HTTP; Tue, 13 May 2008 23:14:30 -0700 (PDT) Message-ID: Date: Wed, 14 May 2008 11:44:30 +0530 From: "Bhavya Sharma" To: users@cocoon.apache.org Subject: Re: ImageReader displays path instead of image. Very annoying. In-Reply-To: <48279ACF.2060609@gmx.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5330_23675225.1210745670566" References: <17179690.post@talk.nabble.com> <48279ACF.2060609@gmx.de> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_5330_23675225.1210745670566 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Try to increase your web server mamory(like tomcat) usually it comes if there is lack of memory for server where u deploy your code On 5/12/08, Joerg Heinicke wrote: > > On 11.05.2008 20:19, shai200 wrote: > > I'm using the following ImageReader component configuration: > > > > > > > src="org.apache.cocoon.reading.ImageReader" > > logger="sitemap.reader.image" pool-max="32"/> > > > > > > > > And the following pipelines: > > > > > > > mime-type="image/jpeg" /> > > > > > > > mime-type="image/gif" > > /> > > > > > > And instead of showing me the image, it shows me the absolute path of > > the > > image... This is very annoying. How do I fix this? > > http://www.nabble.com/file/p17179690/image.jpg > > > > Can you try it with the standard ResourceReader? ImageReader is for > transforming images rather than just passing them to the client (though it > also should work). > > Joerg > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > -- Thanks Bhavya Sharma ------=_Part_5330_23675225.1210745670566 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Try to increase your web server mamory(like tomcat) usually it comes if there is lack of
memory for server where u deploy your code

 
On 5/12/08, Joerg Heinicke <joerg.heinicke@gmx.de> wrote:
On 11.05.2008 20:19, shai200 wrote:

I'm using the following ImageReader component configuration:
<map:components>
       <map:readers default="resource">
         <map:reader name="image" src="org.apache.cocoon.reading.ImageReader"
logger="sitemap.reader.image" pool-max="32"/>
        </map:readers>
</map:components>

And the following pipelines:

<map:match pattern="img/*.jpg">
<map:read type="image"  src="resource/img/{1}.jpg" mime-type="image/jpeg" />
</map:match>
<map:match pattern="img/*.gif">
 <map:read type="image"  src="resource/img/{1}.gif" mime-type="image/gif"
/>
</map:match>

And instead of showing me the image, it shows me the absolute path of the
image... This is very annoying. How do I fix this?
http://www.nabble.com/file/p17179690/image.jpg

Can you try it with the standard ResourceReader? ImageReader is for transforming images rather than just passing them to the client (though it also should work).

Joerg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org




--
Thanks

Bhavya Sharma ------=_Part_5330_23675225.1210745670566--