You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Matthias Müller <py...@yahoo.de> on 2007/07/16 10:40:14 UTC

Replacing FOP Jars

Hi,
I try to get FOP 0.9x working with Cocoon 2.1.9. Therefore i added a special FopSerializer class to my build path. That works. 

But when i put the 0.93 fop libs to the
lib directory and replace the new fop.jar with the old one, i receive
an initialization error: java.lang.ClassNotFoundException:
org.apache.cocoon.faces.samples.components.taglib.AreaTag

for me
it seams like an totally different thing. anyway, when i undo the last
step (replacing the fop jars) i still have the error. so, i need to
rebuild the whole cocoon project and then i works again, but i'm still at the
beginning of my problem :-\

maybe i should try to use the latest
stable cocoon version. i use cocoon 2.1.9. do you have any suggestions
for the build settings? which blocks should be excluded to avoid problems?


when i try to fix the ClassNotFoundException by "disabling the offending components" as described here: http://mail-archives.apache.org/mod_mbox/cocoon-users/200602.mbox/%3Cb67708530602070441t7bde93bao@mail.gmail.com%3E
i receive the common "Scheduler Cocoon already exists" error, which means that there are Components installed but not found.

By the way, i'm running coocon as a sevlet in an external Tomcat Server. For coding i'm using Eclipse.

Thanks, Matthias





      __________________________________ Wissenswertes zum Thema PC, Zubehör oder Programme. BE A BETTER INTERNET-GURU!  www.yahoo.de/clever

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


RE: Replacing FOP Jars

Posted by Kai Mutz <km...@web.de>.
I don't know which new special FopSerializer Matthias uses. I use the
FOPNGSerializer from cocoon 2.2dev (trunk).


users-return-92202-kmuetz=web.de@cocoon.apache.org <> wrote:
> Kai
>
> Looks good but where does the new special FopSerializer come from?
>
>
>
> Robin Rigby
> robin@gondolier.org.uk
> http://www.gondolier.org.uk
> 07785 765017
>
>
> -----Original Message-----
> From: kmuetz@web.de [mailto:kmuetz@web.de]
> Sent: 16 July 2007 16:18
> To: users@cocoon.apache.org
> Subject: RE: Replacing FOP Jars
>
> users-return-92198-kmuetz=web.de@cocoon.apache.org <> wrote:
>> Hi,
>> I try to get FOP 0.9x working with Cocoon 2.1.9. Therefore i
>> added a special FopSerializer class to my build path. That works.
>>
>> But when i put the 0.93 fop libs to the
>> lib directory and replace the new fop.jar with the old one, i receive
>> an initialization error: java.lang.ClassNotFoundException:
>> org.apache.cocoon.faces.samples.components.taglib.AreaTag
>
> I don't understand your replacements. You have to replace the old fop
> jar with the new (0.9.3) fop jar and add the
> xmlgraphics-commons-*.jar. Then you
> have to register the new special FopSerializer, which uses the
> new fop API,
> in your sitemap (and deregister the old FOPSerializer from the fop
> block).
>
> Furthermore it seems that the above exception has nothing to do with
> fop. How do you invoke the serializer? Can you post the snippet from
> sitemap?
>
>>
>> for me
>> it seams like an totally different thing. anyway, when i undo the
>> last step (replacing the fop jars) i still have the error. so, i
>> need to rebuild the whole cocoon project and then i works again, but
>> i'm still at the beginning of my problem :-\
>>
>> maybe i should try to use the latest
>> stable cocoon version. i use cocoon 2.1.9. do you have any
>> suggestions for the build settings? which blocks should be excluded
>> to avoid problems?
>>
>
> You should exclude all blocks first and include only those blocks
> you really
> need. I don't know version 2.1.9 but I don't think that there are
> blocks, which make problems per se.
>
> I have fop 0.9.3 installed in cocoon 2.1.8 and it works fine.
>
> Kai
>
>
> ---------------------------------------------------------------------
> 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: Replacing FOP Jars

Posted by Robin Rigby <ro...@gondolier.org.uk>.
Kai

Looks good but where does the new special FopSerializer come from?


 
Robin Rigby
robin@gondolier.org.uk
http://www.gondolier.org.uk
07785 765017
 

-----Original Message-----
From: kmuetz@web.de [mailto:kmuetz@web.de] 
Sent: 16 July 2007 16:18
To: users@cocoon.apache.org
Subject: RE: Replacing FOP Jars

users-return-92198-kmuetz=web.de@cocoon.apache.org <> wrote:
> Hi,
> I try to get FOP 0.9x working with Cocoon 2.1.9. Therefore i
> added a special FopSerializer class to my build path. That works.
>
> But when i put the 0.93 fop libs to the
> lib directory and replace the new fop.jar with the old one, i receive
> an initialization error: java.lang.ClassNotFoundException:
> org.apache.cocoon.faces.samples.components.taglib.AreaTag

I don't understand your replacements. You have to replace the old fop jar
with the new (0.9.3) fop jar and add the xmlgraphics-commons-*.jar. Then you
have to register the new special FopSerializer, which uses the new fop API,
in your sitemap (and deregister the old FOPSerializer from the fop block).

Furthermore it seems that the above exception has nothing to do with fop.
How do you invoke the serializer? Can you post the snippet from sitemap?

>
> for me
> it seams like an totally different thing. anyway, when i undo the last
> step (replacing the fop jars) i still have the error. so, i need to
> rebuild the whole cocoon project and then i works again, but i'm
> still at the
> beginning of my problem :-\
>
> maybe i should try to use the latest
> stable cocoon version. i use cocoon 2.1.9. do you have any suggestions
> for the build settings? which blocks should be excluded to avoid
> problems?
>

You should exclude all blocks first and include only those blocks you really
need. I don't know version 2.1.9 but I don't think that there are blocks,
which make problems per se.

I have fop 0.9.3 installed in cocoon 2.1.8 and it works fine.

Kai


---------------------------------------------------------------------
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: Replacing FOP Jars

Posted by Kai Mütz <km...@web.de>.
users-return-92198-kmuetz=web.de@cocoon.apache.org <> wrote:
> Hi,
> I try to get FOP 0.9x working with Cocoon 2.1.9. Therefore i
> added a special FopSerializer class to my build path. That works.
>
> But when i put the 0.93 fop libs to the
> lib directory and replace the new fop.jar with the old one, i receive
> an initialization error: java.lang.ClassNotFoundException:
> org.apache.cocoon.faces.samples.components.taglib.AreaTag

I don't understand your replacements. You have to replace the old fop jar
with the new (0.9.3) fop jar and add the xmlgraphics-commons-*.jar. Then you
have to register the new special FopSerializer, which uses the new fop API,
in your sitemap (and deregister the old FOPSerializer from the fop block).

Furthermore it seems that the above exception has nothing to do with fop.
How do you invoke the serializer? Can you post the snippet from sitemap?

>
> for me
> it seams like an totally different thing. anyway, when i undo the last
> step (replacing the fop jars) i still have the error. so, i need to
> rebuild the whole cocoon project and then i works again, but i'm
> still at the
> beginning of my problem :-\
>
> maybe i should try to use the latest
> stable cocoon version. i use cocoon 2.1.9. do you have any suggestions
> for the build settings? which blocks should be excluded to avoid
> problems?
>

You should exclude all blocks first and include only those blocks you really
need. I don't know version 2.1.9 but I don't think that there are blocks,
which make problems per se.

I have fop 0.9.3 installed in cocoon 2.1.8 and it works fine.

Kai


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