Hey it works now! I don't know why, but my default ouput folder (..web-inf/classes) for the new serializer overwrote all existing files there. so i put the compiled class in an jar file and added this lib to the build path. i also use the FOPNGSerializer from the Cocoon2.2 trunk.
Thanks for helping me, matthias ----- Ursprüngliche Mail ---- Von: Matthias Müller <[EMAIL PROTECTED]> An: [email protected] Gesendet: Dienstag, den 17. Juli 2007, 08:24:48 Uhr Betreff: AW: Replacing FOP Jars Hi there, thanks for your quick responses. Here's a little bit code: Attached you can find the CocoonFopSerializer which i got from a user in the fop-user mailing list. By the way, this class needs additional classes libs explicitly added to the build path. Then i registered/deregistered the Serializers in the Root-Sitemap like this: <!-- <map:serializer name="fo2pdf" logger="sitemap.serializer.fo2pdf" mime-type="application/pdf" src="org.apache.cocoon.serialization.FOPSerializer"> <user-config>cocoon://fop-config.xml</user-config> </map:serializer> --> <map:serializer name="fo2pdf" mime-type="application/pdf" src="CocoonFOPSerializer"> <set-content-length>false</set-content-length> <user-config>cocoon://fop-config.xml</user-config> </map:serializer> Kai, you mentioned i should "deregister the old FOPSerializer from the fop block". how do i do that? at last but not least i attached my local.blocks.properties files greetings Matthias ----- Ursprüngliche Mail ---- Von: Kai Mutz <[EMAIL PROTECTED]> An: [email protected] Gesendet: Montag, den 16. Juli 2007, 18:38:37 Uhr Betreff: RE: Replacing FOP Jars I don't know which new special FopSerializer Matthias uses. I use the FOPNGSerializer from cocoon 2.2dev (trunk). [EMAIL PROTECTED] <> wrote: > Kai > > Looks good but where does the new special FopSerializer come from? > > > > Robin Rigby > [EMAIL PROTECTED] > http://www.gondolier.org.uk > 07785 765017 > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 16 July 2007 16:18 > To: [email protected] > Subject: RE: Replacing FOP Jars > > [EMAIL PROTECTED] <> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __________________________________ Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN! www.yahoo.de/clever ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
