You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jonas Lundberg <my...@gmail.com> on 2006/01/23 21:40:22 UTC

FOP pdf / gif image issue with Cocoon 2.1.8

I just noticed that FOP pdf generation with GIF images does not work
with my Cocoon 2.1.8 installation unless the following is added to
web.xml:

  <mime-mapping>
      <extension>gif</extension>
      <mime-type>image/gif</mime-type>
  </mime-mapping>

In the site map I use:

<map:match pattern="flow/readimage/**.gif">
  <map:read type="image" mime-type="image/gif "
src="http://guest:guest@{request:serverName}:{request:serverPort}/cocoon/webdav/db/contents/gif/{1}.gif"
/>
</map:match>

It seems odd that I should have to configure the gif mime type in
web.xml for this to work... Is something wrong with my Cocoon
installation?

Regards
Hans

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


Re: FOP pdf / gif image issue with Cocoon 2.1.8

Posted by Geert Josten <Ge...@daidalos.nl>.

Jonas Lundberg wrote:

> ... anyway, the reason I thought it was Cocoon, is that version 2.1.7
> did not have this problem ...
> 
> Hans
> 
>>><map:match pattern="flow/readimage/**.gif">
>>>  <map:read type="image" mime-type="image/gif "
>>>src="http://guest:guest@{request:serverName}:{request:serverPort}/cocoon/web
>>>dav/db/contents/gif/{1}.gif"
>>>/>
>>></map:match>

Why are you issuing a full HTTP request and not simply calling 
cocoon://webdav/db/contents/gif/{1}.gif. That would certainly by-pass Tomcat or any other 
application framework.

Regards,
Geert

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


Re: FOP pdf / gif image issue with Cocoon 2.1.8

Posted by Jonas Lundberg <my...@gmail.com>.
... anyway, the reason I thought it was Cocoon, is that version 2.1.7
did not have this problem ...

Hans

On 1/23/06, Jonas Lundberg <my...@gmail.com> wrote:
> Yes, and jpeg images also work fine. It could be a Tomcat issue... Do
> you have the same issue on your system? It works, so I am not that
> concerned, but sometimes one unexpected problem means that other
> problems are to appear...
>
> Regards
> Hans
>
> On 1/23/06, Rob Gregory <Ro...@rosesgroup.co.uk> wrote:
> > Web.xml mime mappings sounds like a Tomcat issue rather than Cocoon one. I
> > think you can also supply mime headers via Cocoon during your match but if
> > it works...
> >
> > Does the FOP (PDF) still work as planned when a image is not used?
> >
> > Rob
> >
> > -----Original Message-----
> > From: Jonas Lundberg [mailto:my.name.is.hans@gmail.com]
> > Sent: 23 January 2006 20:40
> > To: users@cocoon.apache.org
> > Subject: FOP pdf / gif image issue with Cocoon 2.1.8
> >
> > I just noticed that FOP pdf generation with GIF images does not work
> > with my Cocoon 2.1.8 installation unless the following is added to
> > web.xml:
> >
> >   <mime-mapping>
> >       <extension>gif</extension>
> >       <mime-type>image/gif</mime-type>
> >   </mime-mapping>
> >
> > In the site map I use:
> >
> > <map:match pattern="flow/readimage/**.gif">
> >   <map:read type="image" mime-type="image/gif "
> > src="http://guest:guest@{request:serverName}:{request:serverPort}/cocoon/web
> > dav/db/contents/gif/{1}.gif"
> > />
> > </map:match>
> >
> > It seems odd that I should have to configure the gif mime type in
> > web.xml for this to work... Is something wrong with my Cocoon
> > installation?
> >
> > Regards
> > Hans
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
>

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


Re: FOP pdf / gif image issue with Cocoon 2.1.8

Posted by Jonas Lundberg <my...@gmail.com>.
Yes, and jpeg images also work fine. It could be a Tomcat issue... Do
you have the same issue on your system? It works, so I am not that
concerned, but sometimes one unexpected problem means that other
problems are to appear...

Regards
Hans

On 1/23/06, Rob Gregory <Ro...@rosesgroup.co.uk> wrote:
> Web.xml mime mappings sounds like a Tomcat issue rather than Cocoon one. I
> think you can also supply mime headers via Cocoon during your match but if
> it works...
>
> Does the FOP (PDF) still work as planned when a image is not used?
>
> Rob
>
> -----Original Message-----
> From: Jonas Lundberg [mailto:my.name.is.hans@gmail.com]
> Sent: 23 January 2006 20:40
> To: users@cocoon.apache.org
> Subject: FOP pdf / gif image issue with Cocoon 2.1.8
>
> I just noticed that FOP pdf generation with GIF images does not work
> with my Cocoon 2.1.8 installation unless the following is added to
> web.xml:
>
>   <mime-mapping>
>       <extension>gif</extension>
>       <mime-type>image/gif</mime-type>
>   </mime-mapping>
>
> In the site map I use:
>
> <map:match pattern="flow/readimage/**.gif">
>   <map:read type="image" mime-type="image/gif "
> src="http://guest:guest@{request:serverName}:{request:serverPort}/cocoon/web
> dav/db/contents/gif/{1}.gif"
> />
> </map:match>
>
> It seems odd that I should have to configure the gif mime type in
> web.xml for this to work... Is something wrong with my Cocoon
> installation?
>
> Regards
> Hans
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>

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


RE: FOP pdf / gif image issue with Cocoon 2.1.8

Posted by Rob Gregory <Ro...@RosesGroup.co.uk>.
Web.xml mime mappings sounds like a Tomcat issue rather than Cocoon one. I
think you can also supply mime headers via Cocoon during your match but if
it works...

Does the FOP (PDF) still work as planned when a image is not used?

Rob

-----Original Message-----
From: Jonas Lundberg [mailto:my.name.is.hans@gmail.com] 
Sent: 23 January 2006 20:40
To: users@cocoon.apache.org
Subject: FOP pdf / gif image issue with Cocoon 2.1.8

I just noticed that FOP pdf generation with GIF images does not work
with my Cocoon 2.1.8 installation unless the following is added to
web.xml:

  <mime-mapping>
      <extension>gif</extension>
      <mime-type>image/gif</mime-type>
  </mime-mapping>

In the site map I use:

<map:match pattern="flow/readimage/**.gif">
  <map:read type="image" mime-type="image/gif "
src="http://guest:guest@{request:serverName}:{request:serverPort}/cocoon/web
dav/db/contents/gif/{1}.gif"
/>
</map:match>

It seems odd that I should have to configure the gif mime type in
web.xml for this to work... Is something wrong with my Cocoon
installation?

Regards
Hans

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


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