You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Jeff Turner <je...@apache.org> on 2003/01/20 09:02:19 UTC

Progress with images-in-PDFs

Hi,

I'm a bit stuck.. now that Cocoon has the Batik-closing-the-stream workaround
committed [1], I've got the latest Cocoon working in Forrest locally (it's
buggy [2] though).  I'm using FOP 0.20.4, which I assume is 'good enough'.  If
I try the latest FOP from CVS, I get an error:

java.lang.NoClassDefFoundError: org/apache/fop/messaging/MessageHandler

I can't find that class anywhere in xml-fop/.

So with 0.20.4, I now get this error when trying to render your-project.pdf:

ERROR   (2003-01-20) 18:28.47:081   [sitemap] (/forrest/your-project.pdf) Thread-16/ExternalGraphic: Error while creating area : Error with image URL: images/new-project.png (No such file or directory) and no base directory is specified

Now I've no idea how to tell FOP how to read images from Cocoon, ie assuming a
'cocoon://' scheme.  Could this be done with the JAXP URIResolver?


--Jeff


[1] http://issues.apache.org/bugzilla/show_bug.cgi?id=13247
[2] http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16248

Re: Licensing (was: Re: Progress with images-in-PDFs)

Posted by Nicola Ken Barozzi <ni...@apache.org>.

Christian Geisert wrote:
> Sylvain Wallez wrote:
> 
> [..]
> 
>> I asked licensing@ the same question a few weeks ago about javamail, 
>> jta and javax.activation, but I got no answer up to now.
> 
> 
> I wonder if there is actualy someone listening ..
> 

There is, it seems that the replies come in bursts.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Licensing (was: Re: Progress with images-in-PDFs)

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Sylvain Wallez wrote:

[..]

> I asked licensing@ the same question a few weeks ago about javamail, jta 
> and javax.activation, but I got no answer up to now.

I wonder if there is actualy someone listening ..

> Sylvain

Christian


Re: Progress with images-in-PDFs

Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Christian Geisert wrote:

> Jeff Turner wrote:
>
> [..]
>
>>> Note some images like png will need the Jimi library to work, which 
>>> you cannot distribute.
>>
>>
>> Cocoon does, and AFAIK licensing@ knows and hasn't issued any 
>> proclamation for or against..
>
>
> We removed it because of this:
> http://marc.theaimsgroup.com/?l=xml-apache-general&m=101232804225488&w=2
>
> IMHO we should wait for an answer from licensing@ (CCed them)


The licence should be read fully : "... Except as specifically 
authorized in any Supplemental License Terms..."

And the supplemental license terms state :
"b. License to Distribute Runtime.
Subject to your obligation to indemnify Sun pursuant to Section 3 below, 
Sun grants to you a non-exclusive, non-transferable limited, 
royalty-free license to reproduce, distribute offer to sell and sell the 
Software provided that you: (i)distribute the Software complete and 
unmodified (except for error corrections), only as part of, and for the 
sole purpose of running, your Java applet or application ("Program") 
into which the Software is incorporated; (ii) do not distribute 
additional software intended to replace any component(s) of the 
Software; (iii) do not remove or alter any proprietary legends or 
notices contained in the Software; (iv) only distribute the Program 
subject to a license agreement that protects Sun's interests consistent 
with the terms contained herein; and (v) may not create, or authorize 
your licensees to create additional classes, interfaces, or subpackages 
that are contained in the "java" or "sun" packages or similar as !  
specified by Sun in any class file naming convention."

This seems to say that we can redistribute it as long as it's not 
modified and accompanied with the proper licence. But IANAL nor a native 
english speaker...

I asked licensing@ the same question a few weeks ago about javamail, jta 
and javax.activation, but I got no answer up to now.

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



Re: Progress with images-in-PDFs

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Jeff Turner wrote:

[..]

>>Note some images like png will need the Jimi library to work, which you
>>cannot distribute.
> 
> Cocoon does, and AFAIK licensing@ knows and hasn't issued any
> proclamation for or against..

We removed it because of this:
http://marc.theaimsgroup.com/?l=xml-apache-general&m=101232804225488&w=2

IMHO we should wait for an answer from licensing@ (CCed them)

> --Jeff

Christian



Re: Progress with images-in-PDFs

Posted by Jeff Turner <je...@apache.org>.
On Mon, Jan 20, 2003 at 09:36:49AM +0100, Keiron Liddle wrote:
> On Monday, January 20, 2003, at 09:02  AM, Jeff Turner wrote:
> 
> >Hi,
> >
> >I'm a bit stuck.. now that Cocoon has the Batik-closing-the-stream 
> >workaround
> >committed [1], I've got the latest Cocoon working in Forrest locally 
> >(it's
> >buggy [2] though).  I'm using FOP 0.20.4, which I assume is 'good 
> >enough'.  If
> >I try the latest FOP from CVS, I get an error:
> >
> >java.lang.NoClassDefFoundError: org/apache/fop/messaging/MessageHandler
> 
> You need to patch cocoon with the src/documentation/cocoon.diff in FOP 
> cvs.
> The api has changed a bit, in particular the static classes like the 
> MessageHandler have been removed.

I gather there's two branches in FOP.  Do you think Forrest should be
tracking the 0.20.x series or the CVS head?  Is MessageHandler still
around in 0.20.x?

> Note some images like png will need the Jimi library to work, which you
> cannot distribute.

Cocoon does, and AFAIK licensing@ knows and hasn't issued any
proclamation for or against..

--Jeff

...
> Keiron.
> 

Re: Progress with images-in-PDFs

Posted by Keiron Liddle <ke...@aftexsw.com>.
On Monday, January 20, 2003, at 09:02  AM, Jeff Turner wrote:

> Hi,
>
> I'm a bit stuck.. now that Cocoon has the Batik-closing-the-stream 
> workaround
> committed [1], I've got the latest Cocoon working in Forrest locally 
> (it's
> buggy [2] though).  I'm using FOP 0.20.4, which I assume is 'good 
> enough'.  If
> I try the latest FOP from CVS, I get an error:
>
> java.lang.NoClassDefFoundError: org/apache/fop/messaging/MessageHandler

You need to patch cocoon with the src/documentation/cocoon.diff in FOP 
cvs.
The api has changed a bit, in particular the static classes like the 
MessageHandler have been removed.

Note some images like png will need the Jimi library to work, which you 
cannot distribute.

> I can't find that class anywhere in xml-fop/.
>
> So with 0.20.4, I now get this error when trying to render your-
> project.pdf:
>
> ERROR   (2003-01-20) 18:28.47:081   [sitemap] (/forrest/your-
> project.pdf) Thread-16/ExternalGraphic: Error while creating area : 
> Error with image URL: images/new-project.png (No such file or 
> directory) and no base directory is specified
>
> Now I've no idea how to tell FOP how to read images from Cocoon, ie 
> assuming a
> 'cocoon://' scheme.  Could this be done with the JAXP URIResolver?

The way it is currently done is by providing an interface to resolve a 
URI (through the user agent) which cocoon then implements to resolve the 
URL's.

Keiron.